Looking for help trouble shooting replacement unit I just received and loaded with previously working code designed to connect and interface with MIT App Inventor phone app.
When I select the device from the list picker list, I get back a device connected confirmation but no response to the button presses on the phone as worked previously.
Serial inputs from monitor work as expected.
Not convinced I’m connecting or staying connected to the BLE device.
I tried the default code and it wouldn’t compile compile due to one line where it says getValue and suggests it should be setValue. that didn’t work either.
Says 'class BLECharacteristic"has no member named ‘getValue’; did you mean ‘setValue’?
I’ve tried each of my previously working MIT apps and Scanner app. Scanner app doesn’t see the board. Another called BLE Terminal sees the board but connects and disconnects immediately
holding RST and power cycling the board does not change anything. Got some gibberish on Serial monitor at first. when i enter a value via the Serial Monitor that the app is designed to send Number 11 for example, the RGB LED cycles colors as the code is designed. Doing the same via the app results in no response. App shows Connected after picking from list but no flashing RGB LED as designed so if it connects it seems to disconnect immediately or not at all. Can’t tell for sure.
Ok, the only thing I can think of is the IDE (assume Arduino?) has gotten its board definitions confused. Try wiping https://support.arduino.cc/hc/en-us/art … rduino-IDE and starting over with a fresh install of the ESP32 files…if that doesn’t help, the board is likely defective - head to www.sparkfun.com/returns if purchased from us, or contact vendor for similar if bought @ 3rd party
OK, will try the wipe and reload approach. 2nd unit purchased from Sparkfun direct. First one was working perfectly until it was damaged.
I don’t understand why a corrupted IDE would only impact the BLE functionality but then again I haven’t tested other featured other than the battery Fuel gauge, the various LEDs and the Serial Monitor input from my home PC. Hopefully this does the trick.
Ok, well I uninstalled the IDE and reloaded it to my PC. I uploaded the working sketch and still have no Bluetooth functionality. I’m going to try the same using my laptop just to eliminate the PC from the equation but I’m suspecting there is something wrong with the board that is beyond my ability to diagnose.
Specifically, did you wipe the arduino15 folder mentioned in that link? If so, follow other link and file for a warranty claim if applies to your case (30 days for all items, we make exceptions in some cases)
I did a full uninstall via Windows. I do not know if that included the arduino15 folder to be accurate. I’ll repeat and re-test after determining where said folder resides. Thanks.
Arduino15 removed and all reinstalled. Still no evidence of Bluetooth working. Program runs fine via Serial Monitor inputs . Still not recognized by BLE Scanner.
For anyone else following and needing to wipe Arduino clean, consider cutting and pasting and saved Additional Boards Manager URLs in File Preferences before you do so. It will make restoring system easier than trying to remember each one you might have loaded.
TS-Russell:
Specifically, did you wipe the arduino15 folder mentioned in that link? If so, follow other link and file for a warranty claim if applies to your case (30 days for all items, we make exceptions in some cases)
How do I proceed with filing a warranty claim? What link are you referring to?
I have spent debugging a week to understand WHY I could not connect my Samsung Android with BLE to an Artemis board, while the same program works without a problem with an nrf52480. I know I am using a different environment (ArduinoBLE) than yours, but maybe the approach and solution can help you as well. Who knows?
I just used a standard unmodified led-peripheral peripheral example. Compiled and loaded both to an Artemis Nano and to an nrf52480 MicroMod.
Using ‘nRF Connect’ on Samsung, I can scan, connect and interact with both.
When trying to use a built example with Android studio, the Artemis board could be scanned, but connecting never worked. I could see with a BLE-sniffer that there was NO attempt or action from Android to reach out. The disconnect was shown as a failure. However, with that same Android Studio example on the Samsung phone, now scanning and connecting to the nrf52480, worked without a problem !
Long story short,the problem was BLE-address.
The final clue came from https://stackoverflow.com/questions/234 … on-android. The Artemis BLE address was the default (66:88:77:23:bb:ef). The 0xef part does not comply with the core spec Vol 6 Part B section 1.3 Device addresses. Changing the 0xef to oxe0 and everything worked.
(NOTE: the fact was the BLE address was the default was an error on my side so I discovered it later !)
Maybe check that. Also start with a standard, known to be good working, example. e.g. BLE_write link that was provided earlier. There should be no compile errors else you have a different issue.
Thanks for your reply. I’m not at the same level of expertise as you appear to be but appreciate the offer of help. the address you refer to, is that the MAC address? If so, how do I retrieve that information to verify it?
it is the BLE address. The easiest way to check is to download 'nRF coonnect" on your phone (from the play store). Once installed press ‘scan’ and it will find your device and show the name and address. You can then also try to connect and see what happens.