Temat: Wirtualny port szeregowy
Witam
Pod routerem nie mam fizycznego portu rs232 - który tak naprawdę nie jest mi potrzebny. Jednakże mam program który koniecznie musi te dane wysyłać na port rs232. Do routera mam dołączony konwerter rs232 - ethernet.
Potrzebuję tylko w routerze stworzyć wirtualny port rs232 z którego dane zostałyby wysyłane na odpowiedni adres ip w lanie.
W jaki sposób w openwrt stworzyć wirtualny port szeregowy. Z tego co mi wiadomo to mogę to zrobić pakietem remserial
http://lpccomp.bc.ca/remserial/
Wydaje mi się że ten kawałek najtrafniej opisuje to co potrzebuję.
Connect a Linux program that needs a serial port to a remote serial port.
Some programs are written to communicate directly with a serial port such as some data aquisition programs. The remserial program can use pseudo-ttys to fool the program into thinking that it is talking to a real serial port on the local machine:
remserial -d -r server-name -p 23000 -l /dev/remserial1 /dev/ptmx &
Problem tylko w tym że nie ma gotowego pakietu remserial....
Jest tylko ser2net.