Commit graph

114 commits

Author SHA1 Message Date
Nonoo
a99478f297 Use the pkt0 tracker for sending audio data, so retransmissions can be requested by the radio 2020-10-25 20:41:38 +01:00
Nonoo
f28a0b46cb Completely handle retransmit requests 2020-10-25 20:18:24 +01:00
Nonoo
de1f40e171 Fix sigterm handling if can't connect 2020-10-25 20:07:26 +01:00
Nonoo
5df5ceb393 Add missing stuff from previous commit 2020-10-25 18:29:50 +01:00
Nonoo
8d2d81d3a9 Move function to common 2020-10-25 18:29:31 +01:00
Nonoo
255243718d Request retransmit of lost serial packets 2020-10-25 18:24:36 +01:00
Nonoo
c5e4ad2230 Move retransmit send functions 2020-10-25 18:02:23 +01:00
Nonoo
094b0f01ab Send retransmit requests for missing audio frames 2020-10-25 17:54:48 +01:00
Nonoo
0e881d6f32 Fix deinit if init not ran yet 2020-10-25 16:50:37 +01:00
Nonoo
bd5f210dd4 Don't report pkt7 losses 2020-10-25 16:39:16 +01:00
Nonoo
3d4925c2c7 Ignore already present entries in the seqbuf 2020-10-25 16:25:39 +01:00
Nonoo
f6c7a7595a Add TCP server for rigctl 2020-10-25 16:15:39 +01:00
Nonoo
20d9c287d3 Deinit audio last because it is the most problematic deinit (pulseaudio...) 2020-10-25 15:39:41 +01:00
Nonoo
f2697e76ae Fix not getting replies for too fast serial commands 2020-10-25 14:27:53 +01:00
Nonoo
1fa9b0e4a4 Fix serial port read 2020-10-25 14:16:12 +01:00
Nonoo
5a39c66f7e Simplify serial port write 2020-10-25 14:15:52 +01:00
Nonoo
e719ed1f32 Fix occasional hang on serial port deinit 2020-10-25 12:56:45 +01:00
Nonoo
a222cbd92d Support variable sized reads from the serial port 2020-10-25 12:56:28 +01:00
Nonoo
a45f07cd61 Set raw termios on the serial port 2020-10-25 12:55:53 +01:00
Nonoo
a02edcc247 Move frame length constant 2020-10-25 12:55:41 +01:00
Nonoo
68299379db Add serial read/write, not completed yet 2020-10-25 12:00:04 +01:00
Nonoo
f22f1b1ed4 Set max. serial frame length 2020-10-25 11:59:46 +01:00
Nonoo
f5a0b5e61e Fix occasional hang on audio deinit 2020-10-25 11:03:39 +01:00
Nonoo
3731871cc7 Add detection of radio poweroff 2020-10-25 10:55:05 +01:00
Nonoo
334583ce44 Move pkt0 out of the control stream module 2020-10-25 10:53:46 +01:00
Nonoo
ad8a7f2072 Add listing of encoding used in usernames/passwords 2020-10-25 09:27:23 +01:00
Nonoo
3521a26908 Always send a control stream deauth if we can on deinit 2020-10-24 09:29:56 +02:00
Nonoo
c2a62fada1 Remove unused var 2020-10-23 23:42:40 +02:00
Nonoo
7327ff3215 Use previous SIDs if we get an unexpected serial/audio req. success 2020-10-23 23:41:56 +02:00
Nonoo
0c6812396c Use random local session ID 2020-10-23 23:24:17 +02:00
Nonoo
efd81c9568 Don't double send non-important packets 2020-10-23 23:21:30 +02:00
Nonoo
bbddf769b0 Add deauth on disconnect 2020-10-23 23:18:37 +02:00
Nonoo
89c57a6a6e Make the login process more reliable 2020-10-23 22:52:14 +02:00
Nonoo
1d1ea6ea44 Rework login 2020-10-23 18:36:47 +02:00
Nonoo
e9d71de2c4 Add delayed deinit 2020-10-23 16:20:09 +02:00
Nonoo
f79d23f755 Add support for restarting the whole process on failure 2020-10-23 14:00:59 +02:00
Nonoo
9dbd5760ce Use radio name for pulse dev description 2020-10-21 16:09:10 +02:00
Nonoo
6f512cfaf3 Readd mistakenly removed func 2020-10-21 15:44:16 +02:00
Nonoo
a36d8ad9b9 Comment out unused func 2020-10-21 15:43:19 +02:00
Nonoo
fc0a7ba29d Move disconnect send to the common stream close function 2020-10-21 15:42:59 +02:00
Nonoo
ee7a180292 Update magic byte in the serial/audio stream open packet 2020-10-21 15:27:47 +02:00
Nonoo
06c8e900cb Use a slower login method 2020-10-21 15:27:40 +02:00
Nonoo
3395a6b7f3 Handle duplicate pkt7 replies 2020-10-21 15:27:18 +02:00
Nonoo
53097212f6 Duplicate each control packet sent to the radio 2020-10-21 15:05:28 +02:00
Nonoo
fb730e595e Make disconnect function names consistent 2020-10-21 14:29:23 +02:00
Nonoo
a5bf37056f Use random local UDP ports 2020-10-21 14:29:15 +02:00
Nonoo
7324124545 Only report status if serial and audio streams are open 2020-10-21 14:03:11 +02:00
Nonoo
72b52d1b23 Don't report error on exit 2020-10-21 13:59:56 +02:00
Nonoo
0a4aaefa4e Implement serial port read/write loops 2020-10-21 09:37:26 +02:00
Nonoo
f2edd1a106 Move platform specific stuff to separate files 2020-10-21 09:26:21 +02:00