how connect USB to Serial(RS-232) on php for get weigh bridge data

Sudhakar A <[email protected]>
Newsgroups gmane.comp.php.install,gmane.comp.php.general
Message-ID <CACME-ud4ZEfrPSH2rw-4Ld3b5kkVnMjM2bk3iyhoo6Eq1vpBDg@mail.gmail.com>
Hi,

Recently I have been trying to connect and get data from the serial
port(Weigh Bridge) . But I could not do it.
Am using PHP version 8.3 & windows os and port is 'COM3', baud rate - 9600.
Existing weighbridge software works fine. I want to move existing(from .net
to php) software.
I tried the 'php-serial' library but it is too old and also not working.

i tried below link code but not working :
https://gist.github.com/gravataLonga/6c89821b845d15e939a0
https://stackoverflow.com/questions/11680339/access-serial-port-via-php

Can you give me the correct one library or send me for php 8.2 versions.
Is it possible to get data from the serial port on the latest php version?


Regards
Sudhakar
PHP developer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.