Niel Nielsen
2cbd193d7b
Update BLE function comments for clarity and consistency
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-14 11:47:32 +02:00
Niel Nielsen
5922a7112f
Update BLE name resolution to use BlueZ mgmt API
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-14 11:47:08 +02:00
Niel Nielsen
284e4b385c
Refactor BLE error handling and time functions
...
Refactor BLE error handling to return standard error codes instead of PM3_* constants. Update time-related functions to use a consistent method for obtaining the current time.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 17:58:45 +02:00
Niel Nielsen
50e07859e8
Refactor error handling in select function
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 16:25:09 +02:00
Niel Nielsen
510767f51e
Update return values in ble_posix.h documentation
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 14:54:45 +02:00
Niel Nielsen
cdc4d7ad26
Refactor BLE connection error handling and logging
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 14:54:07 +02:00
Niel Nielsen
28daf3e2c4
Enhance BLE capabilities hint and connection logic
...
Add hints for granting BLE scanning privileges and improve error handling in connection functions.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 13:15:40 +02:00
Niel Nielsen
7efc83ca1d
Implement BD address validation and update BLE logic
...
Added a function to check if a string is a valid Bluetooth address and updated the BLE connection logic to handle both addresses and names.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 12:44:15 +02:00
Niel Nielsen
dcde9dd16e
Add ble_resolve_name function for device name resolution
...
Added a function to resolve advertised device names to their LE addresses.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 12:43:40 +02:00
Niel Nielsen
e0fbc4174c
Add includes for string and time functions
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-13 12:43:10 +02:00
dxl
02587820fb
Optimize serial port transmission speed on Windows.
2026-09-02 00:04:12 +08:00
iceman1001
5c38ce0a1d
added a wake up pipeline to see if sim module actually is doing things or not. Might not work well on Windows machines... proxspace I am looking at you. but in short this would make comms between device and client faster
2026-08-27 15:35:45 +02:00
iceman1001
bbe0c11e4c
reverting
2026-08-27 14:26:35 +02:00
iceman1001
3ba5936c70
faster client polling. Should make the pm3 client more spiffy
2026-08-27 12:44:30 +02:00
Niel Nielsen
c5c53d444f
Increase RX buffer size and improve comments
...
Enlarged the kernel RX buffer and updated comments for clarity.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-08-26 16:07:37 +02:00
Niel Nielsen
46ab575247
Implement BLE support in uart_posix.c
...
Added BLE support to serial port handling for Unix systems, including connection and data transmission methods.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-08-26 16:07:37 +02:00
Niel Nielsen
d573ebc624
Add files via upload
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-08-26 16:07:37 +02:00
Niel Nielsen
d0fc4336be
Add files via upload
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-08-26 16:07:37 +02:00
iceman1001
41ad752a95
fix coverity #290250
2026-07-03 11:33:35 +02:00
iceman1001
2597c7576e
style
2025-07-10 11:52:39 +02:00
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