background image

Telegesis (UK) Limited 

 

 

TG-ETRXn-UG-01-103 

27 

User Guide 

1.04 

ETRX1 and ETRX2 

 

 
©2008 Telegesis (UK) Ltd 

 

ETRXn User Guide (Rev 1.04) 

 

With  the  meshing  stack  EmberZNet2.x  the  coordinator  is  free  to  leave  the  network  once  it  is 
established.  So, for example, the coordinator could be a PDA or laptop used to set up the network 
and  if  it  is  configured  as  a  trust  centre  and  all  other  nodes  are  set  up  accordingly,  then  no 
additional  nodes  are  allowed  to  join  once  the  network  has  been  set  up  and  the  coordinator 
removed.  

Alternatively  joining  can  be  simply  disabled  by  altering  the  settings  of  the  main  function  register.  
As the main function register contains security relevant settings, this register is password protected 
in the same  way as the  encryption key, the OEM  word and the password itself.  These registers 
can be written locally as well as over the air provided the user knows the password.  

Looking at register S06 in more detail it can be seen that by default bits 2 and 3 are set allowing 
new nodes to join both secured as well as unsecured via the local node.  This is the most flexible 
way and is ideally suited to initiating a network quickly. 

If for example only bit 0 was set on all nodes in the network, a device trying to join would require to 
already  know  the  network‟s  key  (in  S03)  and  have  bit  4  set  in  order  to  use  that  key  when 
requesting  to  join.    Any  node  receiving  the  request  to  join  will  pass  this  request  on  to  the 
coordinator,  which  in  this  configuration  is  the  only  device  which  is  allowed  to  let  the  new  device 
join. 

However if only bit 1 was set on all devices the new device can join unsecured.  This means that 
bit 4 does not have to be set on the joining device and the joining device doesn‟t need to know the 
network‟s key in order to join.  The joining device will request to join without using encryption and 
the coordinator (trust centre) will pass the network‟s encryption key to the new node when allowing 
it  to  join.    This  method  is  less  secure  as  the  encryption  key  is  passed  over  the  air  and  could  be 
intercepted.  

To avoid requiring the coordinator in order to let a new node join the network this decision can also 
be made by any routing node (FFD) in the same way, given that bit 2 or bit 3 respectively is set on 
all nodes in the network. 

When setting bit 11 on all nodes in the network, joining is no longer possible.  The only chance of 
admitting a new node to join the PAN with bit 11 of S06 set, is the built in functionality 0017, which 
when  triggered  (as  described  in  section  10)  will  allow  joining  for  60  seconds.    This  allows  a 
scenario  in  which  a  user  pushes  a  button  on  an  existing  node  to  allow  other  nodes  to  join  the 
network and then pushes a button on the new node for it to join the network. 

9  Network commissioning 

In  most  cases  it  is  sufficient  to  command  one  device  to  establish  a  PAN,  after  which  the  other 
devices will join it automatically.  As mentioned in section 2, it may be necessary to disassociate 
devices from a pre-existing PAN first.  A particular situation has arisen when some users are using 
a pre-defined radio channel and PAN ID as follows: 

All  the  user‟s  devices  are  given  a  chosen  radio  channel  and  PAN  ID.    At  each  installation,  one 
device is commanded to establish a PAN.   In the factory, there  is also a PAN for configuring the 
devices; modules join this PAN, are powered down without being disassociated from the PAN and 
are  delivered  to  site  in  that  state.    It  is  assumed  that  when  powered  up  they  will  immediately 
communicate  with  the  local  coordinator,  since  they  are  already  in  a  PAN  with  the  correct 
parameters, but in fact they are found to be completely out of contact with the rest of the network. 

The cause of  this problem is the security key in register S03.  When left with its default value of all-
zeros, the key chosen by the coordinator is not all-zeros but a random value.  Therefore devices 
commissioned in the factory are almost certain to have a different key from the ones at each  site 
and  so  cannot  communicate  with  the  local  coordinator.    The  key  is  always  used  for  message 
encryption even if secured joining is not in effect. 

Содержание TG-ETRXn-UG-01-104

Страница 1: ...is UK Limited TG ETRXn UG 01 104 1 User Guide 1 04 ETRX1 and ETRX2 Telegesis 2008 Telegesis UK Ltd ETRXn User Guide Rev 1 04 TG ETRXn UG 01 104 ETRXn WIRELESS MESH NETWORKING MODULES Firmware R2xx Use...

Страница 2: ...s 12 3 3 10 AT REMSN Scan for remote device s direct neighbours 13 3 3 11 AT LINKCHECK Check link parameters with a neighbour 13 3 3 12 AT PING Indicate presence in the network 13 3 3 13 ATS ATSREM Re...

Страница 3: ...nd of this document a number of possible application scenarios are listed in order to show the versatility of the ETRXn modules Some of the details will vary from one firmware version to another this...

Страница 4: ...ach development board which forms part of your set up and connect at least one development board to a PC using the serial or USB cable provided Figure 1 Development board with module mounted Power up...

Страница 5: ...n establishes the connection to the ETRXn module on the development board Figure 3 Setup of the Serial Connection The module will accept commands starting with the AT prefix after it has booted up suc...

Страница 6: ...a separate PAN simply use the AT DASSL command to leave the current PAN and try joining the correct PAN using the AT JN command Network establishment and maintenance is described in more detail in Sec...

Страница 7: ...de and use the AT PANSCAN or AT JN command this will reveal the pre existing PAN you can join it and then either carry on using it or disassociate the remote nodes and start afresh In order to find ou...

Страница 8: ...ide Rev 1 04 Figure 6 Device Naming If you have used the Configure button your button window will resemble Figure 7 and Figure 8 and the device table Figure 9 Figure 7 LED buttons after a Configure op...

Страница 9: ...u wish to transmit preceded by an equal sign If you do not know the syntax of a command hold the mouse pointer over the respective button and the tool tip text will display the format of the command a...

Страница 10: ...constantly be awake in order to fulfil its routing responsibilities whereas a ZED can spend its life in sleep mode as it has no routing responsibilities ZRs consequently consume more power than ZEDs t...

Страница 11: ...nce every second When sending a unicast from an end device the unit will keep polling for the acknowledgement until it has been received or the transmission has timed out regardless of the configured...

Страница 12: ...etwork to join if there is more than one network available 3 3 5 AT PANSCAN Scan for all available channels AT PANSCAN will produce a list of all available channels from which you can manually choose...

Страница 13: ...alone of register xx 3 4 Managing a Network Previously we used the AT SN command to scan the network for other nodes Having found them we were able to interact with those nodes by referencing them us...

Страница 14: ...t Due to the potential presence of alternative routes packets may not arrive at their destination in the order they have been sent and also the timing of messages may vary The worst case delay for dat...

Страница 15: ...ber In case you prefer to wait until the ACK or NACK has been received simply set bit D of S06 and no transmission number will be issued Instead the response will be either OK if an ACK has been recei...

Страница 16: ...esis Terminal Software By default the remote node will automatically accept the channel if bit C of S6 is cleared Where bit C of S6 is set the user on the remote end will be prompted that a channel ha...

Страница 17: ...module is powered down Note that some register changes take effect immediately while others are deferred typically until a reset The registers fall into groups shown below 5 2 Radio Setup S00 S03 S00...

Страница 18: ...e user will be prompted to accept a channel which has been requested by a remote node if cleared the channel will be accepted automatically Setting bit D disables the possibility to have more than one...

Страница 19: ...he initial non volatile setting of the output buffer S0F after reset and power up S11 The input buffer of the I O port representing the current logic levels on the module s input pins S12 Reading of t...

Страница 20: ...n is defined to be an input and the output buffer is set to logic 1 then an internal pull up is activated given that bit D of S2E has been set to enable internal pull ups globally For current sensitiv...

Страница 21: ...pressing a button on the devboard forces the respective I O to ground Note the commands AT ADLOC and AT ADREM of the R1xx firmware have been removed Simply read registers S12 S13 5 5 Event Management...

Страница 22: ...out of the neighbour table 3 F0 1 min 0016 In case I am not joined to a network scan for and join the next best network and restart the timer Table 2 Timer defaults Example for a Development kit board...

Страница 23: ...leep User defined 3 Asleep Asleep Off Asleep Asleep Off Table 3 Power modes In power mode 2 the timers will keep running although both the radio and the MCU are asleep When a timed action is executed...

Страница 24: ...2F controls variable frequency signal volatile S30 Initial Value of S2F non volatile S31 also controls variable frequency signal volatile ETRX2 only S32 Initial Value of S31 non volatile ETRX2 only 6...

Страница 25: ...no prescaling 0 1 0 clk 8 0 1 1 clk 64 1 0 0 clk 256 1 0 1 clk 1024 1 1 0 External clock 1 1 1 External clock Table 5 Prescaler ratios The frequency at the module s output pin is given by ftone 8MHz 2...

Страница 26: ...nctional impact on the operation of I O3 until the special function pin is enabled by setting bit F of S2E 7 Reviving An Unresponsive Module If the module is completely unresponsive it may be in power...

Страница 27: ...ethod is less secure as the encryption key is passed over the air and could be intercepted To avoid requiring the coordinator in order to let a new node join the network this decision can also be made...

Страница 28: ...DC readings to sink This will make the sensor send its temperature information to the sink periodically As in the previous option the sensor could be an end device in power mode 2 thus being battery o...

Страница 29: ...he great shortcomings of point to point radio in automation Telegesis have also assembled the ETRX2 module into units with a USB ETRX2USB and compact flash interface ETRX2CF which is very suitable for...

Страница 30: ...In case this was triggered by a timer the timer will stop 0005 Change to power mode 0 In case this was triggered by a timer the timer will restart 0006 Change to power mode 1 In case this was triggere...

Страница 31: ...018 but restart the timer 001A Copy the inputs of the remote device whose EUI64 is defined in S2C to the outputs of the local device and stop the timer 001B Same as function 001A but restart the timer...

Страница 32: ...10 Sends the reading of the I O and the two analogue ports as well as an 8 bit transmission counter which increments with every transmission to the network s sink and if no sink is known the unit will...

Страница 33: ...the serial port a SCAST containing these characters is sent to the network s sink If no sink is known a sink is searched instead After 3 unsuccessful transmissions the sink is assumed unavailable and...

Страница 34: ...and if applicable the timer will stop Bxxx 12 Change data direction of the I O port to the LSB s xxx and if applicable the timer will restart Glossary AES Advanced Encryption Standard COO Coordinator...

Страница 35: ...Telegesis UK Limited TG ETRXn UG 01 103 35 User Guide 1 04 ETRX1 and ETRX2 2008 Telegesis UK Ltd ETRXn User Guide Rev 1 04 Vcc GND Vcc A D1 A D2 I O7 I O6 I 05 I O4 RTS Table 6 ETRX1 pinout...

Страница 36: ...registered trademarks and products names are the sole property of their respective owners 15 Disclaimer Product and Company names and logos referenced may either be trademarks or registered trademarks...

Страница 37: ...elegesis UK Ltd ETRXn User Guide Rev 1 04 Telegesis UK Limited Marlow Business Centre 84 Station Road Marlow Bucks SL7 1NX UK Tel 44 0 1628 894347 Fax 44 0 1628 894333 17 References Telegesis www tele...

Отзывы: