Changes

Fixme.ch:OldWiki/Kaba

4,989 bytes added, 20:08, 2 February 2015
/* RS-485 serial adapter */
== RS-485 serial adapter ==
==== Specs ====
* Have [http://www.ebay.com/itm/381097954687 USB to RS485 USB-485 Converter Adapter]
* CH341D chipset, 75bps - 115200bps, 1200m(max)
* USB Product ID: 0x7523, Vendor ID: 0x1a86.

New USB to RS485 USB-485 Converter Adapter Support Win7 XP Vista Linux Mac OS

Item Description:
100% Brand new and high quality.
USB to RS485 Converter Adapter
USB connector: to your PC
RS485 connector: to your RS485 device
No need external power, powered by USB port
Fully compliant USB 2.0 standard , backward compatible with USB1.1

Specification:
Dimension:6.0 x1.8x1.4cm
Color: Black
Support System: Windows XP , Vista, Windows 7 , Linux , MacOS , and WinCE5.0 drive
Supports baud rate range : 75bps - 115200bps , up to 6Mbps
Supports Plug , Play and hot-swap ( USB side) ;
Better than using '''CH341D chip''' or similar chip to support the laptop USB port .
Communication distance up to 1.2KM, with anti-jamming performance of industrial site ;
Work temperature range: -40°C ~ +85°C
Communication distance :1200m(max)

Applications:
All kinds with RS485 port device parameter settings , data communication
Short distance , such as parameter settings of the computer peripheral equipment , the use of common data lines can be .
A and A port of the device when the wiring is connected , B and device B connected . Some devices D + A and D, - B .
LED display of communication data
Machine PLC data reading and writing
Monitoring data read and write , and PTZ control
Centralized control of household electrical appliances
Access Control System ; card; A variety of industrial automation ; instrumentation; Parking ; bus fees; Dining Hall ; staff attendanceHighway toll station; ATM machine

==== Linux ====
You can use cu or minicom, possibly even screen. Line in use error: [https://bugs.launchpad.net/ubuntu/+source/gtkterm/+bug/949597]
apt-get install cu setserial
gpasswd --add ${USER} dialout
cu -l /dev/ttyUSB0


Hardware info
root@ubuntu:~# dmesg | egrep --color 'serial|ttyS'
[ 13.850611] usbcore: registered new interface driver usbserial
[ 13.850635] usbcore: registered new interface driver usbserial_generic
[ 13.850654] usbserial: USB Serial support registered for generic
[ 13.854053] usbserial: USB Serial support registered for ch341-uart

root@ubuntu:~# lsusb -v
Bus 002 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1a86 QinHeng Electronics
idProduct 0x7523 HL-340 USB-Serial adapter
bcdDevice 2.54
iManufacturer 0
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 96mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 1
bInterfaceProtocol 2
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1


'''Mac''' plug and play [http://www.staarcom.com/software/WCH341-Terminal/index.html WCH341-Terminal]

'''Linux'''
Anonymous user