

- #QINHENG ELECTRONICS HL 340 USB SERIAL ADAPTER DOWNLOAD FOR WINDOWS#
- #QINHENG ELECTRONICS HL 340 USB SERIAL ADAPTER SERIAL#
If any more information is needed, let me know. Im trying to upload code to the Arduino using ino. The actual device Im using is a clone Arduino Nano device from amazon. Im using a Raspberry Pi 2 with Raspbian Wheezy installed. Print("".format("Blah", blah.bits))Ĭount = int(str(result.registers),16) + int(str(result. lsusb brings up this for the device: QinHeng Electronics HL-340 USB-Serial adapter. Result = client.read_holding_registers(address=3909, count=2,unit=1)
HL-340 is USB<->Serial adapter and it is recognised by my kernel : I am trying to initiate communication via this adapter with Raspberry Pi B+ board, but I am constantly failing.#QINHENG ELECTRONICS HL 340 USB SERIAL ADAPTER DOWNLOAD FOR WINDOWS#
However, I am struggling to figure out which commands might open and close the relays. I have Kubuntu 14.10 development workstation and recently I have bought a QinHeng Electronics HL-340 USB-Serial adapter. Qinheng Electronics Hl-340 Usb-Serial 4,6/5 8828 votes WinChipHead USB-SERIAL Free Driver Download for Windows XP, 2000 - R340.zip (1381858).
#QINHENG ELECTRONICS HL 340 USB SERIAL ADAPTER SERIAL#
from import ModbusSerialClient as ModbusClientĬlient = ModbusClient(method='rtu',port='/dev/ttyUSB1',parity= 'E',stopbits=1,bytesize=8,baudrate=19200,timeout=3) Bus 002 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter. Hi RJ - I have a 16-channel relay with the same chip (QinHeng Electronics HL-340 USB-Serial adapter), but the board has no real documentation, so I am able to use your script to write serial commands. There have been similar questions on this site but none of them seem to have been answered. I am able to read the data on windows but RPi returns "none". It appears in lsusb as QinHeng Electronics HL-340 USB-Serial adapter and when it connects I can see it in dmesg with the following logging: 31.251098 vhcihcd vhcihcd.0: pdev(0) rhport(0) sockfd(3) 31.251544 vhcihcd vhcihcd.0: devid(65541) speed(2) speedstr(full-speed) 31. After much research I found this code on internet. I have an arduino nano clone with a CH340 serial chip. I have been trying to read data from a modbus slave device using pymodbus.
