Serialport Read question

From: Spin (cNaOlSePbA_at_MvPeLtEsAtSaEr.com)
Date: 10/28/04


Date: Thu, 28 Oct 2004 10:59:03 -0600

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



Relevant Pages

  • 6.x, 4.x ipfw/dummynet pf/altq - network performance issues
    ... Without a specific pf or ipfw rule to deal with a packet the box would fall over, with specific block rules it would manage an extra 30-40mbps and then fall over. ... UDP floods are much better handled - an ipfw block rule for the packet type and the machine responds as if there were no flood at all. ... Inbound floods appear to cause ALL inbound traffic to lag horrifically, which inherently causes a lot of outbound loss due to broken TCP. ...
    (freebsd-net)
  • 6.x, 4.x ipfw/dummynet pf/altq - network performance issues
    ... Without a specific pf or ipfw rule to deal with a packet the box would fall over, with specific block rules it would manage an extra 30-40mbps and then fall over. ... UDP floods are much better handled - an ipfw block rule for the packet type and the machine responds as if there were no flood at all. ... Inbound floods appear to cause ALL inbound traffic to lag horrifically, which inherently causes a lot of outbound loss due to broken TCP. ...
    (freebsd-questions)
  • 6.x, 4.x ipfw/dummynet pf/altq - network performance issues
    ... Without a specific pf or ipfw rule to deal with a packet the box would fall over, with specific block rules it would manage an extra 30-40mbps and then fall over. ... UDP floods are much better handled - an ipfw block rule for the packet type and the machine responds as if there were no flood at all. ... Inbound floods appear to cause ALL inbound traffic to lag horrifically, which inherently causes a lot of outbound loss due to broken TCP. ...
    (freebsd-isp)
  • Re: Reading Serial Port
    ... The problem with reading stale data is that if you have filled up the buffer with old ... every packet, which will help identify the packet sequences that are being lost. ... you program your test app to put data out at a rate ... I've successed to read correctly the serial port through a new ...
    (microsoft.public.vc.mfc)
  • Re: Strange ICMP packets
    ... >>doing Stateful Packet Inspection that should be preventing IP ... > I would check for the same addresses cropping up in both logs. ... > What I have been doing is having the firewall send me the log each day ... all blocked unsolicted inbound connection. ...
    (comp.security.firewalls)