WLS107B4B documentation

Hi all

Sorry if this is a newbie/stupid question, but I am totally new to embedded/hardware-programmering.
I just got a Fez Panda II and a WLS107B4B, ready to dive into .NET micro framework.
However, with no experience and no documentation of the WLS107B4B, I have absolutely no idea how to make it all work.
I can send something and I can receive something, sadly what I receive is not what I (think) I sent.
Currently I have:
Transmitter = new SerialPort(“COM3”, 2400);
Transmitter.DataBits = 8;
Transmitter.Parity = Parity.None;
Transmitter.StopBits = StopBits.One;

        Receiver = new SerialPort("COM4", 2400);
        Receiver.DataBits = 8;
        Receiver.Parity = Parity.None;
        Receiver.StopBits = StopBits.One;

Is this the right way of using the transmitter and receiver? Via SerialPort communication? and what do I need to send? Is there some packet-format or message size or how do this work?

Any help is greatly appreciated :slight_smile:

Best regards
dblank

Code here is for Arduino, but you need to implement them on Panda by yourself.
http://www.seeedstudio.com/wiki/index.php?title=433Mhz_RF_link_kit#Resources

Thanks for the reply Steve :slight_smile:

I found the problem. I have to send 4 bytes before sending my packet and I have to send them in a seperate write. The first packet I send is scrambled and is missing the first 0-4 bytes, maybe because the SerialPort implementation in .NET Micro Framework sends the bytes before the transmitter is ready.

private byte[] _push = new byte[] { 0, 0, 0, 0 };
public void Write(byte[] packet) {
Port.Write(_push, 0, _push.Length);
Port.Write(packet, 0, packet.Length);
}

dblank