Shmuel Hi,
When dealing with frames they use a method mostly implemented in hardware
which is called flag transparency. They do just as you suggested and replace
the bit sequence which is part of the data field and means a flag to a
different recognized sequence which is later, still in the hardware of
layer1, replaced back to the flag 'pattern'. I am dealing here with an
external system and its time to learn what its layer1 capabilities are. I
can't just add control sequences and hope that a totally strange box will be
able to guess what did I meant.
I come from embedded systems and implementing a fully transparent link was
no problem there. Here I depend on a black box [Win32::SerialPort] which I
don't master yet.
Regards,
Moshe Okman

-----Original Message-----
From: Shmuel Fomberg [mailto:[email protected]] 
Sent: Tuesday, July 06, 2010 11:36 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Using a serial port (rs-232) from perl.

Moshe Okman wrote:
> I found earlier about the eof character, I don't think that changing this
> char to a different value will help me. I need the link to become fully
> transparent. Is there a way to achieve this goal?

It is always possible to add an encoding layer. find some character that 
is not used much, let's say 'A'. now replace any 'A' with 'AA', and any 
'\0' with 'A0'. on the receiving side you can do the reverse.

- Shmuel.
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl


_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to