system zigconf global xx exec config --------------------------------------------------- -- -- Configures a proto-Zigbee unit to -- -- baudrate: 115200, no flow control -- no packetizing -- physical channel 12 -- PAN-id: 5 -- -- (assumes that baudrate already is 115200) -- (otherwise change in call to z.init ---------------------------------------------------- process config p9600 = 80000000/9600 p19200 = 80000000/19200 p38400 = 80000000/38400 p57600 = 80000000/57600 p115200 = 80000000/115200 cat = "+++" cbd7 = "ATBD 7" cro0 = "ATRO 0" cd70 = "ATD7 0" cchC = "ATCH C" cid5 = "ATID 5" cre = "ATRE" cwr = "ATWR" ccn = "ATCN" tguard = 80000000*2 begin -- set pin numbers and current baud rate of module here ( 15 , 14 , p115200 , )z.init )pc.init )pc.rec tguard wait ( "0" )pc.bsend ( #cat )z.ssend )z.rec tguard wait ( "1" )pc.bsend -- No flow control, Baud rate 115200, No packetizing ( #cre )z.exe ( #cd70 )z.exe ( #cbd7 )z.exe ( #cro0 )z.exe -- Zigbee channel C (12), PAN_ID 5 ( #cchC )z.exe ( #cid5 )z.exe ( "2" )pc.bsend -- Write, exit AT-mode ( #cwr )z.exe )z.rec tguard wait ( "3" )pc.bsend ( #ccn )z.exe ( "4" )pc.bsend stop load from (zig.mpo) *z.init *z.ssend *z.rec *z.exe load from(pc.mpo) *pc.init *pc.bsend *pc.rec \