Skip to content

Android RX Data Post Rest API

Djamil Elaidi edited this page Oct 30, 2017 · 7 revisions

You can send the captured RX data to your own server for processing.

When pushing captured data, the following formats are supported:

The content of the JSON data pushed is:

{
"nameOfGate": String const = "fromAPI",
"Frequency": Int,
"Modulation": Int,
"Data rate": Int,
"Repeat": String,
"Desired Payload": String,
"Captured Payload": String,
"Frame length": Int,
"Data": String,
"key_Size":Int
}

Example

{
"nameOfGate":"fromAPI",
"Frequency":433913879,
"Modulation":48,
"Data rate":3200,
"Repeat":"0",
"Desired Payload":"20",
"Captured Payload":"52",
"Frame length":52,
"Data":"\nfffffffffffffbffff97fe7dffffffffffffffffbff9cfffffbfffff3f7ff3f9ffffdffeffffffe7fffcf3fffe7ff9e7ffcffffd\n",
"key_Size":52
}

Update 30/10/2017: the data has now the following syntax:

{  
   "Captured Payload":"249",    
   "Data":"B2CB2CB2C800000000B2CB2CB2C800000000B2CB2CB2C800000000B2CB2CB2C800000000B2CB2CB2C800000000B2C......",
   "Desired Payload":"20",
   "Frame length":52,
   "Repeat":"0",
   "ChannelBandwidth":0,
   "Data rate":1500,
   "Frequency":433920000,
   "Modulation":48,
   "key_Size":249,
   "session name":"fromAPI"
}

Warning : The value of "Data" begins and ends by '\n'

How to test

I suggest you the excellent https://requestb.in Create a RequestBin and enter the URL in "Post to API" dialog.

Project Information

PandwaRF Android Application (Normal Mode)

PandwaRF Android Application (Dev Mode)

Marauder Android Application

iOS Application

Linux

Hardware

For developers

Support

Gimme moar!

Clone this wiki locally