Rapid IoT' PIN code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rapid IoT' PIN code

3,310 Views
jpl
Contributor II

Where can we find the PIN code asked by the Rapid IoT in BLE?

Labels (1)
10 Replies

2,618 Views
theophileleroy
NXP Employee
NXP Employee

To feel your needs and for you to better understand the PIN code generation, we want to share with you a code exemple that is under development and will be released soon in SDK 2.5

The application is a weather station that display data on screen and send them over BLE by demonstrating PIN code generation during pairing/bond process.

Regards,

2,618 Views
luc_de_pauw
Contributor III

I downloaded the zip but can't find the weather station c source code inside the zip ?

0 Kudos

2,615 Views
theophileleroy
NXP Employee
NXP Employee

Source code is located under weather_station\task4\boards\rapidiotk64f\demo_apps\task4\source.

2,618 Views
ericocasio
NXP Employee
NXP Employee

Can you please explain what is asking for a PIN? 

0 Kudos

2,618 Views
jpl
Contributor II

When your Android app doesn't recognize the Rapid iot it is still seen by others Android apps (parameters for example) but theses apps ask for a pin code. We tried unsuccessfully 0000 and 1234. Any idea what could be the right PIN code?

0 Kudos

2,618 Views
frq05186
NXP Employee
NXP Employee

Hi Jean-Philippe,

We did not intend to use such pairing mode with our Out Of the Box application in conjonction with Rapid IoT studio. (PLay and Tinker phases of the experience).

The pin code you are looking for, is nevertheless generated (pseudo randomly) but not reported to user interface (nor used in our mobile app). This is because identification between phone and kit is done via EUI when using Rapid IoT Studio and via A1006 authentication chip into the kit.

You may have a use case where you want to develop your own (Android) application connecting to the kit via BLE using code developped from scratch. We are preparing code examples for which an API is called to get this code and displayed on the kit IoT. 

Reading between lines, I understand you cannot (always) connect via BLE on some application generated by the Rapid IoT  Studio.

  • Do you confirm ?
  • Can you provide more information on your case (Phone model, rapid IoT kit Out of  Box project or other ? 

Thanks

2,618 Views
jpl
Contributor II

I confirm that we have been able to connect the app to the kit only one time in three days. We use a Wiko and a Kyocera. Later we intend to transmit from the kit to devices other than smartphones. What is the transmission protocol ? Will we need then the PIN code?

0 Kudos

2,618 Views
frq05186
NXP Employee
NXP Employee

Hi Jean-Philippe,

We did not test specifically those phone models, but if this had worked once, there is no reason why it should stop working after one succesfull conection.

Often users are reporting connection issues because of the provisioning misuse. This is Worth a dedicated post - could be your case too.

In a nutshell:

  • a device with an application cannot be provisionned at same time on 2 phones
  • a kit can only be provisioned if  the account used for generating the phone app and kit project are the same (security purpose, explaining why PIN is not needed)

Regarding devices other than smartphone:

  •   Everything is possible, it depends on your architecture and you can code your app in accordance with your use case.
    •  If you need a PIN, it can be randomly generated on the Rapid IoT and needs to be typed into your connecting device or it could be a fixed PIN set one for all.
    • Can be based on a time window, pushing buttons on Rapid IoT and your end device in a given time window
    • You could also use A1006 authentication device in the kit to authenticate device and user.
    • ...

2,618 Views
jpl
Contributor II

Thank you for your answer.

We see the Rapid IoT with other BLE scanning app but not with NXP app and in the future we are not sure to use a smartphone to forward data to the cloud, we may use BLE/Wifi gateways (Raspberry Pi, Arduino...) therefore we will need to know the BLE transmission protocol.

0 Kudos

2,618 Views
theophileleroy
NXP Employee
NXP Employee

For futher details on the BLE transmission protocol, please follow this link of the NXP knowledge-center. The Bluetooth® Low Energy Applications Developer’s Guide should be interting for you.

Also the Bluetooth Low Energy API reference manual

Regards

Théophile

0 Kudos