Forum >RLY-8 control over USB
RLY-8 control over USB

Hello
I have a problem with controlling this product over USB:
https://www.dfrobot.com/product-1218.html
In the communication protocol PDF, I found the command format. But how do I have to send these commands to the device? I tried it byte after byte starting from the frame head. What are the settings of the serial port (parity, stop-bit etc.)?
Im working on windows on visual studio and made a C#-Project. Here is the necessary code snippet:
I have a problem with controlling this product over USB:
https://www.dfrobot.com/product-1218.html
In the communication protocol PDF, I found the command format. But how do I have to send these commands to the device? I tried it byte after byte starting from the frame head. What are the settings of the serial port (parity, stop-bit etc.)?
Im working on windows on visual studio and made a C#-Project. Here is the necessary code snippet:
Code: Select all
_serialPort = new System.IO.Ports.SerialPort(); _serialPort.PortName = "COM4"; _serialPort.Parity = 0; _serialPort.BaudRate = 115200; _serialPort.StopBits = StopBits.Two; _serialPort.DataBits = 8; _serialPort.ReadTimeout = 50; _serialPort.WriteTimeout = 50; try { _serialPort.Open(); } catch (System.IO.IOException e) { Console.WriteLine(String.Format("Exception with message {0} occured", e.Message)); return; } _continue = true; Console.WriteLine("Type QUIT to exit"); while (_continue) { message = Console.ReadLine(); if (stringComparer.Equals("quit", message)) { _continue = false; } else { byte[] bytestosend = { 0x55, 0xAA, 0x01, 0x02, 0x00, 0x01, 0x00, 0x03 }; _serialPort.Write(bytestosend,0,bytestosend.Length); } }
2018-10-05 01:05:56 The Psiphon Handler APK is a VPN application that makes your internet browsing activity a lot safer. Not only that. It also gives you the freedom to surf the web anywhere in the world. That means you can access websites that are not accessible to your country. Even the ones that are prohibited and those that are in the deep web are yours to access if you know the address. https://psiphon-apk.com/psiphon-handler-apk-download/
jackmartyn320

2018-09-21 00:42:51 Hi.
I'm sorry to tell you.
Command sending and encoding are not open source.
makermuyi
I'm sorry to tell you.
Command sending and encoding are not open source.
