sLory User Guide Version: 1.0 April 8th, 2019 sLory User Guide Revision History Date of Revision April 8th, 2019 Document Pages Version Revised 1.0 All Details of Revision New Copyright 2018 SystemBase Co., Ltd. All rights reserved. Website Tel Fax http://www.sysbas.com/
+82-2-855-0501
+82-2-855-0580 16F (1601) Daerung Post Tower-1, 288, Digital-ro, Guro-gu, Seoul, Republic of Korea For inquiries, please contact us at tech@sysbas.com 2 sLory User Guide This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense. Caution THE GRANTEE IS NOT RESPONSIBLE FOR ANY CHANGES OR MODIFICATIONS NOT EXPRESSLY APPROVED BY THE PARTY RESPONSIBLE FOR COMPLIANCE. SUCH MODIFICATIONS COULD VOID THE USERS AUTHORITY TO OPERATE THE EQUIPMENT. IMPORTANT NOTE : FCC RF Radiation Exposure Statement This equipment complies with FCC RF radiation exposure limits set forth for an uncontrolled environment. This equipment should be installed and operated with a minimum distance of 20 centimeters between the radiator and your body. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions:
(1) This device may not cause harmful interference, and
(2) this device must accept any interference received, including interference that may cause undesired operation. 3 sLory User Guide Table of Contents 1.OVERVIEW ...................................................................................................................................... 5 2. FEATURES ....................................................................................................................................... 5 3. COMPONENTS .............................................................................................................................. 6 4. HARDWARE ................................................................................................................................... 7 4.1 SPECIFICATION ....................................................................................................................................................... 7 4.2 LED ......................................................................................................................................................................... 8 4.3 DRAWING OF DEVICE ........................................................................................................................................... 9 4.4 SERIAL PIN SPECIFICATION ................................................................................................................................ 10 5. HOW TO CONNECT ................................................................................................................... 11 6. HOW TO USE .............................................................................................................................. 11 6.1 SWITCH SEETING TABLE ..................................................................................................................................... 11 6.2 OPERATION MODE SETTING ............................................................................................................................. 12 7. UTILIZATION ............................................................................................................................... 19 4 sLory User Guide 1. OVERVIEW sLory is a device that converts signals of RS232, RS422 and RS485 Serial to LoRa to connect with Serial devices that are several kilometers away. LoRa (wireless communication technology for sensor networks), the next-generation communication of technology of Low Power Wide Area (LPWA) capable of transmitting small amounts of data over long ranges, enables communications up to 20 km in open terrain. 2. FEATURES
- Support low power and mid and long-range wireless communication of LoRa (Maximum of 20km in open terrain)
- Support RS232, RS422, and RS485 Serial Communication of 1 Port
- Support industrial operating temperature range from -40 to 85
- 15 KV IEC ESD Protection embedded
- Device setup with utilities such as Dip switch, AT Command and LoryView 5 sLory User Guide 3. COMPONENTS Package 5V DC Adaptor 2.625dBi Antenna Product Brochure SystemBase Covenant COMPONENTS sLory-1010DIL/ALL, 2.625dBi Antenna, 5V DC Adaptor, Quick Manuals, SystemBase Covenant ORDER NUMBER sLory-1010DIL/ALL 6 sLory User Guide 4. HARDWARE 4.1 Specification CATEGORY SUBCATEGORY Wireless Interface Wired Interface Display Frequency Band Modulation Encryption Antenna Serial Port LED Operating Temperature Specification 917 ~ 923MHz LoRa AES128 (Default setting: Disable)
+2.625 dBi Gain Load Antenna RS232/RS422/RS485 LINK, SRL, RDY
-40 ~ +85 Environment Humidity 5~95%; non-condensable Power DC 5V 1A(Adaptor) 7 sLory User Guide 4.2 LED LED RDY
(YELLOW) SRL
(RED) LINK
(GREEN) STATUS OPERATION Blink (Interval of 0.5 sec.) Operation Mode (Default) Blink (Interval of 0.1 sec.) Setup Mode On Off On Off Transmission and Reception of Serial Data
(RS232/RS422/RS485)
-
Transmission and Reception of LoRa Data
-
* If the input voltage level is lower than the rated voltage, an operation error occurs and the RDY and LNK LED will light up at the same time. 8 sLory User Guide 4.3 Drawing of Device 9 sLory User Guide 4.4 Serial Pin Specification Pin No. RS232 RS422 1 2 3 4 5 6 7 8 9
-
RXD TXD
-
-
RTS CTS TXD+
RXD+
TXD-
-
GND RXD-
-
-
RS485 TRXD+
-
TRXD-
-
-
-
-
VCC Option (DC5V) VCC Option (DC5V) VCC Option (DC5V)
* When supplying power through PIN 9, please apply DC 5V rated voltage. 10 sLory User Guide 5. HOW TO CONNECT No installation of programs on PC or communication device is needed for sLory. Just connect sLory to PC or Serial port of communication device and power to DC-Jack port. Then, RDY LED will blink in the interval set to 0.1 seconds under the Setup Mode and to 0.5 seconds under the Operation Mode.
* See 4.2 in the manuals for the details of LED operation 6. HOW TO USE Users should adjust setting of Serial (interface, communication speed, parity bits and flow control) and LoRa (channel, Spreading Factor) for the communication between sLorys or with other devices in LoryNet via AT command or LoryView. The default Serial setting is as follows: Baud rate of 9600, Data Bit of 8 and Stop Bit of 1. Here, Data Bit and Stop Bit are not subject to change. 6.1 Switch Setting Table NUMBER STATUS ON OFF ON OFF ON OFF
-
1 2 3 4 DESCRIPTION Setup Mode Active Mode (Default) RS422 RS232 when Switch 2 and 3 are OFF RS485 RS232 when Switch 2 and 3 are OFF Not used 11 sLory User Guide Button RST Description Reboot the system 6.2 Operation Mode Setting There are two Modes for sLory: General Communication Mode and LoryNet Mode. General Communication Mode is for the communication between PC and a device via sLory while LoryNet Mode is used for the communication in a structure of LoryNet Packet.
<General Communication Mode>
Setup via command Users can set AT Command via RS232 Port of a PC. To use Command, users need to set the Dip Switch on the back of the product as shown below. Set RS232 Port of a PC with a terminal program and open as shown below Baud Rate: 9600 Data Bit: 8 Stop Bit: 1 Parity Bit: None Switch on (Switch 1) to change to the Setup Mode Change to the Setup Mode via AT Command and then, LED will blink fast during the process of switching Mode Switch off (Switch 1) to change it back to the Operation Mode after the completion of setup. 12 sLory User Guide Command Instruction Command for basic setup COMMAND DEFAULT (RANGE) DESCRIPTION AT&Z AT&F AT&V AT&H or ?
AT&E
-
-
-
-
-
AT+PTYPE=<Mode>
1(0~1) 0 = LoryNet Mode 1 = General Communication Mode 1(0~1) Restart the device Initialize all settings and show the initial value on the screen Show the current setting Show the list of commands Shows the current AES KEY, AES IV. However, the initial AES KEY and AES IV values are not shown. Only the changed AES KEY and AES IV values are shown. 0: Setting for connection and communication with LoryNet platform 1: Default value of setting for General Data Communication 0: Setting for LoryNet Table AT+PTP AT+DID=
<Destination ID>
0 = OFF
(LoryNet Table Communication Communication) 1: Default value of setting for 1 = ON (Peer to Peer) General Data Communication 16777214(1~16777215) Enter the ID of the device to
(16777215 is a Broadcast ID) communicate with 13 sLory User Guide Commands for setup of LoRa COMMAND DEFAULT (RANGE) DESCRIPTION AT+PWR=<Power>
10(1~10) Change transmission intensity of LoRa 20(1~20) 1=917.3MHz 2=917.9MHz 3=918.5MHz 4=919.1MHz 5=919.7MHz 6=920.3MHz 7=920.7MHz 8=920.9MHz AT+CH=<Channel No>
9=921.1MHz 10=921.3MHz Change channels of LoRa 11=921.5MHz 12=921.7MHz 13=921.9MHz 14=922.1MHz 15=922.3MHz 16=922.5MHz 17=922.7MHz 18=922.9MHz 19=923.1MHz 20=923.3MHz AT+SFT=<Spreading Factor>
9(7~12) 0(0, 1) AT+AES=<Encryption>
0=OFF 1=ON Change Spreading Factor of LoRa 0: Disable the encryption function. 1: Activate the encryption function. If you enter a new AES key (16 Bytes), you must also type IV AT+AESKEY=<KEY>
-
(Initialization Vector) [16 Bytes]
"message is output. Enter the IV value continuously (16 Bytes). 14 sLory User Guide Command for setup of Serial COMMAND DEFAULT (RANGE) DESCRIPTION AT+PAB=<Parity Bit>
N(N,O,E) N=None, O=Odd, E=Even 6(0~13) Set Parity Bit 0=600bps, 1=1200bps, 2=2400bps, 3=3600bps, 4=4800bps, 5=7200bps, 6=9600bps, 7=19200bps, 8=38400bps, 9=57600bps, Set baud rate AT+BAU=<Baud rate>
10=115200bps, 11=230400bps, 12=460800bps, 13=921600bps 1(1~3) 1=RS232 2=RS422 3=RS485 AT+SER=<Interface>
AT+HF=<Hardware Flow Control>
0=OFF, 1=RTS/CTS AT+DMT=<Time>
5(1~255) Unit: 10ms Example) 5=50ms Set flow control
- Used to collect serial data and transmit it to LoRa
- Wait for the next data after the last data has transmitted from Serial, and then transmit data that it has successfully read to LoRa after specific period of time Set the length of STX(Start of text) of Serial data 15 sLory User Guide AT+STXL=<Length>
0(0~3) Unit: byte 0 = Not used AT+STX=<STX1>
AT+STX=<STX1>,<STX2>
AT+STX=<STX1>,<STX2>, 00(00~7F)
<STX3>
- Set STX(Start of text) of Serial data
- Refer to the ASCII table and enter the value of Hex except 0x for STX
- Set the length in AT+STXL=<Length> before entering the desired length;
For example, in order to register number 1,2 and 3, users firstly input AT+STXL=3 and then AT+STX=31,32,33
- Set STX(Start of text) of Serial data
- Refer to the ASCII table and enter the value of Hex except 0x for STX
- Set the length in AT+STXL=<Length> before entering the desired length;
For example, in order to register number 1,2 and 3, users firstly input AT+STXL=3 and then AT+STX=31,32,33 AT+ETXL=<Length>
0 = not used. 0(0~3) unit : byte Set the length of ETX(End of AT+ETX=<ETX1>
AT+ETX=<ETX1>,<ETX2>
AT+ETX=<ETX1>,<ETX2>,
<ETX3>
00(00~7F) text) of serial data
- Set ETX(End of text) of Serial data
- Refer to the ASCII table and enter the value of Hex except 0x for ETX
- Set the length in 16 sLory User Guide AT+DMS=<Length>
0(0~116) unit: byte AT+ETXL=<Length> before entering the desired length;
For example, in order to register number 1,2 and 3, users firstly input AT+ ETXL
=3 and then AT+ ETXL
=31,32,33 . Serial data will be transmitted to LoRa after a specific length of data as specified is received The priority is given in order of Length, STX or ETX and Time in case of that sLory includes features of Time, STX, ETX, and Length in the condition for Serial data reception. For example, if 1237890 will firstly be recognized according to the condition of Length if 1237890456 is entered with less than the 1-second-interval and the condition is set as follows: Length=7, STXL=3, ETXL=3, STX=31,32,33, ETX=34,35,36, Time=100. If 5671237456 is entered with less than the 1-second-interval, the number 567 will be ignored being considered as not STX because it does not satisfy the condition of Length but the second priority condition. In other words, only the number 7 will be recognized as a result of recognition of 123 for STX and 456 for ETX. Setup via utility (LoryView) The utility provided along with uLory is available on http://www.sysbas.com where users can download the datA from the library of the homepage for the customer convenience. Users can use LoryView for communication, reset, initialization and firmware update, and find the detailed instructions on the use in the LoryView manual.
<LoryNet Mode>
LoryNet is an IoT platform with virtual cable that enables smooth communication as if it were reading and writing to file by connecting devices utilizing low power, mid-range wireless and wired communication technologies to the internet. As a collection of protocols, cables and equipment in the middle to deliver signals and data 17 sLory User Guide between objects, the virtual cable makes it easier to connect devices in LoryNet to establish a new and desired network by improving reception from the distant or complicated connections. Accordingly, under the LoryNet Mode, uLory reads and writes entries, which are addresses of a table to exchange data between devices with each table serving as an agency Users can refer to the LoryView Manuals for detailed instructions on LoryNet Mode. 18 sLory User Guide 7. Utilization LoRa is low power, mid- and long-range communication utilizing LPWA(Low Power Wide Area) communication technology. With slow speed but long range of transmission and reception, it is widely used in the area of remote monitoring and control such as smart street lighting, smart metering, smart farm, smart farming and smart factories. As it boasts a communication range of the maximum of 20km in open terrain, it can be used in a variety of applications through 1:1 and 1:N communications as shown below:
~ 1:1 Diagram Serial M ax. 20Km LoRa LoRa Serial sLory sLory
~ 1:N Diagram Serial Serial Serial LoRa sLory M ax. 20Km LoRa LoRa Serial sLory sLory LoRa sLory 19