Hi,
I recently received the NXP Rapid IoT kit.
I have followed instruction from Internet to turn on the built in Bluetooth.
On the Rapid IoT kit itself, it shows the Bluetooth has been activated. However, I cannot find any Bluetooth devices by scanning from my phone or my PC.
Please advise.
Hi Richard,
I included the pictures again.
So both accounts wont work on Samsung using the newest App from G-playstore.
Then sometimes the screen shows RELOAD and ask again for username/password.
regards Ron
Thanks!
Hi Ron,
- What is your phone model? We know old BLE stacks in older phones are not very robust and Rapid IoT cannot connect to those.
Make sure the OOB app referred above is flashed in the kit:
https://community.nxp.com/docs/DOC-342913
because this updated kit app version allows for UART over USB.
Via a terminal (like Tera Term) you could capture a log of what happens when you are connecting via BLE.
Provide me with this log so I can analyze what is happening.
Looks like
Eric,
I tried it on Nexus5X android 8.1.0 All standard BT settingss used.
I installed the new sw package. After Reset of the device and enabling Teraterm, this was the logging:
=============================================
Leaving page 2
Leaving page 2
Error opening file ble_enabled
Error opening file thread_enabled
Leaving page 0
Initializing BLE
Got MAC Address: 00:60:37:12:86:29
BLE Initialized
Adding Characteristic[0] to Service 0
Adding Characteristic[1] to Service 0
Adding Characteristic[2] to Service 0
Adding Characteristic[3] to Service 0
Adding Characteristic[0] to Service 5
Adding Characteristic[1] to Service 5
RX Service Handle: 01
RX Char Handle: 03
RX Char Handle: 05
RX Char Handle: 07
RX Service Handle: 08
RX Char Handle: 0A
Error opening file thread_enabled
Thread Enabled: 0
Stored Build UUID: 5c3348ce-f766-4d53-990f-847d9e56f630
Current Build UUID: 5c3348ce-f766-4d53-990Error opening file ota_complete
Uuid Match 1 Boot After OTA: 0
Not Wiping Flash
Error opening file ble_enabled
BLE Enabled: 1
Adding Characteristic[0] to Service 8
Setting device name: P8629
Setting service uuid
Setting advertised UUID: bd5518ca-4de4-478b-8801-53cad157012a
Starting advertising
Adding Page: 0
Adding Page: 1
Adding Page: 2
Adding Page: 3
Adding Page: 4
Adding Page: 5
Adding Page: 6
Adding Page: 7
Adding Page: 8
Adding Page: 9
Adding Page: 10
Adding Characteristic[0] to Service 10
Adding Characteristic[1] to Service 10
Adding Characteristic[2] to Service 10
Adding Characteristic[3] to Service 10
Adding Characteristic[4] to Service 10
Adding Characteristic[5] to Service 10
Adding Page: 11
Adding Page: 12
Adding Page: 13
Adding Page: 14
Adding Page: 15
Adding Page: 16
Adding Page: 17
Adding Page: 18
Adding Page: 19
Adding Page: 20
Adding Page: 21
Adding Page: 22
Adding Page: 23
Adding Characteristic[0] to Service 17
Adding Characteristic[1] to Service 17
Adding Characteristic[2] to Service 17
Adding Characteristic[3] to Service 17
Adding Characteristic[4] to Service 17
Adding Characteristic[5] to Service 17
Adding Characteristic[6] to Service 17
Adding Characteristic[7] to Service 17
Adding Characteristic[8] to Service 17
Adding Characteristic[9] to Service 17
Adding Page: 24
Adding Page: 25
Adding Page: 26
Adding Page: 27
Adding Page: 28
Adding Page: 29
Adding Page: 30
Adding Page: 31
Adding Page: 32
Adding Page: 33
Adding Page: 34
RX Service Handle: 0C
RX Char Handle: 0E
RX Char Handle: 10
RX Char Handle: 12
RX Char Handle: 14
RX Service Handle: 16
RX Char Handle: 18
RX Service Handle: 1A
RX Char Handle: 1C
RX Service Handle: 1E
RX Char Handle: 20
RX Char Handle: 23
RX Char Handle: 26
RX Char Handle: 29
RX Char Handle: 2C
RX Char Handle: 2F
RX Service Handle: 31
RX Char Handle: 33
RX Char Handle: 35
RX Char Handle: 37
RX Char Handle: 39
RX Char Handle: 3B
RX Char Handle: 3D
RX Char Handle: 3F
RX Char Handle: 41
RX Char Handle: 43
RX Char Handle: 45
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndication
GATTDBFindCccdHandleForCharValueHandleIndicationWriting auth info
Error opening file ble_enabled
Error opening file thread_enabled
[NFC] Registration Set
==============
But since I cannot connect anymore to https://rapid-iot-studio.nxp.com/ I was not able to get it running on a newer phone yet. Just can't login.
Can you help me on this one too? I deleted the original account on the development site, but I cannot get it running it back on again. I tried several attempts to register with different accounts.
It wont send me a confirmation message to accept the account.
thanks again
Ron
Hi Ron,
The log you provided looks ok, except that there is no indication you tried to connect via BLE. Looks to be a normal log for the boot sequence.
I would like you to capture the log during provisioning and BLE connection.
In the mobile phone application got there:
and tap either the top right icon or the ' + ' in the middle of the screen, then selcet your kit and provision it.
This will/should trigger:
[NFC] Registration Set <=== This is where you stopped
GAPConnectionEventConnectedIndication <=== Here he BLE phone connection ' request"
Error opening file ble_enabled
Error opening file thread_enabledGATTServerCharacteristicCccdWrittenIndicationGetting char for CCCD handle 0B
GATTServerCharacteristicCccdWrittenIndicationGetting char for CCCD handle 15
Handle: 04 Notifications: 1 Indications: 0
Authenticating... <=== This is the provisioning step, making sure your kit is authentic before connecting to phone / cloud.GATTDBFindCccdHandleForCharValueHandleIndication <=== Here BLE connection actually 'starts'
GATTServerCharacteristicCccdWrittenIndicationGetting char for CCCD handle 15
Handle: 04 Notifications: 0 Indications: 0
[BLE Provision] RX CMD 01
Extra Settings: 01
[BLE Provision] RX CMD 0B
[BLE Provision] RX CMD 0C
[BLE Provision] RX CMD 02
I need the missing part of the log to figure out what is the potential root cause.
Hi Eric,
I will try but I am stucked when I am requested to login in the app, so I wont get the screens you showed.
"But since I cannot connect anymore to https://rapid-iot-studio.nxp.com/
I was not able to get it running on a newer phone yet. Just can't login.
Can you help me on this one too? I deleted the original account on the development site, but I cannot get it running it back on again. I tried several attempts to register with different accounts.
It wont send me a confirmation message to accept the account.
Hi Eric,
I used another laptop, another account and another browser (first chrome now FF) to recreate a new IDE environment on my laptop. The acceptance message came directly. I reset the device to factory.
So I can connect to the IDE. This works so for far with this laptop and FF. In the IDE the IoT device is not recognised in this new setup. The icon "add device"is not displayed. so no provisioning can be performed.
I am not able to connect using the same user and passwd via de RIoT app on my smartphone and so no provisioning via this way is possible. also after reinstalling this app I get the "message not found (404)".
Not able to connect to the UART anymore via tera term either.
NO "Mass storage attachement" works anymore.
Perhaps I need to flush some caches and etc. Where can I start.??
=========================================
Finally removed the (beta) app from smartphone and installed an older version (1.1.4) as found in one of the earlier posts.
This seems to work amd starting to authenticate BLS.
I could add and provision the device and then it responded.
recorded output on COM over USB:
Setting device name: P8629
Setting service uuid
Setting advertised UUID: bd5518ca-4de4-478b-8801-53cad157012a
Starting advertising
Read From ble_enabled: 1
GAPConnectionEventConnectedIndication
Read From ble_enabled: 1
GATTServerCharacteristicCccdWrittenIndicationGetting char for CCCD handle 15
Handle: 04 Notifications: 1 Indications: 0
Authenticating...
GATTDBFindCccdHandleForCharValueHandleIndication
GATTServerCharacteristicCccdWrittenIndicationGetting char for CCCD handle 15
Handle: 04 Notifications: 0 Indications: 0
[BLE Provision] RX CMD 01
Extra Settings: 01
[BLE Provision] RX CMD 0C
[BLE Provision] RX CMD 02
[BLE Provision] RX CMD 07
[BLE Provision] RX CMD 08
[BLE Provision] RX CMD 06
[BLE Provision] RX CMD 04
[NFC] Registration Set
Disconnected
Setting advertised UUID: 8369a3da-1162-45bc-85d3-0b21d4b2c22b
Read From ble_enabled: 1
GAPConnectionEventConnectedIndication
Read From ble_enabled: 1
I saw this happening 1 time before in the first minute I unpacked and installed the device. So see what will happen after ..
1 minute: no samples received anymore. (Could this be caused by opening the browser screen on the laptop)?
time still runs op the device.
Back to beginning of this tread.......
Hi Eric,
Spamming you again (but today is my hobby day) ;-)
Also rebooted the laptop. This enables teh com port over USB again.
still no access from app on phone.
But manual BT connection request says: I tried 0000 and 1234 to connected and the device responded with pairing failed.
Leaving page 0
Read From ble_enabled: 1
GAPConnectionEventConnectedIndication
Read From ble_enabled: 1
Leaving page 17
Disconnected
Setting device name: P8629
Setting service uuid
Setting advertised UUID: bd5518ca-4de4-478b-8801-53cad157012a
Starting advertising
GAPConnectionEventConnectedIndication
Leaving page 16
Leaving page 17
Disconnected
Setting device name: P8629
Setting service uuid
Setting advertised UUID: bd5518ca-4de4-478b-8801-53cad157012a
Starting advertising
GAPConnectionEventConnectedIndication
Leaving page 16
Leaving page 17
Disconnected
Setting device name: P8629
Setting service uuid
Setting advertised UUID: bd5518ca-4de4-478b-8801-53cad157012a
Starting advertising
Hi,
I have tried pressing all 4 buttons until Orange Led blinking. However, there is nothing appeared on Folder Explorer. I have also check the dmesg, there is nothing changed.
I can confirm that the USB cable and my USB port are still working fine.
Both should work.
Now I am trying to duplicate your issue with W10
Thank you.
I will try it tonight.
To check if it is visible in file explorer, can I use my Mac or I have to use Windows 10 ?
Hi,
It is still Out of the Box application. I cannot connect to the Rapid IoT with Bluetooth or via USB.
Yes, I beleive the the LEDs blinking is correct based on Rapid IoT instruction.
That makes 2 different issues:
Issue 1: BLE connection
Issue 2: Switch to kit programming over USB mode
Both issues are likely fully independent.
Am sorry to go step by step but the failure mode you are reporting is a first of a kind.
Issue 2 first:
==> Could you please try pressing all 4 buttons at same time until the top left LED blinks Orange?
When the case, please check again that your kit is visible in the file explorer.
If LED blinks orange and you still do not see your kit in explorer I will explore a potential driver issue.
Should you succeed in setting the kit in programming mode, please flash this binary:
https://community.nxp.com/docs/DOC-342913
and try BLE connection again.
Hi,
I followed the instruction from Internet how to program the Rapid but not succedded because I cannot communicate with it.
Ok,
The configuration you are using has been tested several time without issue - so I am puzzled.
I certainly overlook an important information.
==> Can you confirm you have installed Rapid IoT application and it is the latest one ? From your text it is not clear to me whether you try connecting direclt via the iPhone bluetooth menu or via the app.
==> Are there any diode blinking on the kit ? (I mean one the kit has fully completed booting sequence)
Hi,
In order to support you effectively, I need to know a bit more about your setup.
- Which phone are you using ?
- Can you confirm you are using Rapid IoT Studio to generate your project ?
- Were you able to connect to the Out of the Box or Weather station example projects available in Rapid Iot Studio ?
Do note the following:
- the kit will not connect to a PC via Bluetooth if you are using code generated directly out of Rapid Iot Studio
- you must have device location turn on on your phone to enable BLE connection.