Home
RC17xxHP-RC232 User Manual
Contents
1. RSSI MODE Append RSSI 0x05 0 1 0x00 0 0 No RSSI append No 1 RSSI append Radio packet configuration PACKET Packet Length OXOF 1 200 0x80 Preamble header length LENGTH L apply for S mode only PACKET TIMEOUT Time before 0x10 0x00 0xFE 0x7C None means packet timeout modem time 0 254 124 is disabled not 0 s out and 0x00 0 None transmitting the 0x01 1 32 ms Timeout value is buffer 0x02 2 48 ms PACKET TIMOEOUT x 16 0x03 3 64 ms ms 0 16 ms min max 0x7C 124 2s OxF9 249 4 s OxFE 254 is max giving 4 080 sec Default is 2 s Ox7C 124 PACKET END 0x11 0x00 Off 0x00 0 No end character CHARACTER 0x01 0xFF On 1 255 Use value as end character Medium access addressing and network management ADDRESS_MODE 0x14 0 2 8 0x02 2 0 No addressing 2 1 byte addressing 8 For future use Using addressing adds the SID and DID bytes to the radio packet CRC MODE 0x15 0x02 2 0 None 2 CRC16 UNIQUE D1 UID1 0x19 0 255 0x01 1 ADDRESS MODE 0 SYSTEM ID1 SID1 Ox1A 0 255 0x01 0 No addressing DESTINATION ID1 0x21 0 255 0x01 1 ADDRESS MODE 2 DID1 UID UID1 BROADCAST 0x28 0 255 OxFF SID SID1 ADDRESS 255 DID DID1 BID BID HP TEMP COMP 0x29 0 1 0x00 0 High Power Temperature compensation 1 enable 0 disable default Stabilize output power and current draw over 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 10 of 15 Embedded Wireless Solutions R
2. changing UART FLOW CTRL in the non volatile configuration memory Note The module CTS is set up during the first stop bit sent from to module when the buffer is full and the host should then halt further character transmissions to prevent character loss If the host cannot detect the CTS quickly enough during hardware handshake it should be configured for two stop bits Power Management The module can be set in SLEEP mode in order to reduce the power consumption 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 4 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual When the SLEEP pin is not enabled RF_SLEEP_MODE 0x00 the module can be set in Sleep mode by activating CONFIG and sending a Z command The module is woken up when CONFIG is deactivated goes high Note During Sleep the CONFIG pin does not have any internal pull up so the CONFIG pin must be driven high in order to wake the module Any activity on the RXD pin will make the module wake up but immediately return to Sleep as long as CONFIG is kept low Such activity on the RXD pin should be avoided in order to reduce current consumption When the SLEEP pin is enabled RF_SLEEP_MODE 0x02 the module can be set in Sleep mode by activating RTS SLEEP asserting low The module is woken up when RTS SLEEP is deactivated goes high Note During Sleep the RTS SLEEP pin does not have any internal pull up so the RTS SLEEP pin must be driven high i
3. C17xxHP RC232 User Manual temperature Data and configuration interface UART Serial Port UART BAUD RATE Baud rate 0x30 0x00 Not used 0x05 5 BE CAREFUL 0x01 2400 IFCHANGING AS HOST 0x02 4800 MAY LOOSE CONTACT 0x03 9600 WITH MODULE 0x04 14400 0x05 19200 Does not take effect until 0x06 28800 module is re booted reset 0x07 38400 0x08 56700 0x09 76800 Ox0A 115200 OxOB 230400 UART FLOW CTRL UART flow 0x35 0 None 0x00 0 control 1 CTS only 3 CTS RTS 4 RXTX RS485 ENCRYPT_FLAG Ox3E 0 Disabled 0 Encryption enabled when 1 Enabled set DECRYPT FLAG Ox3F 0 Disabled 0 Decryption enabled when 1 Enabled set DEFAULT KEY 0x40 All OxFF Ox4F INIT VECTOR 0x50 All 0x00 Ox5F PART_NUMBER 0x89 0x96 ROxxxx RC232 HW REV NO 0x98 X yZ x y and z Any number 0d 0x9B 9d FW REV NO Ox9D X yZ x y and z Any number 0d OxAO 9d SERIAL NUMBER 0x78 All 0x00 8 bytes reserved for serial Ox7F number for traceability Is programmed by Radiocrafts during test Note Adaress location not listed should not be changed from the default value 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 11 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual Timing Information The figure and table below shows the timing information for the module when changing between different operating states in the embedded RC232 protocol The IDLE state is the normal st
4. Embedded Wireless Solutions RC17xxHP RC232 User Manual RC17xxHP RC232 Embedded RF Protocol User Manual Description The RC232 Embedded RF Protocol is used in a range of products from Radiocrafts The protocol and command interface is described in this User Manual The RC232 protocol features described in this document is common to all Radiocrafts modules named RC17xxHP RC232 and RC17xx RC232 Device specific data are found in their respective data sheets 9 Y gig Peer to peer Radiocratts Point to multi point UART to RS232 Radiocratts RS485 USB Ethernet GPRS Figure 1 A typical addressed sensor and actuator application supported by the RC232 protocol 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 1 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual RC232 Embedded Protocol The RC232 protocol is an easy to use protocol for bidirectional wireless transmission of data packets from a transmitter to a receiver Data entered on one side is received transparent byte by byte at the other side The RC232 protocol features e Complete MAC layer packet protocol Buffered packet transmission mode Variable packet length end character or timeout Optional addressing of packets to a unique node or broadcast to all nodes in a system Optional error detection using CRC 16 check sum On the fly configuration of the radio modem 128 byte data buffer Power saving s
5. HP RC232 User Manual In configuration mode the module will respond by sending a gt prompt on the TXD pin This indicates that the module is ready to receive commands The CONFIG pin can then be de asserted Note that the CONFIG pin must be de asserted before the Exit command X is sent to the module in order to return to normal operation After a command is executed the module responds with the gt prompt character again indicating it is ready for a new command Do not send a new command before the gt prompt is received The time required to execute a command can vary depending on the command see the Timing Information section There is no gt prompt after the X exit command The parameters that are set by direct commands C P and T take immediate effect after returning to normal operation IDLE but will not be stored in non volatile memory and will be lost in case the supply power is turned off or if the module is reset These parameters are for example the radio channel and output power A list of commands is shown in the table below Channel C 0x43 0x01 0x0C 1 12 Data is stored in volatile memory only Output power P 0x50 0x01 0x05 1 5 Data is stored in volatile memory only Signal S 0x53 Returns one byte indicating See page 6 for details Strength the signal strength RSSI Destination T 0x54 0x00 OxFF 0 255 Data is st
6. ate where the module search for preamble on the air and wait for a character to be received on the UART RXD is the state when receiving characters from the host filling up the internal buffer TX state is when the data is transmitted on the air RX state is when data is received from the air after preamble detection TXD is the state where the received data is sent to the host on the UART CONFIG is the state entered by asserting the CONFIG pin and used during parameter configuration while MEMORY CONFIG is the sub state entered by the M command where the configuration memory is being programmed Note the limitation on maximum number of write cycles using the M command see Electrical Specifications trix trxv Le Preamble detected First character on Last character on UART TXD UART TXD laxp crs trx gt tracker_rmeour MN First character on Last character on UART RXD UART RXD trxo rx tree IDLE 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 12 of 15 OFF torre reser DLE RESET RC17xxHP RC232 User Manual IDLE IDLE tsuzep Le SLEEP IDLE IDLE CONFIG set low tconric prompr tc conric tconric DLe gt _ CONFIG CONFIG IDLE E X 3 C temory conric tconric 1DLe CONFIG MEMORY CONFIG CONTE M 2 X 2 OxFF RX TXD 180 us Time from last byte is rec
7. chemes Easy to use UART interface RS232 422 485 USB compatible via external level shifter Optional UART hardware handshake Optional RSSI info on received packets Optional Temperature sensor readout Optional Voltage sensor readout Optional Encryption Decryption of packets The RC232 embedded protocol is compatible with RS232 RS422 and RS485 serial buses Data is transferred to from the module using a UART interface the same as used for RS232 RS422 and RS485 except that it use logic level signals 3 V logic Most other UART converters for instance UART USB can also be used together with the module The UART interface is used both for communication and configuration A set of easy to use hex commands makes it possible to alter the configuration of the module Buffered mode communication This is the most straight forward and most commonly used mode A data packet entered on the UART will automatically be transmitted by the module based on one or more of the following triggers e Buffer is full Buffer size is configurable and is named PACKET LENGTH e A predefined time after last bit in last byte is received The time is configurable and is named PACKET TIMEOUT e Anend character is received The end character is configurable and is named PACKET END CHARACTER Only ONE of the triggers has to be present for the module to transmit Note the following PACKET TIMEOUT 0 zero means None thus is disabling the feature If t
8. command to start of RSSI byte received on UART Please see RC17xxHP RC232 for details about the RC232 protocol 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 13 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual Appendix ASCII Table 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 14 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual Document Revision History Disclaimer Radiocrafts AS believes the information contained herein is correct and accurate at the time of this printing However Radiocrafts AS reserves the right to make changes to this product without notice Radiocrafts AS does not assume any responsibility for the use of the described product neither does it convey any license under its patent rights or the rights of others The latest updates are available at the Radiocrafts website or by contacting Radiocrafts directly As far as possible major changes of product specifications and functionality will be stated in product specific Errata Notes published at the Radiocrafts website Customers are encouraged to check regularly for the most recent updates on products and support tools Trademarks RC232 is a trademark of Radiocrafts AS RC232 is a proprietary protocol for serial communication between a host and an RF module All other trademarks registered trademarks and product names are the sole property of their respectiv
9. e owners Life Support Policy This Radiocrafts product is not designed for use in life support appliances devices or other systems where malfunction can reasonably be expected to result in significant personal injury to the user or as a critical component in any life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness Radiocrafts AS customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Radiocrafts AS for any damages resulting from any improper use or sale 2014 Radiocrafts AS All rights reserved Contact Information Web site www radiocrafts com Address Radiocrafts AS Sandakerveien 64 NO 0484 OSLO NORWAY Tel 47 4000 5195 Fax 447 22 71 29 15 E mail sales radiocrafts com support radiocrafts com 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 15 of 15
10. eived from the air until first character is sent on the UART trxp Min 590 us trxp bytes received x 590 us char 10 bits at 19 2 kBd 70 us delay per character trxp ipLE 900 us Time from last character is sent on the UART until module is in IDLE mode ready for RXD and RX Trxp cts 20 us Time from last character is received by the UART including any timeout until CTS is activated traxp Tx 960 us Time from last character is received by the UART including any timeout until the module sends the first byte on the air TTXIDLE 960 us Time from last character is sent on the air until module is in IDLE mode ready for RXD and RX toFF IDLE 3 2 ms tresetpte 9 0 ms lsigePipg 1 28 ms tconric 590 us Time from CONFIG pin is set low until prompt gt PROMPT tcz conrig 1 1 ms Delay after channel byte is sent until prompt gt For other commands like M T there is no delay but immediate prompt tmemory 62 ms In this period the internal flash is programmed Do not reset turn the CONFIG module off or allow any power supply dips in this period as it may cause permanent error in the Flash configuration memory After OxFF the host should wait for the gt prompt before any further action is done to ensure correct re configuration Tconric 1 42 ms IDLE trx Min 12 ms trx bytes to send x 1 67 ms byte at 4 8 kbit s 2 bytes preamble sync 2 bytes address 2 bytes CRC Tnssi 20 ms Time from end of S
11. his parameter is not used as trigger for transmission one of the other two has to be configured for the transmission to be performed as required A good practice is to set PACKET TIMEOUT 0x02 so the module empties its buffer if an unintentional start bit enters the UART f the module transmits based on either full buffer or received end character the PACKET TIMEOUT is ignored thus this configured time does not add to the total time spent for a transmission to take place 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 2 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual Addressing The module allows addressed point to point packet transmissions and broadcast transmissions Each module has a SYSTEM_ID one byte and its own UNIQUE_ID UID one byte The SYSTEM_ID and UNIQUE_ID can be programmed for each module using the configuration interface The use of addressing can be enabled with ADDRESS_MODE in the configuration memory Each module also has a default destination address DESTINATION ID DID This address will be added to the data packet if addressing is enabled All the nodes in one system should have the same SYSTEM_ID And each node should be set to a different UNIQUE_ID To send a packet to a specific node set the destination address to the specific node s UNIQUE_ID Radiocrafts Radiocrafts Radiocrafts Figure 2 Set DID UID for an addressed package to arrive at the desired rece
12. iver If a broadcast is to be made set the destination address to the BROADCAST_ID By default the BROADCAST_ID is OxFF decimal 255 but this can be changed in the configuration Remember that the BROADCAST D cannot be the same as any UNIQUE ID Radiocrafts a Figure 3 Set DID BID for a package to arrive at the desired multiple receivers For addressing to work properly make sure e All nodes have addressing enabled ADDRESS MODE e All nodes within the system have the same SYSTEM ID 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 3 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual e All nodes within the system have the same BROADCAST ID e Each node within the system has one unique UNIQUE ID Before transmitting data make sure e The DESTINATION ID is set to the desired receivers UNIQUE ID e Orsetthe DESTINATION ID to the BROADCAST D if the packet is to be received by all nodes If addressing is disabled ADDRESS MODE 0x00 all receivers may receive any transmission CRC Error Detection The RC232 protocol has a built in error detection based on a 16 bit CRC The error detection can be enabled with CRC MODE in the configuration memory If a received packet contains an invalid checksum it will be discarded and not sent to the host UART Interface A UART serial bus is used as the interface between the module and the host system for data transmission in the buffered mode and for config
13. n order to wake up the module Any activity on the RXD or CONFIG pins will not make the module wake up Activity on module pin 16 and 17 can wake the module and must be avoided do not connect as previously stated in this document CONFIG must be high when awakening the module to avoid setting the module directly in configuration mode All configuration settings and RAM values are retained during Sleep The pull ups on RTS SLEEP and CONFIG pin are disabled during sleep mode in order to minimise the sleep current consumption If the module is shut completely off by removing the supply voltage all configuration settings in non volatile memory is restored but values in RAM are overwritten with default settings Enter SLEEP Mode Using RTS SLEEP pin RTS SLEEP 0 LL Fon MODE IDLE SLEEP IDLE Enter SLEEP Mode Using CONFIG and Z Comand CONFIG te eee eFest lt UART Comand z MODE IDLE CONFIG SLEEP IDLE Encryption The RC232 protocol can encrypt data before transmission and decrypt at reception The CRC is used to verify correct decryption so the 2 byte CRC CRC_MODE 2 should be enabled when using encryption Also both the ENCRYPT_FLAG and DECRYPT_FLAG must be set for a successful link 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 5 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual The encryption method used is AES 128 CTR mode Using the counter mode means that any packet le
14. ngth can be encrypted without the use of filler bytes Both the Initialization Vector Initial Counter Block and the Encryption Key are fixed AES uses a symmetric key That is the same Encryption Key is used for both encryption and decryption Also the Initialization Vector must be the same These are stored as INIT VECTOR and DEFAULT KEY both 16 bytes long 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 6 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual RSSI Reading The module provides a digital Received Signal Strength Indicator RSSI through the S command or attached to received messages The module returns an 8 bit character one byte indicating the current input signal strength followed immediately by a second character which is the prompt gt when in command mode The signal strength can be used as an indication of fading margin or as a carrier sense signal to avoid collisions The signal strength measure by the S command is the instantaneous value The RSSI value appended to a received message RSSI_MODE 1 is the signal strength of that received packet The RSSI value increases with increased input signal strength in 0 5 dB steps Input signal strength is given by typ RSSI 2 dBm The dynamic range of the RSSI P goes from the Sensitivity level up to typical 30 dBm RSSI saturation level Temperature Reading The module provides readings of a digital temperat
15. ode 1 T 0x31 none TX carrier Test mode 2 2 0x32 none TX modulated signal PN9 sequence Test mode 3 3 0x33__ none RX mode Test Mode 4 4 0x34 none Radio off mode RX and TX off Note ASCII characters are written as X hexadecimal numbers are written like 0x00 and decimal numbers are written like 10 throughout the text A table of ASCII characters and their respective hex and decimal values are found in the Appendix Commands must be sent as ASCII characters or their corresponding binary value All arguments must be sent as binary values to the module not as ASCII representation for hex or decimal Any invalid command will be ignored and the gt prompt will be re sent The CONFIG line must be de asserted after the first gt prompt was received but before the X command To make permanent changes to default values and other parameters the Memory Configuration command M is used This command should be followed by pairs of byte being the memory address and the new value to be stored at that address In order to exit the Memory Configuration mode command X must be sent Example To select RF channel 3 send the follow sequence after asserting the CONFIG line and the gt prompt is received Command Hex Response Comment Note CONFIG asserted gt De assert CONFIG after gt prompt C 0x43 gt 3 0x03 gt Wait for gt p
16. ored in volatile address Memory only Temperature U 0x55 Returns one byte indicating See page 6 for details monitoring the temperature Battery V 0x56 Returns one byte indicating See page 6 for details monitoring the power supply voltage Memory Read Y 0x59 0x00 Ox7F Return one byte value one byte The argument is the address from the configuration in the configuration memory memory Memory M Ox4D Address Data see list of Used to enter memory configuration parameters below configuration menu OxFF exits memory Parameters changed are configuration stored in non volatile memory Module Reset RR No arguments but CONFIG Module reset Alternative must be low for this to RESET N pin low if only command UART is connected to host Factory Reset QRC No arguments but CONFIG Resets the configuration must be low for this command memory back to factory default values in the whole non volatile memory 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 8 of 15 Embedded Wireless Solutions RC17xxHP RC232 User Manual Exit command X 0x58 none Exit to normal operation mode All changes of parameters take effect Sleep mode Z 0x5A none CONFIG pin must be asserted while in SLEEP mode Exit sleep mode by releasing CONFIG pin Test mode 0 0 0x30 none List all configuration memory parameters Test m
17. rompt A new command could be issued here X 0x58 none Module returns to IDLE state It is important to enter Test mode 3 before exiting the configuration mode X if Test mode 1 or 2 has been used This will ensure proper operation in normal mode Test mode 0 0 command can be used to list all parameters stored in non volatile memory This command can be used to verify and check the module configuration 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 9 of 15 Configuration Memory The table below shows the complete list of configurable parameters stored in non volatile memory These values can be changed using the M command All addresses and arguments must be sent as binary values to the module not as ASCII representation for hex or decimal Radio configuration RC17xxHP RC232 User Manual RF_CHANNEL Default RF 0x00 RC1701 1 10 0x01 1 See data sheet for details channel RC1740 1 93 0x01 1 RC1760 1 239 0x01 1 RC1780 1 84 0x3D 61 RF_POWER Default RF 0x01 1 5 0x05 5 See data sheet for details output power RF_DATA_RATE Default RF data 0x02 1 15 0x04 4 See data sheet for details rate SLEEP_MODE Sleep Mode 0x04 0 SLEEP pin 0x00 0 When enabled the module disabled will enter sleep mode by 1 reserved asserting sleep pin low 2 SLEEP pin Do not use in combination enabled with enabled UART flow control
18. uration of the module Normally no flow control handshake is used Any microcontroller with hardware or software UART or UART converter communicating with the module in its configurable UART speed can be used to communicate with the module Optionally the CTS and or RTS RXTX can be used for hardware flow control CTS pin Clear to send The low asserted CTS pin provides flow control for the module When CTS is asserted low serial data can be sent to the module for RF transmission If the module is busy like during RF data transmission or reception the CTS pin will be de asserted high to stop any data transfer to the module RTS pin Ready to send When RTS is asserted low the host allow data to be sent from the module to the host The host can stop the module from sending data by de asserting high the RTS signal Note that if the module has data waiting in the receive buffer it will not be able to receive or transmit further data until the RTS has been asserted and the data in the buffer is transferred to the host RXTX pin RS485 driver control RXTX is low when the module can receive data on RXD RXTX is high when the module is transmitting data on TXD and additionally 5 ms for the module to turn from TXD to IDLE mode see Timing Information in the module data sheet The RXTX pin is normally connected to the RE and DE pins on the RS485 driver circuit The configuration of the flow control for the UART interface is done by
19. ure monitoring sensor TEMP through the U command The module returns an 8 bit character one byte indicating the current temperature in degrees Celsius C followed immediately by a second character which is the prompt gt The TEMP value increases with increased temperature in 1 C steps and accuracy of 2 Temperature is given by T TEMP dec 128 C example TEMP 0x98 equals 24 C Power Supply voltage Reading The module provides readings of an internal power supply voltage monitoring sensor VCC through the V command The module returns an 8 bit character one byte indicating the current power supply voltage level followed immediately by a second character which is the prompt gt The command can be useful for battery power monitoring The VCC value increases with increased power supply voltage in 30 mV steps The power supply voltage is given by V VCC dec 0 030 V example VCC 0x68 equals 3 12 V 2014 Radiocrafts AS RC17xxHP RC232 User Manual rev 1 0 Page 7 of 15 Module Configuration The configuration of the module can be changed in circuit from the host during operation at the time of installation of the equipment at the manufacturing test or even as a standalone module The configuration is changed sending commands on the UART interface after the module is set in configuration mode The configuration mode is entered by asserting the CONFIG pin set low RC17xx
Download Pdf Manuals
Related Search
Related Contents
REX-USB61 ユーザーズマニュアル 精子密度計 牛用 大建工業 CQ0402-2 RH87 Medidor ambiental multifuncional Manual do usuário Desa S26NT User's Manual USER`S MANUAL MAC Series Samsung E239 用户手册 TA3 Update Notices - May Day Softworks Banc d`essai 51 - Loisirs Détections Tech air 2111V3 Copyright © All rights reserved.
Failed to retrieve file