Re: [phplib] Control of a browsing computer's serial port? From: Arno A. Karner (karner <email protected>)
Date: 05/22/01

i use php-cgi script to record data into a database table from serial
port from dataloging equipment.
</snip>
$Db = new DB_Sql_NetGrp;
$q = new quesql;
$fil = "/dev/ttyD8";
$tbl = "noise";

echo "hello world\n";

exec("stty -F $fil ispeed 2400");
set_time_limit (24*60*60);

if(!$fp = fopen($fil,"r")) {
    echo"error opeining serial port\n";
    exit; }
echo "file opened '$fil'\n";
$q->from("noise");
$i = 0;
while($fp) {
    $ln = fgets($fp, 16);
    if($ln=="") break;
    if($ln==" ") break;
    if($DeBuG>9)echo $ln;
<snip>
Garry Dunn wrote:
>
> To the powers at large,
>
> Does anyone know of a way to send/recieve characters through a users serial
> port?
>
> Here's what I'm trying to do: A form is displayed in the user's browser.
> Some of the answers to fields on that form could come from a device
> connected to the user's serial port. If I can send a command out the
> serial port and get a response, I could filter it and place the answer
> directly into the form. The user can just confirm the input.
>
> I'm thinking some kind of Java script running on the user's machine might
> do it. Any clues to where I might find such a beast? Any other thoughts?
>
> Thanks,
>
> Garry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

-- 
My opinions are my own and not that of my employer even if I am self
employed
Tech Net, Inc.            --FREE THE MACHINES--                 
651.224.2223
627 Palace Ave. #2           karner <email protected>              
karner <email protected>
St. Paul, MN 55102-3517        www.tnss.com         
wanted    : adsl/cable modem with static ip at reasonable price
accept-txt: us-ascii,html,pdf
accept-dat: ascii-delimited,sql insert statments

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>