BLE BLUEGIGA scanner sample

thomas cassany

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

I received http://eshop.icsat.co.uk/epages/950004729.sf/en_GB/?ObjectPath=/Shops/950004729/Products/TD0013 (Tinyduino shop was in stockout) and I'm a bit disappointed.

I spent my last 3 hours trying the scanner demo app https://github.com/jrowberg/bglib/tree/master/Arduino/Examples/BGLib_scanner 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
Quote
30 *** Packet frame sync error! Expected .0000... binary, got 0x30


Noted that the slave app https://github.com/jrowberg/bglib/tree/master/Arduino/Examples/BGLib_stub_slave 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.
Thomas


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 https://www.tiny-circuits.com/learn/tinyshield-ble2 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.

Ben


msundt

  • 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.

http://estimote.com/

https://store.gimbal.com/

Thanks!

Mark


 

SMF spam blocked by CleanTalk