Commit graph

492 commits

Author SHA1 Message Date
Paul Kronenwetter b8ac18bc54
Merge branch 'main' into bugfix_issue_207 2022-06-15 20:06:31 -04:00
Paul Kronenwetter c15b11fe7b Fix tests and tnc after merge. 2022-06-15 19:42:12 -04:00
Paul Kronenwetter f695e6e2af Collapse repeated code to a function.
Add function parameter and return types.
Move logging to a class variable.
Extended use of FREEDV_MODE enum.
Moved TESTING check to arq_cleanup.
2022-06-15 19:40:14 -04:00
Paul Kronenwetter 2d5ebd5846 Minor reworking of the source Pythonness. 2022-06-15 19:40:14 -04:00
DJ2LS f58bc10b89 mkfifo test prototype
First partially working prototype for testing the full tnc with mkfifo named pipes.
2022-06-15 19:40:14 -04:00
Paul Kronenwetter 38f468adce Various refactorings.
Type hints, trailing backslash, range usage, etc.
2022-06-15 19:40:11 -04:00
Paul Kronenwetter 866388b625 Remove excess newlines. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter 7d163ac189 Remove excess trailing spaces. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter c0c1518fd0 Another round of formatting changes.
Implement class-level logging in places.
2022-06-15 19:37:08 -04:00
Paul Kronenwetter bea8679cef Prefer double- over single-quote.
Other minor fixes.
2022-06-15 19:35:21 -04:00
DJ2LS 0b3c293480 and some more typos and whitespace correction.. 2022-06-15 19:34:29 -04:00
DJ2LS 8a66555e8b Accepted some Sourcery solutions 2022-06-15 19:31:00 -04:00
DJ2LS 520f32aac2 Second run reducing number of problems 2022-06-15 19:29:01 -04:00
DJ2LS c71369aa44 First run reducing number of problems 2022-06-15 19:27:26 -04:00
dj2ls debe742081 audio tuning level hotfix 2022-06-15 15:03:54 +02:00
dj2ls f758e10a35 removed static.INFO fields 2022-06-15 10:54:34 +02:00
dj2ls 5a2023b2c0 updated arq session state 2022-06-15 10:40:54 +02:00
dj2ls 3618792598 increased version information and updated npm packages 2022-06-09 21:47:11 +02:00
dj2ls a19a6c13c1 added qrv info toast 2022-06-09 21:31:12 +02:00
dj2ls 1909087c6b file transfer now working 2022-06-09 14:11:39 +02:00
dj2ls a4df21c0a2 further changes of gui 2022-06-07 11:31:59 +02:00
dj2ls 8e4a3f4d33 first change of gui 2022-06-07 10:08:15 +02:00
dj2ls 0c0e8dd8ca use uuid and mycallsign within class 2022-06-06 21:07:41 +02:00
dj2ls 79f1f8e9b2 added simple message identifier 2022-06-06 20:50:36 +02:00
dj2ls acd8b345c1 reduced message information 2022-06-06 20:44:35 +02:00
dj2ls 6613142fce updated messages 2022-06-06 20:31:15 +02:00
Paul Kronenwetter 4fd8c4932a Fix for issue #207.
Add a few debugging logs.
2022-06-05 14:09:38 -04:00
DJ2LS d159a5140d first change of info fields 2022-06-05 19:11:09 +02:00
Paul Kronenwetter 647fd2d6ca Adjust get_logger names. 2022-05-31 20:35:35 -04:00
Paul Kronenwetter b44c60fa32 Add flexibility to log_handler. 2022-05-31 20:34:22 -04:00
Paul Kronenwetter 2be89b5b20 Change sock per PR comments. 2022-05-31 19:45:37 -04:00
Paul Kronenwetter eeb8532651 Change modem from PR comments. 2022-05-31 19:45:25 -04:00
Paul Kronenwetter 8cc1e721b6 Make argument name more useful.
Also fix a missed bandwith -> bandwidth typo fix.
2022-05-30 16:40:58 -04:00
Paul Kronenwetter d04a306be8 Revert "Simplify option handling."
This reverts commit 800099ab62.
2022-05-30 16:33:36 -04:00
Paul Kronenwetter 4af1280e0a Remove unreachable code. 2022-05-30 16:01:25 -04:00
Paul Kronenwetter 800099ab62 Simplify option handling. 2022-05-30 14:48:46 -04:00
Paul Kronenwetter 13fca45fc1 Format tnc directory with black. 2022-05-30 13:47:51 -04:00
Paul Kronenwetter ae3fafde8d Implement send_data_to_socket_queue.
Implements capability requested in issue 200.
Remove similar duplicated code in `arq_data_received`, `arq_transmit`,
`frame_nack_received`, `arq_open_data_channel`, `received_ping_ack`,
`received_beacon` and `received_qrv`.
2022-05-30 11:41:24 -04:00
Paul Kronenwetter bc6db3950f Suppress expected exceptions.
Fixes issue #196.
2022-05-29 09:47:11 -04:00
Paul Kronenwetter 99586c6d19 Fix for IndexError related to SSID extraction. 2022-05-29 09:43:17 -04:00
Paul Kronenwetter b0742e114a Correct usage of tempbuffer list. 2022-05-29 08:42:38 -04:00
Paul Kronenwetter e4ad7bbb1b Remove extra assignment. 2022-05-28 15:43:25 -04:00
Paul Kronenwetter 6a565ffe41 Merge branch 'main' into refactor_N2KIQ-202205-2 2022-05-28 11:52:05 -04:00
DJ2LS 1fa8f0f2ae smaller changes... 2022-05-28 14:31:58 +02:00
DJ2LS adf800b822 changed bandwith typo --> this could break some things.. 2022-05-28 14:08:33 +02:00
Paul Kronenwetter 2fa9aead44 Another round of formatting changes.
Implement class-level logging in places.
2022-05-27 22:17:15 -04:00
Paul Kronenwetter 98c1030c24 Incorporate some changes from pep8_improvements.
Simplify structlog calls.
Other refactoring.
2022-05-25 21:23:30 -04:00
Paul Kronenwetter 08202bbaec Prefer double- over single-quote.
Other minor fixes.
2022-05-25 18:27:33 -04:00
Paul Kronenwetter 87ebea6c52 Remove annoying debug message. 2022-05-23 21:22:54 -04:00
Paul Kronenwetter 9c28021c51 Remove copy/paste comment that didn't fit. 2022-05-23 18:06:33 -04:00
DJ2LS e05bc262ad and some more typos and whitespace correction.. 2022-05-23 14:26:14 +02:00
DJ2LS 7a530175f8 Accepted some Sourcery solutions 2022-05-23 14:02:22 +02:00
DJ2LS 1bab085ca8 Merge remote-tracking branch 'origin/pep8_improvements' into pep8_improvements 2022-05-23 13:12:24 +02:00
DJ2LS d992fd8dc0 Second run reducing number of problems 2022-05-23 13:11:16 +02:00
DJ2LS 507e3a5b06
Merge branch 'main' into pep8_improvements 2022-05-23 09:46:42 +02:00
DJ2LS b6face744b First run reducing number of problems 2022-05-23 09:37:24 +02:00
Paul Kronenwetter a456ff54f7 Use min/max for speed_level adjustments.
Rearranged more comments.
2022-05-22 22:13:43 -04:00
Paul Kronenwetter ee1305a2dc Bandwidth spelling. 2022-05-22 21:11:40 -04:00
Paul Kronenwetter 2c0728770c Collapse repeated code to a function.
Add function parameter and return types.
Move logging to a class variable.
Extended use of FREEDV_MODE enum.
Moved TESTING check to arq_cleanup.
2022-05-22 20:54:12 -04:00
Paul Kronenwetter a19bf69f40 Minor reworking of the source Pythonness. 2022-05-22 16:29:49 -04:00
Paul Kronenwetter bcdc7193a5 Collapse repeated code to a loop.
Add function return types. Start using FREEDV_MODE enum in places where
a raw number or string were used.
2022-05-22 15:58:05 -04:00
Paul Kronenwetter e0f96ffabe Refactor FIFO callback. 2022-05-22 14:20:03 -04:00
Paul Kronenwetter 9ad1e22470 Fix bandwidth spelling for hamlib. 2022-05-22 13:05:47 -04:00
Paul Kronenwetter 6eafb081a1 Refactor audio demodulation routines.
Reformatted file & sorted imports per PEP8.
2022-05-22 12:38:56 -04:00
dj2ls b62aa05dbe removed nested state check 2022-05-20 14:38:43 +02:00
dj2ls 0db0fcc27e changed clip range for snr to -128/128 instead of 0/255
This possibly fixes the SNR problem, but needs to be tested carefully as we had a reason for using np.clip()
2022-05-20 09:26:01 +02:00
dj2ls 5317c8081a fixed speed level 2022-05-19 22:37:27 +02:00
dj2ls 1f66f54f5f first attempt of fixing #189 2022-05-19 22:15:24 +02:00
dj2ls 2f767a0cf3 fixed #139 2022-05-19 16:48:21 +02:00
dj2ls 3eca209b85 hamlib typo 2022-05-19 07:19:51 +02:00
Paul Kronenwetter 8e92504a45
Fix for issue #181.
Typo of `HAMLIB_RGICTLD_IP` was fixed on the wrong branch.
2022-05-18 22:14:47 +00:00
Paul Kronenwetter 8a5e290a30 Various refactorings.
Type hints, trailing backslash, range usage, etc.
2022-05-15 11:07:56 -04:00
Paul Kronenwetter 3a70b87e21 Remove excess newlines. 2022-05-15 11:06:14 -04:00
Paul Kronenwetter 9753735c40 Remove excess trailing spaces. 2022-05-15 11:06:07 -04:00
Paul Kronenwetter 6e17caf3cf Making check_callsign evaluation more consistent. 2022-05-03 20:08:26 -04:00
Paul Kronenwetter bcc15287c9
Corrects issue #173 fix
I didn't look carefully enough at `helpers.check_callsign` to see that it returns a list. The first element of the list is `True`/`False`.
2022-05-02 00:39:27 +00:00
Paul Kronenwetter 0e43f65bc2 Add function docstring to received_session_close. 2022-05-01 11:41:40 -04:00
Paul Kronenwetter d2e38b77eb Implements another TODO from #173 .
Corrects previous fix as well.
2022-05-01 11:34:31 -04:00
Paul Kronenwetter 7b4f75f66c Implements TODO from #173 . 2022-05-01 11:07:54 -04:00
dj2ls 0e8e3d1b67 fixed file transfer for 24bit crc 2022-05-01 11:19:59 +02:00
dj2ls ffff256623 arq disconnect improvement
this should fix and closes #173
2022-04-30 13:03:24 +02:00
Paul Kronenwetter e4b901adad Adding callsign for ID after stop transmission. 2022-04-24 18:43:50 -04:00
Paul Kronenwetter aefee60bad Initial attempt to fix issue #179. 2022-04-24 13:30:43 -04:00
dj2ls 107daa1b47 increased disconnect bursts
lets see if this improves
#173
2022-04-24 16:11:36 +02:00
dj2ls 57e4af83af first test with 24bit crc
moved from 16bit crc to 24bit crc...First test for ping and file transfer seems to be working... This has been too easy... 🤔
2022-04-19 11:09:11 +02:00
dj2ls a90abb122f enable/disable cq response
Enable and disable CQ response via GUI. Also moved settings to settings modal - with a small redesign. Auto updater still WIP
2022-04-18 17:17:53 +02:00
dj2ls 88149830df first test with 6bit gridsquare encoding
same for grid as call - we should think about saving the callsign and gridsquare as string and not as bytes. Also increased disconnect burst number where a toggle loop occured...
2022-04-17 22:30:15 +02:00
dj2ls 53af74f757 first test with 6bit callsign encoding
seems to work, but we have to redesign the way how we handle callsigns. This is really confusing...
2022-04-17 22:16:13 +02:00
dj2ls 921627d0b8 updated version information 2022-04-16 16:29:19 +02:00
dj2ls 2daafd183a removed some info lines 2022-04-16 16:28:04 +02:00
Paul Kronenwetter 62b939fbc9 Replaced sleep with helpers.wait in transmit_qrv. 2022-04-15 19:59:12 -04:00
Paul Kronenwetter 9f9b5e98e2 Remove errant inclusion of NOCALL ping logging. 2022-04-15 15:24:12 -04:00
Paul Kronenwetter 82935dcaae Proof of concept automatic response to CQ.
Uses new QRV frame rather than new BREPLY frame. Also changes CQ
behavior to send only one frame instead of 3.
NOTE: This implementation will respond *three* times to previous release
software (v0.3.3-alpha.3 and earlier).
2022-04-15 15:17:14 -04:00
Paul Kronenwetter 08faa53f26 WIP: Proof of concept using BEACON and new BREPLY frames. 2022-04-15 14:41:20 -04:00
Paul Kronenwetter 195310dda1 Removing unneeded code.
Bytearray fills with zero upon allocation.
2022-04-15 11:26:53 -04:00
Paul Kronenwetter 802185b31a Removing commented frequency_offset code. 2022-04-15 11:03:14 -04:00
Paul Kronenwetter 02bc780dce Remove frequency_offset from received_ping. 2022-04-15 09:01:33 -04:00
Jörg adbaa8e6f3 keep uncoded SSID 0 - 63 and changed to fixed binary code word length 6 2022-04-14 15:27:03 +02:00
Jörg 7c4ccac6a0 added helper functions for en/decoding 8 byte upper case call [A-Z,0-9] in 6 byte code word with 6 bits per sign
can even do longer or shorter en/decoding using bytes_length parameter for other purpose
could be extendet for lower case letters, not implemented to save performance
2022-04-14 12:41:58 +02:00
DB1UJ a25b5f01c1
added author, typo 2022-04-14 10:26:48 +02:00