Skip to content

industrialtablet/RK3588-RK3568-RK3566-Tablet-Relay-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Industrial Tablet Relay controller

Tablet read relay status & start app & show camera or web url

Customer:

Please can you check with Dennis if we can do this? I need a possibility to send an action URL or to open an rtsp stream of camera in Fullscreen browser if the relais would be closed by button or other devices.

Example customer has a school and has bell push button with a potential free contact. He wants to connect the contact of the button with the display and then see the person in front of the door on the camera image.

Answer:

Yes, we can do. First we need design a HID USB relay connect with our industrial Tablet. Then we will design a app run on our tablet. The app will read the Relay status. You can set the action you want to do in the app. Our app will help you open URL or other apps.

Can you control relays with Android tablet?

Yes, you can control relays using an Android tablet. There are several methods to achieve this. Here's one common approach:

  1. Hardware requirements: You'll need an adapter or module to connect your Android tablet to the relays. Common options include using Bluetooth, Wi-Fi, UART, or a USB connection.

  2. Software application: Install a suitable app on your Android tablet to control the relays. You can search for an app compatible with your device and relays on the Google Play Store. Popular applications provide a user-friendly interface that allows you to easily control and operate the relays.

  3. Connection and setup: Follow the instructions provided by the application to connect your tablet to the relays. This may involve setting up a Bluetooth or Wi-Fi connection or connecting via a USB cable.

  4. Control the relays: Once successfully connected, you can use the application to control the relays. Typically, the app will provide buttons, switches, or sliders as controls, allowing you to turn the relays on or off or adjust their state.

Please note that the specific steps and required hardware and software may vary depending on the tablet and relay models you're using. Before attempting to connect and control relays, it's advisable to carefully read the relevant documentation and instructions to ensure you understand the correct procedures.

Get More technical Support

RK3588 Development Board

- RK3588 Development Board

ota upgrade tools(otaStar) and server

- RK3566/RK3568/RK3588 Android OTA upgrade tools and server

Android HID USB RelayController

- RK3566/RK3568/RK3588 Android HID USB RelayController

How Qt5.14.2 cross-compile

- RK3588 Qt5.14.2 cross-compile for Ubuntu and Debian Linux OS

Build Videorecorder Bundle use Networkoptix Client on HYY H-3588 Tablet

- Build Videorecorder Bundle use Networkoptix Client

Build new ubuntu rootfs for HYY H-3588 Tablet

-Build new ubuntu rootfs for RK3566 RK3568 RK3588 products

API

The interface class HyyRelay defines how to control the function of the relay switch through the switch.

HyyRelay interface class methods

method parameter describe
open RelaySwitchingEventListener Open the serial port and connect the serial device
relayOn none Open relay
relayOff none Close relay
close none close serial port

RelaySwitchingEventListener: Switch The switch event callback is monitored. When the switch is pressed, the on method is called. The development is released and the off method is called

example:

  HyyRelayCtl hyyRelayCtl = HyyRelayCtl.instance();
  boolean opened = hyyRelayCtl.open(new HyyRelay.RelaySwitchingEventListener() {
      @Override
      public void on() {
          hyyRelayCtl.relayOn() //  open the relay switch here
          // more code implement your functions here.
      }

      @Override 
      public void off() {
          hyyRelayCtl.relayOff(); //  close the relay switch here
          // more code implement your functions here.
      }
  });

// HyyRelayCtl implements interface HyyRelay
// hyyRelayCtl.open return true Indicates that the serial port device is successfully connected. Otherwise, the connection fails
// If the device switch button is pressed, RelaySwitchingEventListener on method will callback. Call the code to open the switch here, and you can implement your own functions

Contacts