Home › Forums › Voltage Regulator Support › 200310 UART communication
-
AuthorPosts
-
James
February 10, 2023 at 6:59 pmPost count: 0Hi, I’m trying to control the 200310 over UART.
I have one of the documents describing the UART protocol. I’ve just been trying to read the voltage setting – sending ‘aru\r\n’ . I’ve set the address to 00 on F3 with the mini-module. I’ve tried both 4800 and 9600 as the baud rate. And I’ve tried swapping the TX and RX pins in case I have them backwards, but I can’t get any kind of response.
The UART document calls out 4800 baud and 3.3V, but does not mention parity, stop bits, or data bits. I assumed no parity, 8 data bits, 1 stop bit. Could you please confirm this?
I’ve been using a logic analyzer to confirm that I’m sending out the correct bits
Is there anything that I’m forgetting? Does the mini-module need to be in a particular mode?
Thanks for the help!
SNJ
April 19, 2023 at 1:26 amPost count: 0tinker
April 20, 2023 at 5:28 amPost count: 0Received, from Amazon, my 200310 4 days ago.
I can connect, but the 200310 erratically responds.
First, the response is not only not the expected format, but the length of the response is different every time. (see the discord link for code and example output)Also, often (every 15 min?) I need to power off the 200310 because it stops responding to the serial input.
@James, I had to set the F3 address to 00. Baud: 9600 N81 (see code).
I have noticed that using only Newline gives better behavior generally than using both NL & CR.
The original link for this product is dead. Please post the new link!
tinker
April 20, 2023 at 5:35 amPost count: 0I found, in an answer from Sep 2022, the UART link, but it is clearly old since it still states 4800 Baud rate and I know that is wrong (my converter fails at any rate except 9600)
For what is worth, the link:
https://www.droking.com/cs/wp-content/uploads/2022/09/200310-communicate.pdftinker
April 23, 2023 at 7:43 pmPost count: 0SUCCESS through trial&error I was able to overcome the inconsistencies in the termination strings and the command patterns. I stuck everything in an instructable so I can include images.
https://www.instructables.com/Control-Power-Supply-Via-UART/
-
AuthorPosts