NCD RS-485 Скачать руководство пользователя страница 6

 
AutoEncoder Version Communications Protocol 
 

The AutoEncoder Version of this device handles data in a slightly different way when compared to the Standard 

Version of this device.  The AutoEncoder version of this device automatically generates the API frame for 

wireless communications, making communications with Digi modules much easier to manage.  Similarly, 

incoming wireless data is decoded and converted to a raw payload on the RS-485 port.  All the user needs to 

worry about are a few commands, and raw payload data.  The AutoEncoder version will wrap up and unwrap all 

wireless data and convert to RS-485 data.  There is a speed penalty for this conversion, so it is slower than the 

Standard Version at the expense of ease of use.  Below you will see an example of data structures: 

Wireless to RS-485 Conversion: 

Example Incoming Wireless Data -- 7E 00 19 90 00 13 A2 00 41 91 1B 83 FF FE C2 7F 00 04 03 FF 80 00 01 

00 0F A1 F7 40 9E 

Example of Outgoing Data On RS485 Port -- 7F 00 04 03 FF 80 00 01 00 0F A1 F7 40 

RS-485 to Wireless Conversion: 

Example Incoming Data on RS485 port -- 69 20 74 68 69 6E 6B 20 69 20 61 6D 20 77 6F 72 6B 69 6E 67 20 66 

69 6E 65 

Example of Outgoing Wireless Data -- 7E 00 25 90 00 13 A2 00 41 8C 58 B6 FF FE C2 69 20 74 68 69 6E 6B 

20 69 20 61 6D 20 77 6F 72 6B 69 6E 67 20 66 69 6E 65 1F 

Read Network ID – AutoEncoder 

The Read Network ID command queries the Digi XBee module to determine the wireless network the device is 

associated with.  The Network ID can be thought of as a Group, each Network ID defines a different group in the 

wireless network.  Devices with different Network IDs cannot communicate with each other.  Only devices with 

the same Network ID are allowed to communicate. 

Read Network ID: 

7E 00 10 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F7 0E EF  

Response: 

7E 00 11 90 00 13 A2 00 41 8C 58 B6 FF FE C2 7C 7F FF 00 00 26 

Write Network ID – AutoEncoder 

The Write Network ID command updates the Digi XBee module to associate the device with a different wireless 

network.  The Network ID can be thought of as a Group, each Network ID defines a different group in the 

wireless network.  Devices with different Network IDs cannot communicate with each other.  Only devices with 

the same Network ID are allowed to communicate.  When using this command, be sure all other devices are 

using the same Network ID. 

Write Network ID: 

7E 00 12 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F7 04 7F FF 7B 

Response: 

7E 00 11 90 00 13 A2 00 41 8C 58 B6 FF FE C2 7C FF 00 00 00 A5 

Содержание RS-485

Страница 1: ...is guide The communication protocols are slightly different for each version We will start the guide by covering the hardware and then move on to protocol for all 3 versions Please note this guide wil...

Страница 2: ......

Страница 3: ...communications with a Raspberry Pi 2 or 3 Arduino to Modular Communications Adapter allows RS 485 communications with Arduino Uno Particle Photon to Modular Communications Adapter allows RS 485 commun...

Страница 4: ...tes will be Returned Indicating the Baud Rate 9 600 00 25 80 19 200 00 4B 00 38 400 00 96 00 57 600 00 E1 00 115 200 01 C2 00 Change the RS 485 Baud Rate Send the Following Bytes via RS 485 9600 Baud...

Страница 5: ...p computers that have the resources to properly generate and decode Digi API communication frames If you are unfamiliar with Digi API communication frames please reference the following document from...

Страница 6: ...6E 65 Example of Outgoing Wireless Data 7E 00 25 90 00 13 A2 00 41 8C 58 B6 FF FE C2 69 20 74 68 69 6E 6B 20 69 20 61 6D 20 77 6F 72 6B 69 6E 67 20 66 69 6E 65 1F Read Network ID AutoEncoder The Read...

Страница 7: ...o target communications with a specific device or broadcast data to all devices that share the same Network ID Use the following command to Set the Destination Address of all wireless data Set Destina...

Страница 8: ...es to follow NCD standards for device communications The Emulator version essentially takes incoming RS 485 data and attaches additional information to make existing equipment act like a modern NCD Io...

Страница 9: ...FE 00 00 F7 19 00 00 00 E4 Response 7E 00 1C 90 00 13 A2 00 41 8C 58 B6 FF FE C2 7C 00 00 00 00 00 00 7F FF 00 00 00 00 00 00 00 26 28 bytes Write Network ID Emulator The Write Network ID command upd...

Страница 10: ...8C 58 B6 FF FE C2 7C 00 00 00 00 00 00 FF 00 00 00 00 00 00 00 00 A5 Read Destination Address Emulator The Destination Address can be used to target communications with a specific device or broadcast...

Страница 11: ...t Baud Rate 7E 00 13 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F7 01 00 25 80 57 Response 7E 00 1C 90 00 13 A2 00 41 8C 58 B6 FF FE C2 7C 00 00 00 00 00 00 FF 00 00 00 00 00 00 00 00 A5 Command Errors...

Отзывы: