weatherbox:gateway:gateway_simulation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
weatherbox:gateway:gateway_simulation [2016/11/18 03:06]
tbyers
weatherbox:gateway:gateway_simulation [2017/03/08 04:29]
tbyers
Line 4: Line 4:
 To test the Gateway with simulated packets, first download or clone the repository at https://​github.com/​scel-hawaii/​data-gateway. For best results use a linux machine. Windows machines are incompatible. To test the Gateway with simulated packets, first download or clone the repository at https://​github.com/​scel-hawaii/​data-gateway. For best results use a linux machine. Windows machines are incompatible.
 ---- ----
- 
-**Edited: 09/29/16** 
  
 The following documentation denotes how to test packets with the packet_tester.py without hardware on a Linux machine. The following documentation denotes how to test packets with the packet_tester.py without hardware on a Linux machine.
Line 50: Line 48:
 ====== Adding New Packets ====== ====== Adding New Packets ======
 If at some point you need to add more packets to the simulation, here is how to do it. If at some point you need to add more packets to the simulation, here is how to do it.
 +
 +**Prerequisites:​ You need to have a working box transmitting the packets you would like to capture to an XBee device connected to your computer via USB.**
  
 **Step 1: After cloning the data-gateway repository, move to the "​test"​ directory** **Step 1: After cloning the data-gateway repository, move to the "​test"​ directory**
Line 57: Line 57:
 **Step 2: Open the fake_packet.py file with the editor of your choice and make sure the "first block" of code is not commented out and the "​second block" of code is commented out, if that is not the case make it so** **Step 2: Open the fake_packet.py file with the editor of your choice and make sure the "first block" of code is not commented out and the "​second block" of code is commented out, if that is not the case make it so**
  
- Insert Image Here+{{ :​weatherbox:​gateway:​gateway_test_code_2.png?​300 |}}
  
 **Step 3: Run fake_packet.py while a weatherbox is transmitting the packets you wish to replicate, and an XBee is connected to your computer.** **Step 3: Run fake_packet.py while a weatherbox is transmitting the packets you wish to replicate, and an XBee is connected to your computer.**
Line 65: Line 65:
 **Step 4: Reopen fake_packet.py and make sure the "first block" is now commented out and the "​second block" is not commented out** **Step 4: Reopen fake_packet.py and make sure the "first block" is now commented out and the "​second block" is not commented out**
  
- Insert Image Here+{{ :​weatherbox:​gateway:​gateway_test_code_1.png?​300 |}}
  
 **Step 5: Run fake_packet.py again** **Step 5: Run fake_packet.py again**
  • weatherbox/gateway/gateway_simulation.txt
  • Last modified: 2021/09/19 21:59
  • (external edit)