ESP32-S3-POE-ETH-8DI-8RO-Bluetooth

From Waveshare Wiki
Jump to: navigation, search

Bluetooth Control

Connect the ESP32-S3-POE-ETH-8DI-8RO device using the Bluetooth debugging assistant on your mobile phone, and send data to ESP32-S3-POE-ETH-8DI-8RO to control the opening and closing of each relay. Please note: Some Bluetooth debugging assistants send data in ASCII format by default, and you need to enter the correct control instructions according to the Bluetooth debugging assistant before controlling the device.

Operation Command Command Function
ASCII Hex
1 0x31 Switch the state of CH1 relay
2 0x32 Switch the state of CH2 relay
3 0x33 Switch the state of CH3 relay
4 0x34 Switch the state of CH4 relay
5 0x35 Switch the state of CH5 relay
6 0x36 Switch the state of CH6 relay
7 0x37 Switch the state of CH7 relay
8 0x38 Switch the state of CH8 relay
9 0x39 Turn on all relays
0 0x30 Turn off all relays

Softwares Operation (View IP)

  • Use the Bluetooth debugging assistant nRF Connect on your phone for relay control (other Bluetooth debugging assistants can also be used)
  • Below we use nRF Connect for functionality demonstration
  • Connect the Bluetooth device named ESP32-S3-POE-ETH-8DI-8RO

ESP32-S3-POE-ETH-8DI-8RO TO Bluetooth 1.png

  • When the connection is successful, select Unknown Service, click to read data, if the WIFI connection fails for a long time, the RGB will always light up red, and this click operation will not produce any response
  • In the case of successful WIFI connection, the device IP will be received, as follows, the device IP is 192.168.6.133

ESP32-S3-POE-ETH-8DI-8RO TO Bluetooth 2.png

  • The commands for Bluetooth control relay are characters 0~9, which are hexadecimal 0x30 ~ 0x39
  • Click the SEND button and fill in the data to be sent (currently hexadecimal sending), enter 0x31 as below

ESP32-S3-POE-ETH-8DI-8RO TO Bluetooth 3.png

  • Send 0x31 to control relay CH1 for status reversal

ESP32-S3-POE-ETH-8DI-8RO TO Bluetooth 4.png

  • Send 0x38 to control relay CH8 for status reversal

ESP32-S3-POE-ETH-8DI-8RO TO Bluetooth 5.png