Category:JavaSimplePeripheral

Bluetooth Low Energy Wiki Main Page

JavaSimplePeripheral


This is a sample application showing a PC communicating with the USB Dongle over a virtual COM port.  HCI commands can be sent and received from over the COM port. For a list of these commands please refer to the Vendor Specific HCI guide.  Note, the USB dongle will need to have the network processor image loaded and the keyfob should have the SimplePeripheral application (supplied with kit) installed. Note - Tested on Windows XP. The COM port did not enumerate for me on Windows 7.

- Source Code

Headline text
README  1. Introduction This document will give a walkthrough on how to set up and use the Java source code. This is only preliminary code, and should be condsidered for reference only. 2. Installation 2.1 Download and install Java Runtime Environment version 1.6 or later 2.2 Installing the RXTX library. 2.2.1 Identify your Java Runtime Environment’s folder. For version 1.6.0, this usually is c:\Program Files\Java\jre6\. 2.2.2 Copy rxtxParallell.dll and rxtxSerial.dll to c:\Program Files\Java\jre6\bin\ 2.2.3 Copy RXTXComm.jar to c:\Program Files\Java\jre6\lib\ext 2.3 Download and install Eclipse IDE For Java Developers. 2.3.1 Open eclipse, choose ”Go to workbench”. 2.3.2 Choose ”file->import->existing projects into workspace”. 2.3.3 Choose ”select archive file->browse” and choose the provided JavaSimplePeripheral.zip The project should now be visible in the Package Explorer. 3. Software running on the CC2540 Load the idential SimplePeripheral images as delivered with the kit. 4. Running the application

The application will attempt to connect. Once connected the user can press the buttons on the application to enable or disable keypress notifications from the KeyFob. Eclipse system print messages will show all traffic.