Commit Graph

61 Commits

Author SHA1 Message Date
iceman1001 ad292e8810 unify test - step 2 2025-03-25 10:17:42 +01:00
Philippe Teuwen d490be9649 cppcheck truncLongCastAssignment 2025-03-23 23:34:29 +01:00
iceman1001 b4cc21c68f modified hf 14a apdu to report back when extending time and also added a possibililty to interrupt the extension loop with button press or usb commad. A bunch of minor textual changes 2025-03-20 19:58:13 +01:00
iceman1001 72900d1bf9 fix and style 2024-09-06 22:36:44 +02:00
Philippe Teuwen 83f6e2b56b make style 2024-08-14 10:57:05 +02:00
Philippe Teuwen c91ca6c703 Fix some first connect EACCES errors on freshly plugged pm3 2024-08-12 19:07:32 +02:00
iceman1001 283a3e44ed remove missing usage of define 2024-06-12 12:28:02 +02:00
iceman1001 3e1bd8f50a the BT serial port setup on Windows didnt work properly. By adding the baud rate in the new termios settings the issue seem to be fixed. Also added some extra flushing calls and some more configuration settings for chars. 2024-06-11 14:32:35 +02:00
nvx d2d6f80d11 Fix some missing frees, null dereferences and missing initialisation picked up by clang-analyzer 2024-01-16 00:22:53 +10:00
iceman1001 482a6464a2 style. we use calloc 2024-01-07 20:47:07 +01:00
iceman1001 238572c337 style 2024-01-01 21:52:05 +01:00
wh201906 47376c84ea Disable print when reconnect 2024-01-01 15:55:54 +08:00
wh201906 e5dd9952d7 Misc
Change style of if block with single statement
Reset rx_empty_counter in uart_open()
2023-12-27 22:22:19 +08:00
Iceman abdaf57cd9 Merge pull request #2218 from wh201906/net_simplify
Clean up the code for network connection
2023-12-27 13:56:50 +01:00
wh201906 3fb4515893 Check TCP connection state 2023-12-26 21:23:43 +08:00
wh201906 39866f9ed2 Reuse code for TCP and UDP connection
Put prefix length validation before memcmp() to avoid overflow
2023-12-26 17:58:41 +08:00
wh201906 81780bd164 Add uart_parse_address_port() 2023-12-26 17:58:22 +08:00
wh201906 ecec001fdd Put uart_bind() into uart_common.c 2023-12-26 17:56:14 +08:00
iceman1001 c793363b4f pedantic fixes 2023-11-03 12:52:01 +01:00
wh201906 de7b6f35bc Clean up the code for timeout
Rename UART_TCP_CLIENT_RX_TIMEOUT_MS to UART_NET_CLIENT_RX_TIMEOUT_MS
Add UART_UDP_LOCAL_CLIENT_RX_TIMEOUT_MS for shorter timeout
Check if the target address is local in uart_open()
2023-10-25 23:45:23 +08:00
wh201906 56b4bda50d Add bind option for TCP 2023-10-23 13:56:16 +08:00
wh201906 15ef4f6768 Add bind option (UDP, Windows) 2023-10-23 13:30:27 +08:00
wh201906 225b1894f9 Add bind option (UDP, Linux) 2023-10-23 01:48:38 +08:00
iceman1001 0dc921c6b7 added the udpv6 and also try to identify when v6 is used (tcp/udp) 2023-10-20 12:51:12 +02:00
iceman1001 a35bfbb13e modified the CLI prompt to also show if TCP/UDP is used in the communication 2023-10-20 10:38:53 +02:00
iceman1001 1f3cf80898 style 2023-10-18 20:34:35 +02:00
wh201906 5e22ed25bc Add UDP support on Windows 2023-10-17 22:48:12 +08:00
wh201906 d9b5afbb92 Add IPv6 support for TCP (Windows) 2023-10-17 19:40:41 +08:00
wh201906 67d36152cc Add IPv6 support for UDP (Linux) 2023-10-17 18:40:17 +08:00
wh201906 2e0c24c8f2 Add IPv6 support for TCP (Linux) 2023-10-17 18:32:13 +08:00
wh201906 bd34794d26 Add error handling 2023-10-16 21:12:14 +08:00
wh201906 703a2c968a Faster uart_receive() in UDP mode
Added some functions for writing data to the ring buffer directly
Increased the size of ring buffer
2023-10-16 20:05:42 +08:00
wh201906 3df58f3a9e Clean up 2023-10-16 02:09:22 +08:00
wh201906 5775b53078 UDP support on Linux 2023-10-16 01:56:03 +08:00
wh201906 7aef669e59 Add ringbuffer
This is used in the UDP connection
2023-10-16 01:52:27 +08:00
iceman1001 fc6feea0d4 experimental UDP support. Doesnt quite work yet 2023-10-14 20:30:13 +02:00
wh201906 b74c5db4f9 Make communication timeout configurable 2023-07-05 22:44:59 +08:00
iceman1001 c7af716942 style 2023-06-21 18:49:12 +02:00
iceman1001 f17ce1fd68 revert one debug message 2023-05-28 12:40:57 +02:00
iceman1001 2b90683aff added debug output for usart comms 2023-05-28 12:34:29 +02:00
AloneLiberty fae8ffda44 Fix formatting and run make style 2023-03-26 16:12:39 +03:00
wh201906 0f70df5de3 Add TCP connection support on Windows
The Windows Sockets 2 API is similar to the BSD Sockets API,
so I can reuse a lot of code in uart_posix.c
2023-03-06 19:55:41 +08:00
Doridian 83943aafc8 and done 2022-06-11 16:16:56 -07:00
iceman1001 fe9348768d use calloc instead 2022-01-09 00:33:33 +01:00
Philippe Teuwen 30aa7aa7d1 Adapting license headers, WIP 2022-01-08 00:40:52 +01:00
iceman1001 dd08c69f7e cleaner 2021-12-22 21:09:28 +01:00
Philippe Teuwen 88308ea727 typos 2021-10-10 01:35:45 +02:00
Philippe Teuwen bae5362656 rename typedef structs 2021-08-21 21:41:34 +02:00
Philippe Teuwen 6a2f2b3979 rename global conn 2021-08-21 20:21:08 +02:00
iceman1001 4c845fb859 endless happiness 2021-03-05 10:18:34 +01:00