Yep i was linking to the code as you can read it like an instruction sheet. I didnt know putty existed on linux?
Anyway serial on linux is a giant pain.. as i found out when I tried to implement ALDL and set a custom baud rate. Its ancient standards, and hasnt really been cleaned up over time.
But if you know the device (from the kernel messages or journalctl output depending on linux era information sysvinit vs systemd) you should be able to do something like:
Then you should be able to type ATZ <enter> then AT#1<enter> and get the information.
Unlike ALDL this is a standard baud rate so it should work....
To set the speed use something like screen. Major distributions have screen out of the box or have it packaged.
Here is a test on my EL6 box. The interface is a stand alone FTDI interface, as this is a dev board which provides TTL serial, and does not have the FTDI built in.
From the kernel (end of the dmesg output) shows that the interface came up as /dev/ttyUSB1 (/dev/ttyUSB0 is an RS485 connection to my solar inverter in this case):
Code: Select all
usb 4-3: new full speed USB device number 3 using ohci_hcd
usb 4-3: New USB device found, idVendor=0403, idProduct=6001
usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 4-3: Product: FT232R USB UART
usb 4-3: Manufacturer: FTDI
usb 4-3: SerialNumber: A50285BI
usb 4-3: configuration #1 chosen from 1 choice
USB Serial support registered for FTDI USB Serial Device
ftdi_sio 4-3:1.0: FTDI USB Serial Device converter detected
usb 4-3: Detected FT232RL
usb 4-3: Number of endpoints 2
usb 4-3: Endpoint 1 MaxPacketSize 64
usb 4-3: Endpoint 2 MaxPacketSize 64
usb 4-3: Setting MaxPacketSize 64
usb 4-3: FTDI USB Serial Device converter now attached to ttyUSB1
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
Then run screen on the port (screen clears the terminal when it runs):
Code: Select all
[root@gemini ~]# screen /dev/ttyUSB1 115200
Then reset the device (first attempt fails because of some data that someone else had sent down the port), then reset the device and pull some info from it. "Ctrl+a" then "\" then "y" to quit and terminate screen.
Code: Select all
ATZ
?
>ATZ
ELM327 v2.1
>ATI
ELM327 v2.1
>AT#3
PWM wiring is OK
VPW wiring is OK
ISO9141/14230 wiring is OK
CAN wiring is OK
>AT#1
Copyright (c) 2009-2018 ObdDiag.Net
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>