Hello,
I’m using Readboard Artemis, the built-in example Example8_BLE_LED, and the nRF connect app on my iPhone. I’ve uploaded the example and connected to the Artemis from my phone.
According to the documentation, sending 1 or 2 should turn on the LED; sending 0 would turn it off. However, when I send 1 or 2 nothing happens.
When I connect from my phone, the serial monitor shows debug messages, so that part seems active. However when I send an alert, no additional debug messages appear.
I added a debug_printf() at the top of tagAlert() (outside of the #ifdef DEBUG just to make sure), and my debug message never appears, so it’s as if tagAlert() is not being called. tagAlert() seems to be called by tagIasWriteCback(), which also doesn’t appear to be called. tagIasWriteCback() is registered in NusStart() which DOES appear to be called at startup. That’s about as far as my understanding goes.
What am I doing wrong?
Here are the messages I get upon startup, connecting, and writing the alert level:
Apollo3 Arduino BLE Example. Compiled: 12:26:48
fm: NusHandlerInit, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1047
fm: NusStart, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1131
fm: tagAttCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 385
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0052
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0020
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: tagSetup, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 556
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0021
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0022
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0021
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagDiscCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 818
fm: tagDiscCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 818
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0027
fm: tagOpen, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 467
fm: tagAttCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 385
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagDiscCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 818
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0003
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0040
fm: tagAttCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 385
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0011
fm: tagCccCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 412
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0010
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0051
fm: tagDmCback, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 351
fm: NusHandler, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 1091
fm: tagProcMsg, file: /tmp/arduino_build_772799/sketch/nus_main.c, line: 913
pMsg->hdr.event: 0x0029