Fixed faulty image transmission, implemented server exception handling in decoder

Develop
Sven Steudte 2017-08-29 00:35:16 +02:00
rodzic 934fd1ec3a
commit 23c42f83c3
4 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -108,7 +108,11 @@ def received_data(data):
print 'Send to SSDV data server: OK'
error = False
except urllib2.URLError, error:
print 'Send to SSDV data server: failed (connection error :( trying again...)'
if error.code == 400:
print 'The SSDV server indicated a faulty packet: ' + error.read()
error = False
else:
print 'Send to SSDV data server: failed (connection error :( trying again...)'
except urllib2.HTTPError, error: # The server did not like our packets :(
print 'Send to SSDV data server: failed (the server did not like our packets :( )'

Wyświetl plik

@ -237,7 +237,7 @@ void start_user_modules(void)
config[3].frequency.type = FREQ_APRS_REGION; // Dynamic frequency allocation
config[3].frequency.hz = 144800000; // Transmission frequency 144.800 MHz
config[3].init_delay = 0; // Module startup delay in msec
config[3].packet_spacing = 30000; // Packet spacing in ms
config[3].packet_spacing = 10000; // Packet spacing in ms
//config[3].sleep_conf.type = SLEEP_WHEN_ISOL_BELOW_THRES;
//config[3].sleep_conf.isol_thres = 3;
config[3].trigger.type = TRIG_CONTINUOUSLY; // Continuous Trigger

Wyświetl plik

@ -21,7 +21,7 @@
#define TRACE_TIME TRUE /* Enables time tracing on debugging port */
#define TRACE_FILE TRUE /* Enables file and line tracing on debugging port */
#define RUN_3V FALSE /* Lets the tracker run a 3V otherwise 1.8V. 3V is needed to do 20dBm radio output power.
#define RUN_3V TRUE /* Lets the tracker run a 3V otherwise 1.8V. 3V is needed to do 20dBm radio output power.
* With 1.8V only 15dBm can be done. Some serial-USB adapters also need a 3V IO level in
* order to work. However 3V takes a lot of power in idle. You can save energy using 1.8V. */

Wyświetl plik

@ -96,7 +96,7 @@ static const struct regval_list OV5640YUV_Sensor_Dvp_Init[] =
{ 0x3034, 0x1a },
{ 0x3035, 0x11 }, //15fps
{ 0x3036, 0x46 },
{ 0x3037, 0x14 },
{ 0x3037, 0x13 },
{ 0x3038, 0x00 },
{ 0x3039, 0x00 },