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

[email protected] (Sudhakar A) Tue, 23 Apr 2024 16:29:58 +0530
Newsgroups php.general,php.install
Message-ID <CACME-ud4ZEfrPSH2rw-4Ld3b5kkVnMjM2bk3iyhoo6Eq1vpBDg@mail.gmail.com>
--0000000000004925230616c176b6
Content-Type: text/plain; charset="UTF-8"

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

--0000000000004925230616c176b6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,=C2=A0<div><br></div><div>Recently I have been trying t=
o connect and get data from the serial port(Weigh Bridge) . But I could not=
 do it.<br></div><div>Am using PHP version 8.3 &amp; windows os and port is=
 &#39;COM3&#39;, baud rate - 9600.</div><div>Existing=C2=A0weighbridge soft=
ware works fine. I want to move existing(from .net to php) software.</div><=
div>I tried the &#39;php-serial&#39; library but it is too old and also not=
 working.=C2=A0</div><div><br></div><div>i tried below link code but not wo=
rking :<br><a href=3D"https://gist.github.com/gravataLonga/6c89821b845d15e9=
39a0" target=3D"_blank">https://gist.github.com/gravataLonga/6c89821b845d15=
e939a0</a><br></div><div><a href=3D"https://stackoverflow.com/questions/116=
80339/access-serial-port-via-php" target=3D"_blank">https://stackoverflow.c=
om/questions/11680339/access-serial-port-via-php</a><br></div><div><br></di=
v><div>Can you give me the correct=C2=A0one library or send me for php 8.2 =
versions.</div><div>Is it possible to get data from the serial=C2=A0port on=
=C2=A0the latest php version?</div><div><br></div><div><br></div><div>Regar=
ds</div><div>Sudhakar=C2=A0</div><div>PHP developer</div></div>

--0000000000004925230616c176b6--