Instructions for using the MODBUS device smart speaker docking gateway

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

Instructions for using the MODBUS device smart speaker docking gateway

It is possible to integrate MODBUS RTU and custom RS-485 protocol devices into smart speakers for voice control. Currently,Xiaomi AI, Tmall Genie, Xiaodu Speaker, Rokee, etc. are supported (MBI_5) (Recommend using Xiaodu speaker, as the device name is more flexibleIt is recommended to use Xiaodu audio, as the device name offers high flexibility)

Instructions for using the MODBUS device smart speaker docking gateway插图

). How to use it?

1. Connect the voice gateway to the router and power it on.
2. The voice gateway will connect to the Google server to check the time. After about 2-3 minutes, you will hear the welcome message of the Smart Linkage Voice Broadcast Center, andthe IP address of the device will be broadcasted.

. 3. Log in to the voice gateway's web backend,http://xxx.xxx.xxx.xxx:6521, default password admin, admin (Note:xxx.xxx.xxx.xxxneeds to be replaced with the IP addressbroadcast by

.) 4. Click "Tmall Genie" to add a device, select the device supported by Tmall Genie, give the device an alias, select the room where the device is located, and click "Add".

Instructions for using the MODBUS device smart speaker docking gateway插图1
Instructions for using the MODBUS device smart speaker docking gateway插图2

5. Select to add control commands

*Genie voice command: Select voice control to turn the device on or off.*

*Select classification data: 1. Host resources 2. Custom data. (Development version data should be filled here)*

(After writing, you can click the "Test" button to test whether the control is normal) *

Instructions for using the MODBUS device smart speaker docking gateway插图3
Instructions for using the MODBUS device smart speaker docking gateway插图4

and establish a connection with Tmall Genie

1. Find the "STMRTE Smart" skill in the Tmall Genie smart home, enter the registered account and password on the login page, and complete the account binding process.

2. After account binding, the control devices you added in the voice docking module will appear in the device list of the STMRTE Smart skill.

3. At this point, you can use Tmall Genie to control devices through voice.

Instructions for using the MODBUS device smart speaker docking gateway插图5
The same goes for other audio devices!

Custom Data & Modbus Protocol Generation Control

1. In the custom data classification, select action data and click on the custom data voice gateway to send custom bus data through the 485 interface. Click on Modbus protocol generation to assist in generating the Modbus protocol.

Instructions for using the MODBUS device smart speaker docking gateway插图6

2. Click the test button and use a USB to 485 converter with a serial port assistant to monitor the custom protocol you have configured.

Instructions for using the MODBUS device smart speaker docking gateway插图7

How to connect to a device via TCP/IP?

Click on system settings and enter the IP address and port number!

Instructions for using the MODBUS device smart speaker docking gateway插图8

How to configure a network device with an open protocol?

After modifying the corresponding code, paste it completely into the custom - select action data box!

  1. SOCKET HEX- Socket configuration for sending data in HEX format
{
  "ip": "192.168.1.189",
  "port": 4198,
  "type": "sockethex",
  "data": "ddccbbaacc00b30001"
}
  1. SOCKET ASCII- Socket configuration for sending data in ASCII format
{
  "ip": "192.168.1.11",
  "port": 8585,
  "type": "socketascii",
  "data": "这是要发送的内容,你可以任意编辑"
}
  1. HTTP protocol- Configuration for sending data via HTTP protocol
{
  "type": "http",
  "url": "http://192.168.1.200/uartw.cgi?data=DDCCBBAACC00020001&type=1&pswd=123asadmin:admin="
}
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.