Closed kb1lqd closed 7 years ago
I rigged up a test to figure out what was going on and the summary is:
Application This was the snippet of code that sent a POST command to the Proxy server:
using a POSTMAN test call:
Proxy
The code was modified to print data information and shows:
I modified Proxy to NOT filter packet length and the results were a success!
The text string "Testing new application!" was successfully received on the CC430 Faraday!
I see no harm in removing the POSTed data check for data in Proxy and it will follow the methodology of isolating layers and mediums from eachother when possible.
This bug was resolved by removing the 164 byte check completely in merger #28
Proxy.py: https://github.com/FaradayRF/Faraday-Software/blob/master/proxy/proxy.py
While writing the device configuration program I found that the Proxy program POST expected 164 byte items and this doesn't make much sense. @kb1lqc informed me that this was because of the fixed packet length of the UART layer 4 protocol.
This doesn't make sense because fixed packets are 128 byte's in total prior to framing. The only reasonable explanation is that 164 bytes were a chance length from his testing of telemetry packets and are a result of the specific case of testing and BASE64 encoding size increase. This length would likely change with different data POSTed.
The POST command filtering data for fixed length to avoid random data is pretty useless because: