Click here to get back home

Serialport Read question

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Serialport Read question Spin 10-28-2004
Get Chitika Premium
Posted by Spin on October 28, 2004, 11:59 am
Please log in for more thread options
All the packets that are inbound to my serial port start with 0x02 and
end with 0x03. How do I read the entire packet into a scalar?

Right now, using $loc = $ob->read(255) I can only get up to 16 bytes,
and sometimes I don't get the full 16 bytes.

My packet size will vary from 8 bytes to several hundred.

Thanks in advance for your help. And I did RTM but it didn't help.

Caleb


Posted by Spin on October 28, 2004, 12:56 pm
Please log in for more thread options
Spin wrote:
> All the packets that are inbound to my serial port start with 0x02 and
> end with 0x03. How do I read the entire packet into a scalar?
>

Solved my problem by putting in:
$ob->read_char_time(0);
$ob->read_const_time(4000);

Still stuck on the write question.

Caleb


Similar ThreadsPosted
SerialPort write question October 28, 2004, 11:52 am
Need help with Win32::SerialPort August 13, 2004, 5:43 am
need help with "SerialPort" module April 25, 2006, 11:34 pm
help on win32::serialport June 4, 2007, 5:12 pm
SerialPort error July 7, 2007, 10:58 pm
Please help on win32::serialport July 13, 2007, 12:41 pm
Help need about Win32::SerialPort December 2, 2008, 2:58 pm
Loopback with Device::SerialPort? March 18, 2005, 1:24 pm
problem with Device::SerialPort November 30, 2005, 4:19 pm
lookfor failure in SerialPort November 30, 2005, 4:56 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap