View website via serial port

I have an embedded system with a web server that usually connects to an Ethernet network, so users can simply enter the IP address of the device to access it.

However, I also need to do some of the same website features that are available to serial port users on the device. It would be nice if I could reuse some of the logic that I developed for web forms for this.

I am currently using .NET for development on my desktop, and my embedded device is based on Linux. Is it possible to host the contents of a website via a serial port, or is there any other way that I can remove this?

+3
source share
5 answers

Just a wild hunch: in those days when you connected your modem to the Internet, there was SLIP: IP protocol over a serial line. Could you use this to establish an “internet connection” on your device?

+2
source

There are several options:

If the server should be in windows, and you have windows 7, then Windows xp mode (1) (2) will allow you to use SLIP so that you can provide serial access to any IP address by mapping the serial port to the IP address.

sourceforge Contiki, , , , ( uIp TCP/IP Stack).

, , , , :)

.

+1

, , - LYNX- ( , ). , ? linux, telnet, ?

0

, Linux, , lynx .

, Linux ( ) . (/etc/issue ) .

: - , script .

0

You can create a TCP client application on your Linux device that will talk to your linux server and redirect data to the serial port, as well as create a TCP server application for your users that will talk to your serial port and redirect data to some TCP port (e.g. 12345). Then all your users must configure the browser to http: // localhost: 12345 and connect their PC to the linux device via a crossover cable through the serial port.

0
source

Source: https://habr.com/ru/post/1789316/


All Articles