weatherbox:unified_software_team:programming_dragonfruit_and_xbee_configurations

If trying to deploy and send packets to server, first burn the Node ID THEN program Dragonfruit. Node ID is unique to a board so only need to do it once.

Steps to burn Node ID

1. Open Atom and connect FTDI to board
2. Import the weatherbox_firmware files from github: "https://github.com/scel-hawaii/weatherbox-firmware.git"
3. Open the "burn_node_id" directory and open the "burn_node_id.ino" file. 
4. PlatformIO -> Run other target -> "PlatformIO: Upload"
5. Open serial monitor and follow steps

Steps to program Dragonfruit

1. Open Atom and connect FTDI to board
2. Import the weatherbox_firmware files from github: "https://github.com/scel-hawaii/weatherbox-firmware.git"
3. Ensure that you are on the "master" branch
4. Open the gen_dragonfruit directory and click on any file
5. PlatformIO -> Clean (wait till the operation finishes)
6. PlatformIO -> "Run other target" -> "PlatformIO: Upload (env:gd_production)"

To test readings in serial monitor

1. Open serial monitor, select port, and 9600 baudrate
2. In the serial monitor, there is initial sensor readings then constant heartbeats. To force the serial monitor to read sensor values, enter CMD mode by pressing "shift + p"
3. To keep getting values keep pressing "shift + p"

To configure XBee to test if packet is sending from a test coordinator XBee to a test router XBee (Need 2 XBees)

1. Open XCTU and connect both XBee to computer
2. Add the XBee to XCTU by clicking the add botton in the top left
3. Go to XBee recovery and select the model of the XBee you are currently using. The model is under the XBee, usually XBP24BZ7 and select either coordinator API for one of them and router API for the other one. Then select newest firmware version.
4. Go to configuration settings and set both XBee to any PAN ID. Set API enable to 2. Make sure both XBees have the same PAN ID and have API enable set to 2. Don't touch any other setting.

To configure XBee to test if packet is sending to server (Only need 1 XBee)

1. Open XCTU and connect a XBee to computer. Add the XBee to XCTU by clicking the add button in the top left
2. Go to XBee recovery and select the model of the XBee you are currently using. The model is under the XBee, usually XBP24BZ7 and select router API. Then select the newest firmware version.
3. Go to configuration settings and set the XBee PAN ID to "EE3014" and set API enable to 2. Don't touch any other setting.

Authors

Contributing authors:

nlam

Created by nlam on 2016/11/11 03:08.

  • weatherbox/unified_software_team/programming_dragonfruit_and_xbee_configurations.txt
  • Last modified: 2021/09/19 21:59
  • (external edit)