Hey guys,
A little off-topic but I am trying to ID 6 sensors with a microcontroller (atmega168) wired up to a W800RF32. Right now I am trying to decide what bytes each device is sending. I started using the demo software that came with the w800 but it shows 4 bytes that aren't even close to the bytes I'm seeing. I plugged the w800 to a computer oscilloscope to verify. The bytes I see are not in the pattern defined by WGL (that is, one byte is open or closed, the second is the inverse, 3rd is the device code, 4th is the inverse). My bytes have no inverses. Granted, the 1st and 2nd seem to be consistent for each device and the 3rd and 4th indicate an open and close status. The problem is: they aren't consistent! Sometimes the message is off by a bit or two, other times i see an 0xFF! I am using an STK500 dev kit with a crystal osc so my error percentage should be very low. I think the problem is that I should be using 2 stop bits (as WGL suggested), but changing the setting has little to no effect. I am using an open source uart library for the atmega that seems to be tried and true. I don't know what else to try.
Any ideas?