Commit graph

304 commits

Author SHA1 Message Date
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
Nonoo 30372d9e91 Add Akos to the contributors 2020-10-20 23:30:23 +02:00
Nonoo 8943ff3627 Add serial stream 2020-10-20 23:26:05 +02:00
Nonoo 35c0a40b1c Fix null pointer access 2020-10-20 22:16:19 +02:00
Nonoo 3c22b401e3 Treat audio errors as unrecoverable errors 2020-10-20 19:48:24 +02:00
Nonoo 0678ac84bb Turn off ping timeout checks 2020-10-20 19:47:25 +02:00
Nonoo fee78c2172 Make radio init more reliable 2020-10-20 19:46:20 +02:00
Nonoo 030acc7e86 Add module name to errors 2020-10-20 17:50:50 +02:00
Nonoo 61dfe6e7a6 Fix high CPU usage 2020-10-20 17:40:24 +02:00
Nonoo 7a2a5bf4d2 Always fully deplete available entries from seqbuf 2020-10-20 17:21:45 +02:00
Nonoo 2032fc7ebb Protect the audio buffer with a mutex 2020-10-20 17:20:52 +02:00