Trying to open up a socket connection to USB device in linux using fsockopen()

371 views Asked by At

I am experimenting with PHP fsocket open to open up a socket port. I would like to try to open a socket connection to my /dev/ttyUSB0 (USB) in Linux. I believe fsocket likes the par maters fsockopen(hostname, port). The port parameter requires an integer. I would like to know if I can find the physical port address number linked to my /dev/ttyUSB0 device

0

There are 0 answers