You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
# Arduino Serial to TCP Bridge Client
1
+
# Arduino TCP over Serial Client
2
2
Arduino client for the [Serial To TCP Bridge Protocol](https://github.com/RoanBrand/SerialToTCPBridgeProtocol) gateway service.
3
3
4
-
Open a TCP connection to a server from the Arduino using just serial. No Ethernet/WiFi shields necessary.
4
+
Open a TCP over Serial connection to a server from the Arduino using the host. No Ethernet/WiFi shields necessary.
5
5
Quickly communicate with other servers and make network apps using minimal hardware.
6
6
See [this](https://github.com/RoanBrand/SerialToTCPBridgeProtocol) for more information on the protocol and for the **Protocol Gateway** you will need to run on the host PC the Arduino is connected to serially.
7
7
@@ -19,7 +19,7 @@ These should install automatically when installing this library through the Ardu
19
19
## How to
20
20
- Get the [Protocol Gateway](https://github.com/RoanBrand/SerialToTCPBridgeProtocol) and build it.
21
21
- Change the gateway's config to listen on the Serial port connected to your Arduino and start it.
22
-
- Your Arduino app can then use the `ArduinoSerialToTCPBridgeClient` API which is similar to the `EthernetClient` API to make tcp connections to servers as long as they are reachable from the host PC and the gateway service is running.
22
+
- Your Arduino app can then use the `TCPOverSerialClient` API which is similar to the `EthernetClient` API to make tcp connections to servers as long as they are reachable from the host PC and the gateway service is running.
23
23
24
24
## Web Client Example
25
25
- Modified version of the Ethernet shield's Web Client example.
@@ -39,10 +39,10 @@ These should install automatically when installing this library through the Ardu
39
39
### Details
40
40
- Tested only on Arduino Uno. It would probably not work for the Arduino Due.
41
41
- You cannot use the same serial port in your app that is being used by the protocol, e.g. You cannot use `Serial` (Serial0) when the library uses `NeoSerial`, etc. You can modify this lib easily to use other hardware serial ports on bigger boards than the Arduino Uno if you want to free up your USB Serial connection.
42
-
- Your app's instance of `ArduinoSerialToTCPBridgeClient` needs to be a pointer and created with `new()`. It doesn't work otherwise and I don't know why yet.
42
+
- Your app's instance of `TCPOverSerialClient` needs to be a pointer and created with `new()`. It doesn't work otherwise and I don't know why yet.
43
43
44
44
- The protocol provides the app an in order, duplicates free and error checked byte stream by adding a CRC32 and simple retry mechanism. See [this](https://en.wikibooks.org/wiki/Serial_Programming/Error_Correction_Methods) for background.
45
45
- The **Protocol Gateway** opens a real TCP connection to a set destination on behalf of the **Protocol Client** running on the Arduino, and forwards traffic bi-directionally.
46
-
-`ArduinoSerialToTCPBridgeClient` is derived from the standard Arduino `Client` class. This means existing code written for Ethernet/Wi-Fi shields should work with this.
46
+
-`TCPOverSerialClient` is derived from the standard Arduino `Client` class. This means existing code written for Ethernet/Wi-Fi shields should work with this.
47
47
-`NeoHWSerial` is an alternative for `Serial`, used to gain access to the AVR UART interrupts.
48
48
- The protocol cannot run over the standard Serial API or something like software serial because it needs hardware level RX interrupts when bytes arrive.
Copy file name to clipboardExpand all lines: library.properties
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@ name=TCP over Serial
2
2
version=1.1.1
3
3
author=Roan Brand <brandroan@gmail.com>
4
4
maintainer=Roan Brand <brandroan@gmail.com>
5
-
sentence=Open a TCP connection to a server from the Arduino using just Serial. (No Ethernet/WiFi shields necessary)
6
-
paragraph=Quickly communicate with other servers and make network apps using minimal hardware. The Protocol Gateway service runs on the host, listens on a Serial port connected to the Arduino, and opens TCP connections on behalf of the Protocol Client runnning on the Arduino, forwarding traffic bi-directionally. The protocol provides the app an in order, duplicates free and error checked byte stream by adding a CRC32 and simple retry mechanism.
5
+
sentence=TCP over Serial client connection to a server from the Arduino, using the connected host. (No Ethernet/WiFi shields necessary)
6
+
paragraph=Quickly communicate with other servers and make network apps using minimal hardware.
0 commit comments