We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: Barna Szternák
Last Updated: 2016-02-25
Package Version: 1.0.0.0
Example: 1.0.0.0
Category: Communication
Downloaded: 576 times
Followed by: 1 user
License: MIT license
This example is a small project to initialize the RN4020 on the Curiosity board. I used the OLED C click from my previous example as a receiver terminal to printout the response from the RN4020.
There is a button defined to share battery level info through the battery level service (0x2A19).
The code has been written in MPLAB X.
Do you want to subscribe in order to receive notifications regarding "Initializing the RN4020 on the Curiosity board" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Initializing the RN4020 on the Curiosity board" changes.
Do you want to report abuse regarding "Initializing the RN4020 on the Curiosity board".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1439892762_initializing_the_other_pic.zip [1.25MB] | Other PIC Compilers |
|
The only headache I have with the RN4020 and the PIC is that the RN4020 has 115200bps speed by default and the PIC is able to communicate with it only 57600bps. As a rule of thumb half the speed shall be set up on the PIC side for the proper communication. And I don't know, why.
To test the bluetotth is working you can use your smartphone to connect to the RN4020, for iPhone I used LightBlue app from AppStore. For Android phones there is an app called BTLE Browser suggested by MicroChip.