Skip to content

Commit 9cdd196

Browse files
committed
Add TCP Client
1 parent 8d811e5 commit 9cdd196

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

Firmware/Tools/TCP_Server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import socket
66

7-
HOST = socket.gethostbyname(socket.gethostname())
7+
HOST = "192.168.0.41" # Replace this with your local IP address
88
PORT = 2947
99

1010
print("Listening on {}:{}".format(HOST,PORT))

docs/img/Ethernet_TCP_Client_1.png

9.94 KB
Loading

docs/img/TCP_Client.gif

2.41 MB
Loading

docs/menu_ethernet.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ By default, the Reference Station will use DHCP to request an IP Address from th
1515

1616
*The Reference Station Ethernet menu - with a fixed IP address selected*
1717

18+
### Ethernet TCP Client
19+
20+
The Reference Station can act as an Ethernet TCP Client, sending NMEA and / or UBX data to a remote TCP Server.
21+
22+
This is similar to the WiFi TCP Client mode on our other RTK products, but the data can be sent to any server based on its IP Address or URL.
23+
24+
E.g. to connect to a local machine via its IP Address, select option "c" and then enter the IP Address using option "h"
25+
26+
![Ethernet TCP Client configuration](img/Ethernet_TCP_Client_1.png)
27+
28+
![Ethernet TCP Client connection](img/TCP_Client.gif)
29+
30+
The above animation was generated using [TCP_Server.py](https://github.com/sparkfun/SparkFun_RTK_Firmware/blob/main/Firmware/Tools/TCP_Server.py).

0 commit comments

Comments
 (0)