+44 (0) 1494 510199       info@telegesis.com

Starting a PAN


Starting a network with Telegesis Terminal

This is quick guide to starting a network using a few Telegesis ETRX2 or ETRX357 modules connected to the serial port of a PC or laptop and our Telegesis Terminal application program (downloadable from this website). For the sake of brevity we do not describe all the possible situations that can arise, but we have included a few redundant steps in this guide to smooth your path; for example, the AT+N and AT+PANSCAN commands are not always necessary, but they help you to discover how your devices are set up.

  1. Have the appropriate manuals available for reference, for example the ETRX2 or ETRX357 Development Kit Product Manual and the R3xx AT Command Manual. The precise manuals that you will need may vary according to your devices and firmware.
  2. Install Telegesis Terminal on your computer following the advice in the Development Kit Product Manual
  3. Start Telegesis Terminal and establish serial connection with one or more modules. You can have more than one Telegesis Terminal open at the same time. Verify that you are correctly connected with the ATI command info button on TG terminal
  4. Select the device you want to become the network coordinator. Check whether it is already in a PAN with the command AT+N If it is in a PAN, leave the network with the command AT+DASSL button
  5. Establish a new PAN with the command AT+EN button
  6. Select another node to join the PAN. If you want it to be a Sleepy End Device configure it with the command ATS0AE=1;password (for R3xx firmware)
  7. Check whether it is already in a PAN with the command AT+N image004.jpgIf it is in a PAN, leave the network with the command AT+DASSL image005.jpg
  8. (Optionally) find all the available networks with the command AT+PANSCAN image008.jpg
  9. Join the PAN with either the command AT+JN image009.jpgor AT+JPAN:<, image010.jpgwhere is the radio channel and the PAN ID as reported by AT+PANSCAN
  10. Verify that the device has joined the network with the command AT+N image004.jpg
  11. Scan the network and create new Telegesis Terminal buttons by clicking on "Configure" image012.jpgFind the buttons labelled "Ident Node1" etcimage014.jpgand check your network connections by clicking on each one.
  12. Now you can try experimenting with broadcast and unicast messages, and reading and writing the S-registers to test the buttons and LEDs on your development kit boards.

 

Some messages you may see

(the actual data will depend on your local network, of course)

+PANSCAN:20,4567,E8D173419CA155A9,02,01                                      a network has been found

JPAN:22,2395,18BDC2597DB2F128                                                           the device has just joined a PAN

+N=COO,22,03,2395,18BDC2597DB2F128                                               the device is the coordinator of a PAN

+N=FFD,22,03,2395,18BDC2597DB2F128                                                the device is a member of a PAN as a Full Function Device (ie a router)

NEWNODE:A52C,000D6F000059435B,FD3E                                           a new device has just joined the PAN
FFD:000D6F000059435B,A52C

  Top of Page         Back
Copyright © Telegesis Ltd. 2012. All rights reserved.
Designed, Programmed, SEO and Hosted by InDzine.