Search in Pinguino World !!

Thursday, June 2, 2011

ZIGBEE for PIC32

Pinguino32 uses a MRF24J40MA radio module to communicate with another Pinguino32 !!

This shield uses the UEXT connector of PIC32-PINGUINO and PIC32-PINGUINO-OTG. A very simple library is used to communicate with the module. You need only to initialise the module in the setup()

ZIG.init(channel,PAN_ID,Short_Address);

then to send data, you must use the ZIG.send instruction as described below:

ZIG.send(Dest_Address,"TOTO",4);

each module must be configured with:
- radio channel ( between 11 and 26 )
- PAN ID ( personnal area network identification between 0 and 65535 )
- address ( between 0 and 65535 ).

to receive data from another module, you must use this instruction:

length=ZIG.read(rxdata);

A simple example has been added to the example folder of revision 147 of Pinguino32X.


Have fun
JP

1 comment:

Unknown said...

I have made the pcb and am trying your code as found here:http://wiki.pinguino.cc/index.php/With-Zigbee-MRF24J40MA%2B

but am not picking anything up on the receiving pic. I have identical equipment (PIC32-PINGUINO-OTG and MRF24J40MA)

Is there anything else that needs setting up correctly before running the example code?