In SX Microcontrollers, SX/B Compiler and SX-Key Tool, originator99 wrote: Bean If you were to want to send a unique ID via the Xbee, which would you do below. Here are the details: 1. Two buttons on a remote, for example, one button sends 00000001 and the other sends 00000011. The other end makes decisions based on if it rec'd one or the other bytes. 2. For flexibility, I am considering adding a 4 pos dip switch for the SX to read in 1 of 16 possibilities to establish a "Channel" for both sides, as long as each side has the same dip setting, they talk. Ok, so would you incorporate both sets of data into one byte to be sent? Or send a string.... first byte being the unique Channel number, although 4 bits are wasted, or, send one byte, let the first 4 digits represent the dip settings, ie 11110001 and the last for represent the info needed to take action? Would this require a mask to first derive the channel, then the data? Thanks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=144408#m145198 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)