Home
Dual Serial Shield User Manual - Bkp
Contents
1. PAN Personal Area Network ID for the network Valid range is 0 OxFFFF All the XBees on your network should use the same VID e Operating Channel This sets the operating channel number Uses 802 15 4 channel numbers Note two things here 1 XBee modules have more channels available than XBee Pro modules so be sure to select an operating channel that both types can use if you have mixed modules on your network 2 Select a channel number that minimizes conflict with any Wi Fi networks you have There are docs on the web that show 802 15 4 channel assignments See the Digi manual for specifics on other networking options Rev 1 00 10 8 18 2013 Dual Serial Shield User Manual 4 3 Configuring the Addressing XBee modules talk to each other using their serial numbers or a 16 bit addressing scheme We will show the 802 15 4 64 bit scheme here The Digi XBee manuals show you how to use short addresses COM4 X CTU Modem Parameter Profile Remote Configuration Versions PC Settings Range Test Terminal Modem Configuration r Modem Parameter and Firmware Parameter View r Profile Versions Read Write Restore Clear Screen Show Defaults D Always Update Firmware Save Download new fen versions Modem XBEE Function Set Version XB24 DM x XBEE DIGIMESH 2 4 x 8062 a Ey Addressing D 134200 SH Serial Number High B 40870885 SL Serial Number Low E 001344200 DH Destination
2. antenna These will experience the least interference from the copper areas on the PCB The XBee radios with chip and PCB antennas will still work but their range may be reduced Note 1 XBee is a registered trademark of Digi International Inc Note 2 DigiMesh is a registered trademark of Digi International Inc Rev 1 00 2 8 18 2013 Dual Serial Shield User Manual 2 Dual UART Features e Dual full duplex UART 64 bytes FIFO transmitter and receiver Fully compatible with industrial standard 16C450 and equivalent Baud rates up to 230 4K with 3 6864 MHz crystal Auto hardware flow control using RTS CTS Auto software flow control with programmable Xon Xoff characters Single or double Xon Xoff characters Up to eight programmable I O pins GPIO or MODEM control Built in IrDA encoder and decoder supporting IrDA SIR with speeds up to 115 2 kbit s Software reset Transmitter and receiver can be enabled disabled independent of each other Receive and Transmit FIFO levels Programmable special character detection Fully programmable character formatting 5 bit 6 bit 7 bit or 8 bit character Even odd or no parity 1 112 or 2 stop bits Line break generation and detection Internal Loopback mode Sleep current less than 30 uA at 3 3 V 5 V tolerant inputs Rev 1 00 3 8 18 2013 Dual Serial Shield User Manual 3 Making Connections and Jumper Settings Refer to following PCB diagram for component placement RESET g IO v
3. next step is to click the Modem Configuration tab and then press the Read button to get a screen like the following COM4 X CTU Modem Parameter Profile Remote Configuration Versions PC Settings Range Test Terminal Modem Configuration r Modem Parameter and Firmware Parameter View r Profile Versions Write Restore Clear Screen Save Download new Always Update Firmware Show Defaults Load versions Modem XBEE Function Set Version XB24DM XBEE DIGIMESH 24 x e2 4 Networking A FFF ID Modem VID Operating Channel Mac Rletries Multi Transmit Broadcast Radius Mesh Retries Network Hops Network Delay Slots Coordinator Enable essing 134200 SH Serial Number High 40870885 SL Serial Number Low 0 DH Destination Address High FFFF DL Destination Address Low NI Node Identifier 82 NT Node Discovery Backoff D 0 NO Node Discovery Options E 50000 DD Device Type Identifier Fa Gamrihi Read parameters OK E a oO lt D a a a a a a Ad a a a a a a COM4 96008 N 1 FLOW NONE XB24 DM Ver 8062 Figure 4 4 Under the Networking section there are options that you can change Note that different types of modules will have different options The ones shown here are for DigiMesh For this module type the only two changes that we will talk about are the VID and the Channel e Modem VID This is a HEX number that sets the
4. on one of two Arduino analog input pins as follows Pin 1 2 Select Analog Pin 0 Pin 2 3 Select Analog Pin 5 3 7 Reset Switch S1 This switch is wired in parallel with the Arduino reset line Pressing this switch will reset the shield and the Arduino or Freedom board Rev 1 00 7 8 18 2013 Dual Serial Shield User Manual 4 Configuring the XBee Radio The examples shown here use an XBee 2 4G DigiMesh version with Digi s X CTU software which is free and available from Digi International www digi com To program the radios we use the UARTSBee V4 device which provides power and a USB UART connection to the PC They are available from Amazon www amazon com and other sources and look similar to this picture Figure 4 1 These devices are also useful for connecting to your PC to use as the base station to talk back and forth with the remote I O module s XBee radio Note Be aware that this board may not be able to supply enough power for an XBee Pro type radio if you plug it into a USB hub Note When the device is first plugged in you may get an alert from your PC that it needs to install drivers for a new device The UARTSBee uses the FTDI chip for USB to Serial conversion and most PCs have these drivers pre installed If yours doesn t go to www ftdi chip com to get the latest ones for your PC and OS Rev 1 00 8 8 18 2013 Dual Serial Shield User Manual 4 1 Starting X CTU When you start X CTU y
5. 8 2013 Dual Serial Shield User Manual The latest versions of manuals sample code and other tools can be found on our site at http bkp store com If you have any questions corrections or feedback about this manual please contact us at http bkp store com index php route information contact Rev 1 00 1 8 18 2013 Dual Serial Shield User Manual 1 Introduction This shield has a SPI connected Dual UART NXP SC16IS762 with 64 byte FIFOs on each channel With FIFOs this large you are able to receive and send large packets of data So large in fact that you may not need to use interrupts This board will mount on Ardiuno boards such the UNO or those with the same footprint It will also mount on the new Freescale ARM based Freedom boards Note It will not work with MEGA style Arduino boards since they do no have the SPI signals on IO pins 10 13 They only have them on the 6 pin 2x3 header on the middle of the board 1 1 XB compatibility The Dual Serial Shield can be used with XBee radio modules to allow remote communications and control Xbees are designed to use very little power except when the radios are transmitting data The board can be used with the following types of XBee amp XBeePro radios in Series 1 amp 2 footprints DigiMesh 2 4G DigiMesh 900MHz 802 15 4 900MHz 868MHz Zigbee WiFi For best results we recommend that you use XBee radios with the RP SMA antenna connector or the mini whip
6. Address High B 40883099 DL Destination Address Low RE Bi J NI Node Identifier Bi 82 NT Node Discovery Backolf 0 NO Node Discovery Options 50000 DD Device Type Identifier SY Security 0 EE Encryption Enable B KY AES Encryption Key SJ Serial Interfacing 3 8D Baud Rate B 0 NB Parity 3 RO Packetization Timeout 1 07 DIO Configuration 0 D6 DIOS Configuration D BE FT Flow Control Threshold Br IMAP API Enshla ss Set read the lower 32 bits of the 64 bit destination extended address Ox000000000000FFFF is the broadcast address RANGE 0 0XFFFFFFFF COM4 Figure 4 5 In this example we are programming a module for an I O board that will talk to a host module base station at regular intervals So in this case we set the High order 4 Bytes to the standard XBee address of 0x0013A200 and the lower 4 bytes to the address of our base station module 0x40883039 Once this is set the module will know what address to send API packets to when an input changes or when a sample must be sent Rev 1 00 11 8 18 2013 Dual Serial Shield User Manual 4 4 Configuring the Serial Interfacing There are a few options to set here COM4 X CTU Modem Parameter Profile Remote Configuration Versions PC Settings Range Test Terminal Modem Configuration Modem Parameter and Firmware Parameter View p Profile Versions Read Wii Gears s e e Restore
7. Dual Serial Shield User Manual PN 2050 Berkshire Products Inc Phone 770 271 0088 http www bkp store com Rev 1 00 Copyright 2013 Dual Serial Shield User Manual Table of Contents Le AMET GUC EON RE incl tate co RE RS Re E Gh ue Slee aise aden EE E 2 1 1 De BS COMP AU DULY SR sen a dns 2 2 Dual UART Features es rs feat ant ee cen eh et eee aes ne 3 3 Making Connections and Jumper Settings 4 3 1 Power Input Mb ab 7 SES LAS LR E E EE 4 3 2 UART SPI Bus Chip Select Option Jumper J3 5 3 3 UART Interrupt Option Jumper J4 ss 5 3 4 UART Port A Connections J5 J6 J9 ir 5 3 5 UART Port B Connections P reseni kadre Ea 6 3 6 XBee RSSI Option Jumper 185 ee LE ne en ene 7 3 7 R s t Switch Slim res i si atn 7 4 Configuring the XBee Radio onnoseesseesseessesssesesesesseetsseessresseesseeesseeesseesseesseeeseeessees 8 4 1 DATE X CEU aa a aa T T E eae 9 4 2 Configuring the Networking ss ans Re hile 10 4 3 Configuring the Addressing sinistre 11 44 Configuring the Serial Interfacing 20 0 0 cee eeeseeceseeeceeececeeeeeceeeeeesteeeeeeeeees 12 4 5 Conti suring VO Settings MS Sec nn Se aoe esas 13 4 6 Configuring OS AMP ins au o iai ante 14 De Schematic Diagram seese ls Ru nn nt nent ei tte n 15 6 PCB Mechanical ins ie esaa a AEE eee 16 T Appendix A Specifications inciri ie era E r e aas 17 De Appendix B Warranty oe Joy r E E E E T E E Ne aa 18 Rev 1 00 i 8 1
8. Out GPIOS J5 2 DSR Data Set Ready In GPOI4 J5 3 CD Carrier Detect In GPIO6 J5 4 RI Ring Indicator In GPIO 7 J5 5 GND Signal Ground Table 3 1 1 Alternate Functions allow these pin to be used as General Purpose IO Please see the datasheet for modes of operation The library will also need to be modified for GPIO rather than MODEM control signals Note The TTL levels are 3 3V when high on the outputs The inputs are 5 0V tolerant 3 5 UART Port B Connections P1 The Port B UART is wired for RS 232 levels only as follows Pin ID Name Description I O Pl Pin 1 CD Carrier Detect In Pl Pin2 RxD Receive Data In P1 Pin 3 TxD Transmit Data Out P1 Pin 4 DTR Data Terminal Ready Out Pl Pin5 GND Signal Ground P1 Pin6 DSR Data Set Ready In P1 Pin 7 RTS Request to Send Out P1 Pin 8 CTS Clear to Send In P1 Pin 9 RI Ring Indicator In Table 3 2 Note This port is connected as DTE with a DB 9 Male connector This is the same a COM port on a PC If you want to connect the shield to a PC you will need a Null MODEM cable Rev 1 00 6 8 18 2013 Dual Serial Shield User Manual 3 6 XBee RSSI Option Jumper J8 Some XBee radios have an RSSI output pin that outputs a PWM signal to indicate relative receive signal strength based on the last reception There is an RC filter on the board to smooth this signal to a DC level The DC level is connected to a three pin jumper at J8 to allow you to monitor the signal
9. ar from the date of purchase During the warranty period and upon proof of purchase the product will be repaired or replaced with the same or functionally equivalent model at our option without charge for either parts or labor This warranty does not apply to defects due directly or indirectly to misuse abuse negligence accident repairs or alterations made by the customer or another party UNDER NO CIRCUMSTANCES WILL BERKSHIRE PRODUCTS INC BE LIABLE IN ANY WAY TO ANY PURCHASER FOR DAMAGES LOST REVENUE LOST WAGES OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THIS PRODUCT Berkshire Products Inc reserves the right to make modifications in this product without prior notification Rev 1 00 18 8 18 2013
10. e module Options include Enabling commissioning button functionality Analog to Digital converter Digital Input and Output COM4 96008 N 1 FLOW NONE XB24 DM Ver8062 Figure 4 7 Configure DIOO to DIOS pins as input or output to match your I O board setup DIO8 to DIO12 are not used and should be left as 0 Disabled The PR field defaults to Ox1 FFF or binary 1 1111 1111 1111 Each bit set to one 1 defines a pull up resistor on input pins DIO12 to DIOO The default values should be fine unless you are using the input pins for analog inputs In that case the lower six bits should be zero for any pin that is an analog input Rev 1 00 13 8 18 2013 Dual Serial Shield User Manual 4 6 Configuring I O Sampling This is the last area of X CTU covered here COM4 X CTU Modem Parameter Profile Remote Configuration Versions PC Settings Range Test Terminal Modem Configuration p Modem Parameter and Firmware j Parameter View j Profile r Versions Read White Restore Clear Screen Save Boeicadine Ir Always Update Firmware Show Defaults Load versions Modem XBEE Function Set Version XB24DM XBEE DIGIMESH 2 4 x s062 41 0 Sampling A 0 IC DIO Change Detect 0 1R Sample Rate if IF Sample From Sleep Rate Sy AT Command Options D 64 CT AT Command Mode Timeout D 3E8 GT Guard Times Bi 28 CC Command Sequence Character Diagnostic Commands 0 DB Last Packet Ass
11. ed as serial port flow control pins If you are using DIO6 and DIO7 on your module then you should configure them here as Inputs or Outputs Rev 1 00 12 8 18 2013 Dual Serial Shield User Manual 4 5 Configuring I O Settings Here is where you configure the I O pins for DIOO to DIOS see prior section for DIO6 amp DIO7 COM4 X CTU Modem Parameter Profile Remote Configuration Versions PC Settings Range Test Terminal Modem Configuration Modem Parameter and Firmware p Parameter View j Profile 7 Versions Read Write Restore Clear Screen Save Download a Show Defaults Load IF Always Update Firmware versions Modem XBEE Function Set _ Version XB24 DM x XBEE DIGIMESH 2 4 X 2062 A 53 1 0 Settings 2 00 AD0 0100 Configuration EEE 0 01 4D1 0101 Configuration B 0 02 AD2 D102 Configuration 0 03 AD3 D103 Configuration B 0 D4 AD4 D104 Configuration B 1 05 4D5 DI05 4ss00 Configuration 0 08 DIO8 SLEEP_AG Configuration 1 09 DIO9 ON_SLEEP Configuration W 1 P0 DIO10 ASSI PWMO Configuration 0 P1 DI011 PWM1 Configuration B 0 P2 01012 Configuration B 0 MO PWMO duty cycle fa 0 M1 PWM duty cycle D 0 LT Associate LED Blink Time D 28 AP ASSI PWM Timer D FFF PR Pull up Resistor Enable E 1 0 Sampling Sy AT Command Options Ba ACT AT Caramand Made Time it Configure options for the ADO DIOO line of th
12. i 8062 VR Firmware Version B 1744 HV Hardware Version D 99 ER Receive Error Count B 0 GD Receive Good Count 0 TR Delivery Failure Count B 0 UA Unicasts Attempted Count f 0 EA Number of MAC ACK timeouts E 0 BC Number of bytes transmitted B F9 SQ Missed Sleep Synch Count BL EAEN CE Confionration Pade Set read sample rate When set this parameter causes the modem to sample all enabled DIO land ADC at a speoified interval RANGE O OXFFFF 1 MS vv COM4 S6006 N 1 FLOW NONE XB24 DM Ver8062 Figure 4 8 The DIO Change Detect is a bit field and should be set to a hex value Any bit that is set will cause the XBee to send a packet when the I O line for that bit changes goes low to high or high to low and the pin is set as an input For example if you set this field to 0x2C binary 0100 1100 then it would send a data packet if DIO6 DIO3 or DIO2 changes state on its input The Sample Rate tells the XBee module to send a data packet at regular intervals to report the status of digital and analog input pins The number is in milliseconds so a reasonable minimum value is about 0x80 or 128mS If an edge change is programmed and it occurs between samples then a packet will be sent then as well The maximum value for this field is OXFFFF or 65 353mS A value of zero stops the samples Rev 1 00 14 8 18 2013 Dual Serial Shield User Manual iagram ic D 5 Schemat od ng si EA 00 W
13. i 3312221 ai c gt U CS U IRG CO RIT RGG POWER U1 www bkp store com J 10 PN 2050 11 Berkshire Products Inc Dual Serial XBee oe 5 c8 C12 eni Oee J9 310 1S MALE PLUG C _Jjc9L_Jcio 5 VIN XB RSSI Figure 3 1 3 1 Power Input Jumper J7 The board can accept DC power from the Arduino or Freedom main board There is a three pin header at J7 that selects the input from the Arduino 5V regulator or the external Vin from the 2 1mm power connector Pin 1 2 Select Arduino 5V input Pin 2 3 Select external Vin Note Do not exceed 15V input to the board You can measure the input voltage at J10 Pin 6 and GND Pin 4 or 5 on J10 If you plan to use the UART Port A as a TTL UART only then you should be able to use the Arduino 5V source USB to power the shield Rev 1 00 4 8 18 2013 Dual Serial Shield User Manual If you plan to use an XBee radio then you will need to provide an external power source and put J7 jumper on Pins 2 3 The power supply must able to source enough current to power the board and the XBee radio in TX mode This will typically be up to 500mA 0 5A for the higher powered XBee radios 3 2 UART SPI Bus Chip Select Option Jumper J3 The Dual UART is connected to the SPI Bus from the Arduino or Freedom board The UART is rated for 15MHZ SPI Bus speeds but the maximum speed will be dependent on the number of devices on the bu
14. lear Screen ave Download new F Always Update Firmware Show Defaults Load versions Modem XBEE Function Set _ Version _ KB24 DM v XBEE DIGIMESH 2 4 8062 X Serial Interfacing a B 3 8D Baud Rate D 0 NE Parity B 3 F0 Packetization Timeout B 1 07 DIO Configuration 0 06 DIOS Configuration E BE FT Flow Control Threshold B 2 4P API Enable PORT 0 40 API Options Sy 1 0 Settings B 1 00 ADO DID0 Configuration 0 01 AD1 D101 Configuration D 0 02 AD2 D102 Configuration 0 03 AD3 D103 Configuration 0 04 AD4 DI04 Configuration D 1 05 AD5 DID5 Assoc Configuration B 0 08 DIOB SLEEP_RQ Configuration B 1 09 DIO9 0N_SLEEP Configuration B 1 PO DIO10 ASSI PWMO Configuration o B INLEI MINTI PAM Continuation 7 Packet mode API formats frames into packets from the RF link to the serial port It expects serial port packets to be formatted and transmits as a packet over the FF link v COM4 S96008 N 1 FLOW NONE XB24 DM Ver 8062 Figure 4 6 One option that needs setting here is the API enable API mode must be enabled if the XBee module on the I O board is going to be able to transmit input pin information and set the outputs API mode 2 is used by the Arduino XBee library if you plan to use an Arduino type board as your base station Also note that the Digital I O pins DIO6 and DIO7 are configured here The reason for that is they can also be us
15. oo poxhyeq ams BEOD L Z 0LZ VO Bung 900 aN ZS is MS sjonpoid aujysieg o S a HEL MA DOBH Uid 9 ETS 5 O ouv 1 carise our HEL MM 08H uid 9 eto Silex J aw OWN Al ae ur SoTeuy ournpzy EL MM ey uid g ON9 o T LT L 8010 08 nae EEK 2 uoanma Lex TT 5 po a RE 8 18 2013 15 Rev 1 00 Dual Serial Shield User Manual 6 PCB Mechanical oa RARE AMAMMA BEEBREERREE BES AMA XXXXXXXXXX kj E E j Sf a TF a ge z m7 E XHMMIHNK NX DERARERRERE hs h EE 4 odi p FF BREE BEB 4 E BEEEREEe CECILE osxos COTE Note Dimensions are in mils 8 18 2013 16 Rev 1 00 Dual Serial Shield User Manual 7 Appendix A Specifications Power Requirements e 5V 60mA minimum without XBee module e 15V maximum 500mA Do not exceed 15V input Environmental e 30 to 65 C Operating e 40 to 85 C Storage e 5 to 95 Relative Humidity non Condensing UART Port A e TTL Signal Levels e Xbee Series 1 amp 2 Compatible UART Port B e DB 9 wired as DTE e RS 232 Signal Levels Rev 1 00 17 8 18 2013 Dual Serial Shield User Manual 8 Appendix B Warranty Berkshire Products Inc warrants to the original consumer or other end user purchaser that this product is free from defects in materials or workmanship for a period of one 1 ye
16. ou should see a screen like the following About PC Settings Range Test Terminal Modem Configuration Com Port Setup Select Com Port Communications Port COM2 Baud 9600 USB Serial Port COM4 hd Flow Control NONE v Data Bits Parity Stop Bits Test Query Host Setup User Com Ports Network Interface API Reponse Timeout I Enable API Ti t 1000 ru 3 imeoul AT command Setup ASCII Hex Command Character CC Guard Time Before BT 1000 Modem Flash Update I No baud change Figure 4 2 In this example the USB Serial was on COM4 The baud rate should be 9600 to start with since that is how the XBees are shipped from Digi Click the Test Query button to see if the XBee is active If so you should get a window like this Com test Query Modem Communication with modem OK Modem type XB24 Modem firmware version 8062 Serial Number 13420040870885 Retry OK Figure 4 3 Is this case the test was OK It found an XB24 or a 2 4G DigiMesh If it had been the higher power Pro it would have been XBP24 The firmware version is shown along with its serial number IEEE Address which is HEX 0013A200 40870B85 The address is always 8 Bytes 64 bits and leading zeros are not shown Most Digi XBees start with 0013A200 It is also shown on the label on the bottom of the module Rev 1 00 9 8 18 2013 Dual Serial Shield User Manual 4 2 Configuring the Networking The
17. s The three pin jumper on the shield J3 is used to select one of two Arduino IO pins for the chip select line Pin 1 2 Select IO Pin 8 default for sample code Pin 2 3 Select IO Pin 4 3 3 UART Interrupt Option Jumper J4 The Dual UART has an open drain interrupt pin that is connected to a three pin jumper at J4 to generate interrupts on one of two Arduino or Freedom pins You can disable the interrupts totally by removing the shorting jumper You can even use the IO pins as inputs only and poll the pins to see if the UART needs attention The active level is logic LOW The pins connections are Pin 1 2 Select IO Pin 2 Pin 2 3 Select IO Pin 7 Note Currently there is no library support for interrupts 3 4 UART Port A Connections J5 J6 J9 The Port A UART can be used with an XBee module or it can be used as a TTL level UART To run it as an XBee plug in an XBee Series 1 or 2 radio into the 2mm receptacles within the XBee silkscreen outline Be careful and double check before you power up It is possible to get the modules offset in the receptacles Rev 1 00 5 8 18 2013 Dual Serial Shield User Manual The following table shows the Pin connections for using the UART in a TTL level mode Pin ID Name Description I O Alternate Function J9 Pin 3 TxD Transmit Data Out J9 Pin 2 RxD Receive Data In J6 Pin 5 RTS Request to Send Out J6 Pin 9 CTS Clear to Send In J5 1 DTR Data Terminal Ready
Download Pdf Manuals
Related Search
Related Contents
Mazda 2008 CX-7 Automobile User Manual www.pce-italia.it iDance Ibiza 101 HDMI2VGAD user`s manual Scarica il manuale di istruzioni User`s Manual Installation and User Manual User`s Manual FriendlyNet Hub Copyright © All rights reserved.
Failed to retrieve file