Hello, I trying to connect Arduino Nano with my iPhone through HM-10 Bluetooth connection, but I only have an error, “Packet too big”
- Arduino Nano
- iPhone 11 IOS 13.4.1
- Blynk server 0.6.1
#define BLYNK_PRINT Serial
#define BLYNK_DEBUG
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxx";
SoftwareSerial SerialBLE(8, 9); // RX, TX
void setup()
{
// Debug console
Serial.begin(9600);
SerialBLE.begin(9600);
Blynk.begin(SerialBLE, auth);
Serial.println("Waiting for connections...");
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
Conected in this way:
Nano pin D9 -> HM10 RX
Nano pin D8 -> HM10 TX
Nano pin 3v3-> HM10 VCC
Nano pin GND->HM10 GND
In serial Monitor:
[30880] Connecting...
[30880] <[0]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.1 on Arduino Nano
[90] Connecting...
[110] <[1D|00|01|00] a1ed808a5098400
[210] <f87323284a22a238e
[3270] Login timeout
[5270] Connecting...
[5270] <[1D|00|01|00] a1ed808a5098400
[5331] <f87323284a22a238e
[8392] Login timeout
[10392] Connecting...
[10392] <[1D|00|01|00] a1ed808a5098400
[10455] <f87323284a22a238e
[10513] >OK+CO
[10513] Packet too big: 17231
[10897] >NN[02|00|01]
[10900] >[00]
[10903] Invalid header type: 78
[10906] > a1ed
[10920] Packet too big: 25956
[10953] >808a5
[10970] Packet too big: 24885
[11002] >09840
[11019] Packet too big: 13360
[11051] >0f873
[11068] Packet too big: 14131
[11100] >23284
[11116] Packet too big: 14388
[11149] >a22a2
[11165] Packet too big: 24882
[14197] Bad hdr len: -1
[15514] Connecting...
[15514] <[1D|00|01|00] a1ed808a5098400
[15577] <f87323284a22a238e
[20636] Connecting...
[20636] <[1D|00|01|00] a1ed808a5098400
[20699] <f87323284a22a238e
[23758] Login timeout
[25758] Connecting...
[25758] <[1D|00|01|00] a1ed808a5098400
[25821] <f87323284a22a238e
[25879] >OK+LO
[25879] Packet too big: 19535
[28880] Bad hdr len: -1
[30880] Connecting...
[30880] <[1D|00|01|00] a1ed808a5098400
[30943] <f87323284a22a238e
[34002] Login timeout
[36002] Connecting...
[36002] <[1D|00|01|00] a1ed808a5098400
[36065] <f87323284a22a238e
[41124] Connecting...
[41124] <[1D|00|01|00] a1ed808a5098400
[41187] <f87323284a22a238e
[44246] Login timeout
[46246] Connecting...
[46246] <[1D|00|01|00] a1ed808a5098400
[46309] <f87323284a22a238e
[51368] Connecting...
[51368] <[1D|00|01|00] a1ed808a5098400
[51431] <f87323284a22a238e