BLE BLUEGIGA scanner sample

thomas cassany

  • Newbie
  • *
    • Posts: 1
    • View Profile
Hi everyone,

I received (Tinyduino shop was in stockout) and I'm a bit disappointed.

I spent my last 3 hours trying the scanner demo app without succes. When I run, the code is blocked on
Code: [Select]
void onBeforeTXCommand() in the while loop.

I tried to change the
Code: [Select]
SoftwareSerial bleSerialPort(2, 3); // RX, TX with (3, 4) and (0, 1). The last one throw me an error during the parse methode
30 *** Packet frame sync error! Expected .0000... binary, got 0x30

Noted that the slave app works a treat.

To oriented your answer, I can say I'm a new comer in the Arduino world but I'm an experiment mobile dev.

Thanks for your answer.

Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 392
    • View Profile
Hi Thomas,

BGLib is a general purpose library, and the examples expect a hardware sleep control pin. Our board omitted that to save the I/O pin. This is changed on our example at but not explained properly. I think we lost some text during website changes, which we'll have to fix- sorry about that.

In the scanner code, stick with (3,4) for the serial pins, comment out lines 89 and 90(which reference the onBeforeTXCommand/onTXCommandComplete we don't want), and remove any lines with reference to 'BLE_WAKEUP_PIN'- then the code should be functional.



  • Newbie
  • *
    • Posts: 1
    • View Profile
The new scanning example works great for scanning, but I'm not seeing any of my BLE beacons. Is it possible to scan for beacons?

I'm using Gimbal Proximity Seriers 10 Beacons and estimote beacons.




SMF spam blocked by CleanTalk