On 07/12/2018 12:18, Carlos E. R. wrote:
The link he sent has very limited information. It appears to have an USB to RS232 converter, then the rest.
it is a CH341 USB to RS232 converter, then a serial PIC chip which controls the relay switch.
The relevant paragraph says:
The next step is to send instructions, the command format is as follows. Control command: (hexadecimal transmission, four bytes) 1. F0 A0 00 53 Disconnect command. In JOG control mode, this function is disabled. 2. F0 A0 01 53 Closed command, in different control mode, the effect is different 3. F0 A0 NC 54 Select the control mode as normal control mode 4. F0 A0 NC 55 Select the control mode for jog control 5. F0 A0 NC 56 Select the control mode for delay control 6. F0 TH TL 57 In normal control mode, set the timer time, delay time is between 1 and 65536 seconds. After the delay time arrives, the current state of the relay is inverted. The timing time is TH * 256 + TL. Timing is a one-time, set up only once.
These codes all work fine when I send them with my script. I am just confused why they have NC there instead of a hex value.
When I pose the mouse over the lines get a popup with text in what appears to be Chinese. So maybe what we get is a translation.
I checked the translations. They all say the same in English as the line which is hovered over.
There should be a link to the actual documentation of the module. As it is, it is incomplete and wrong. Maybe "normal control mode" (NC) has to be replaced with a number from a table of values somewhere.
Possibly. I have asked the seller but he does not speak great English. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org