This is an old revision of the document!


Gateway

The software to collect and decode the various packets transmitted by the different generations of weatherboxes

Gateway Repository:

Maintenance/User Manual:


  • USB Resetting Issue
    1. Implement software solution to check if USB device needs to be reset
    2. Utilize Python threads
  • Improve Data Formatting
    1. Parse Time field into separate fields
      1. Day, Month, Year, Time
  • Automatically Determine XBee Port
    1. Appropriate error codes for corresponding unit tests

  • Collect incoming packets and input the data into database tables


  while no packets to process:
      wait for packets
  
  
  extract rf data from packet
  determine schema number
  If schema is 0
      decode as heartbeat packet
  else if schema is 1
      decode as apple packet
  else if schema is 2
      decode as cranberry packet
  else if schema is 3
      decode as dragonfruit packet
  
  
  Print data to stdout
  Add data to respective .csv file
  Write data to respective database table

  • weatherbox/gateway/start.1479260036.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)