I have a router running openwrt which sends messages with, for instance:
echo "Some message" | nc 192.168.2.93 8086
I'd like to replace the device with a microprocessor which has access to the net over a serial link to a device running ser2net. What would the microprocessor send to have a message passed on to 192.168.2.93 8086?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a router running openwrt which sends messages with, for instance:
echo "Some message" | nc 192.168.2.93 8086
I'd like to replace the device with a microprocessor which has access
to the net over a serial link to a device running ser2net. What would
the microprocessor send to have a message passed on to 192.168.2.93 8086?
You can't currently do exactly this with ser2net. It doesn't make
reverse connections.
You could sort of do this if 192.168.2.93 was listening on UDP. On the
microprocessor, you would need to configure the serial port with
stty <parms> </dev>
then
echo "Some message" >/dev/ttyS<x>
ser2net would need to be configured with an always connected UDP
connection on the other end of the serial port.
-corey
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the response. 192.168.2.93 is listening, successfully, with a lua program snagged from the internet and slightly modified. It is listening on port 8086, but I don't know the network terms for what is is listening for (other than that it it the output of: echo "Some message" | nc 192.168.2.93 8086).
I need for ser2net also to be listening for inbound http requests, so I'll have to look for some other way to send the messages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a router running openwrt which sends messages with, for instance:
echo "Some message" | nc 192.168.2.93 8086
I'd like to replace the device with a microprocessor which has access to the net over a serial link to a device running ser2net. What would the microprocessor send to have a message passed on to 192.168.2.93 8086?
On 05/28/2017 08:51 PM, Lance wrote:
You can't currently do exactly this with ser2net. It doesn't make
reverse connections.
You could sort of do this if 192.168.2.93 was listening on UDP. On the
microprocessor, you would need to configure the serial port with
stty <parms> </dev>
then
echo "Some message" >/dev/ttyS<x>
ser2net would need to be configured with an always connected UDP
connection on the other end of the serial port.
-corey
Thank you for the response. 192.168.2.93 is listening, successfully, with a lua program snagged from the internet and slightly modified. It is listening on port 8086, but I don't know the network terms for what is is listening for (other than that it it the output of: echo "Some message" | nc 192.168.2.93 8086).
I need for ser2net also to be listening for inbound http requests, so I'll have to look for some other way to send the messages.