Help me!!!!

  • Thread starter Thread starter Sebastiaan
  • Start date Start date
S

Sebastiaan

Hi!!



we are working on a project to receive IR(infrared).

we currently busy with the receiving part.

We get data true are com2: port. but we can't detect the 0 part of a rc5
signal

Because readfile doesn't read a zero.

it reads zero but we don't have start bit. so it doesn't see the 0 part



for info on rc5 http://www.xs4all.nl/~sbp/knowledge/ir/rc5.htm

Does any one now how to measure the timing or how to receive a nice signal

Or how to delete de start bit an everything else like parity bit and stop
bits.





p.s. Sorry for my bad English
 
Hi Sebastian,

I do remember to read an article about IR in MSDN , take a look there, also
you may get more possible answers if you post in the compactframework NG


cheers,
 
You need to read the stream as an array of bytes. Then you can use this to
create a BitArray to get the bits, or bitwise operators to get the bits from
the bytes.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
Hi Keven, thanks for the answer.

Could you perhaps give me a bit more info on reading the data in a stream?
We use readfile at the moment to get the data from a buffer from the port.
Would it be better to use a BinaryReader in some kind of way?

Regards,

Sebastiaan
 
Back
Top