Bluetooth with RN-41 and RN-42 chips

To install the demo project:

  1. Open the .qar file in quartus
  2. Compile
  3. Program the FPGA
  4. Open Eclipse
  5. Right Click Project Explorer
  6. new -> NIOS II Application and BSP template
  7. Choose hello micro C/os-II (name it whatever you want)
  8. SOPC file -> niosII_system.sopcinfo
  9. finish
  10. In a file explorer, open software files (in the app note zip) and copy all source files there to the new software project directory
  11. Delete hello_ucosii.c
  12. Refresh
  13. Run

To use the android application

  1. The provided file is an AndroidStudio project
  2. Unzip the archive
  3. Open AndroidStudio
  4. File -> Open
  5. Navigate to the directory you unzipped the project and select it
  6. Wait - it takes a long time
  7. Project is now usable.

In the application,

  1. Ensure your bluetooth is enabled
  2. Pair your phone with the chip before using the app
  3. Hit refresh to get a list of paired devices
  4. click the name of your bluetooth device
  5. If it fails to connect, try again - it sometimes fails for no reason
  6. You should see a message saying "reply: " and then some characters
  7. As long as the "reply" message pops up, you have two-way communications working - even if the message appears garbled.