HM-10 BLE packet too big errors

I was troubleshooting trying to get the BLE function to work with my board/HM-10 & kept getting “Packet Too Big” in the serial counsel and figured out the solution. It wasn’t in the Blynk library or the connections but the HM-10 bluetooth chip configuration. I noticed several posts about it on the forum and thought I would put my solution out there encase anyone else is struggling getting the BLE connection. These are the settings you need to set in order for the HM-10 to successfully talk with the board. Tested on a Sparkfun SAMD Dev board and a Arduino Mega 2560.

HM-10 Setup:
Firmware: HMSoft V704
Baud: 0-9600
Pin type: 0-Not need PIN code
Role: 0-Peripheral
Mode: 0-transmission mode
Module work type: 0-work immediately
Parity bit: 0-none
flow control: 0-off
Notify: 0-no notification

and the sketch:


#define BLYNK_USE_DIRECT_CONNECT

#define BLYNK_PRINT SerialUSB  // SAMD
#define BLYNK_DEBUG SerialUSB
//#define BLYNK_PRINT Serial // Mega
//#define BLYNK_DEBUG Serial

#include <BlynkSimpleSerialBLE.h>

char auth[] = "token here";

void setup()
{
  SerialUSB.begin(9600);  //SAMD board
  //Serial.begin(9600);  // Mega

  Serial1.begin(9600);
  delay(10);
  
  Blynk.begin(Serial1, auth);
}

void loop()
{
  Blynk.run();
}

2 Likes

Hi,

Can you please explain how to change the HM-10 setup? I have the same “packet too big” errors
Thanks

GitHub - 4ntoine/mega-to-hm10: Simple Arduino sketch to configure HM-10 with Arduino Mega2560 as USB-to-TTL converter

HM-10 Bluetooth 4 BLE Modules | Martyn Currey