fbpeay.over-blog.com/
17 Décembre 2020
Aug 15, 2020. LXARDOSCOPE is a dual channel oscilloscope application for Linux, using an ATmega328 device for data acquisition, and a serial or a USB port for communication with the PC. The Look and Feel is close to a traditional oscilloscope. Sampling rate for version 0.95 is about 2350 samples per second, for.
Most embedded Linux / BSD systems such as routers, servers and nas devices comes with console interface (serial port with RS-232). BIOS can uses this, and after boot BIOS screen I/O is redirected so that you can use the device. RS-232 is also used for communicating to headless server, where no monitor or keyboard is installed, during boot when operating system is not running yet and therefore no network connection is possible. You need to use a serial cable between your computer and embedded system or server. In this post I will cover five conman utilities used for serial communication under Linux / Unix / *BSD and Mac OS X.
Type the following dmesg command:$ dmesg | egrep --color 'serial|ttyS'
Sample outputs:
You can use setserial command which is designed to set and/or report the configuration information associated with a serial port:$ setserial -g /dev/ttyS[0123]
Sample outputs:
The cu command is used to call up another system and act as a dial in terminal. cu command is installed on many Unix like systems including OpenBSD/AIX/Solaris and so on. You can use it as follows:
In this example, I'm using /dev/ttyS0 with 19200 baud-rate:
Sample outputs:
Fig.01: cu command in action
To exit enter tilde dot (~.).
Use the screen command as follows:$ screen /dev/device baud-rate
$ screen /dev/ttyS0 19200
$ screen /dev/ttySUSB0 19200,cs8
Sample outputs:
Fig.02: serial command connected to my personal router powered by dd-wrt
minicom command is a communication program which somewhat resembles the shareware program TELIX from old good MS-DOS days. Type minicom to connect:$ minicom
Sample outputs:
Fig.03: minicom connected to my m0n0wall embedded firewall
See how to install and use minicom under Linux operating systems.PuTTY is a free and open source gui X based terminal emulator client for the SSH, Telnet, rlogin, and raw TCP computing protocols and as a serial console client. It works under Linux, Unix, Mac OS X, MS-Windows and few other operating systems. See how to configure and use putty for cisco routers:
$ sudo apt-get install puttyThe tip command is used as a serial terminal. tip command can be found under AIX/HP-UX/Solairs/*BSD/Linux operating systems. The syntax is:tip -19200 device
tip -19200 s0
tip -19200 ttys0
See our previous howtos about setting and redirecting console output over serial port:
You can also use the KVM over IP client as described here for serial console redirection over IP (LAN/WAN).
If you forced to use MS-Windows, try the following free and open source serial communication programs:
Here is a quick demo of my Soekris router running monowall embedded version. The minicom is used to connect to the device and access BIOS and boot the system:
| Category | List of Unix and Linux commands |
|---|---|
| File Management | cat |
| Network Utilities | dig•host•ip•nmap |
| Package Manager | apk•apt |
| Processes Management | bg•chroot•disown•fg•jobs•killall•kill•pidof•pstree•pwdx•time |
| Searching | grep•whereis•which |
| User Information | groups•id•lastcomm•last•lid/libuser-lid•logname•members•users•whoami•who•w |
The USB serial driver currently supports a number of different USB toserial converter products, as well as some devices that use a serialinterface from userspace to talk to the device.
See the individual product section below for specific information aboutthe different devices.
Currently the driver can handle up to 256 different serial interfaces atone time.
The major number that the driver uses is 188 so to use the driver,create the following nodes:
Best usb hub for mac 2017. When the device is connected and recognized by the driver, the driverwill print to the system log, which node(s) the device has been boundto.
ConnectTech has been very forthcoming with information about theirdevice, including providing a unit to test with.
The driver is officially supported by Connect Tech Inc.http://www.connecttech.com
For any questions or problems with this driver, please contactConnect Tech's Support Department at support@connecttech.com
This driver works with all HandSpring USB, Palm USB, and Sony Clié USBdevices.
Only when the device tries to connect to the host, will the device showup to the host as a valid USB device. When this happens, the device isproperly enumerated, assigned a port, and then communication _should_ bepossible. The driver cleans up properly when the device is removed, orthe connection is canceled on the device.
When the device is connected, try talking to it on the second port(this is usually /dev/ttyUSB1 if you do not have any other usb-serialdevices in the system.) The system log should tell you which port isthe port to use for the HotSync transfer. The 'Generic' port can be usedfor other device communication, such as a PPP link.
For some Sony Clié devices, /dev/ttyUSB0 must be used to talk to thedevice. This is true for all OS version 3.5 devices, and most devicesthat have had a flash upgrade to a newer version of the OS. See thekernel system log for information on which is the correct port to use.
If after pressing the sync button, nothing shows up in the system log,try resetting the device, first a hot reset, and then a cold reset ifnecessary. Some devices need this before they can talk to the USB portproperly.
Devices that are not compiled into the kernel can be specified with moduleparameters. e.g. modprobe visor vendor=0x54c product=0x66
There is a webpage and mailing lists for this portion of the driver at:http://sourceforge.net/projects/usbvisor/
For any questions or problems with this driver, please contact GregKroah-Hartman at greg@kroah.com
This driver can be used to connect to Compaq iPAQ, HP Jornada, Casio EM500and other PDAs running Windows CE 3.0 or PocketPC 2002 using a USBcable/cradle.Most devices supported by ActiveSync are supported out of the box.For others, please use module parameters to specify the product and vendorid. e.g. modprobe ipaq vendor=0x3f0 product=0x1125
The driver presents a serial interface (usually on /dev/ttyUSB0) overwhich one may run ppp and establish a TCP/IP link to the PDA. Once thisis done, you can transfer files, backup, download email etc. The mostsignificant advantage of using USB is speed - I can get 73 to 113kbytes/sec for download/upload to my iPAQ.
This driver is only one of a set of components required to utilizethe USB connection. Please visit http://synce.sourceforge.net whichcontains the necessary packages and a simple step-by-step howto.
Red stag casino instant play. Once connected, you can use Win CE programs like ftpView, Pocket Outlookfrom the PDA and xcerdisp, synce utilities from the Linux side.
To use Pocket IE, follow the instructions given athttp://www.tekguru.co.uk/EM500/usbtonet.htm to achieve the same thingon Win98. Omit the proxy server part; Linux is quite capable of forwardingpackets unlike Win98. Another modification is required at least for theiPAQ - disable autosync by going to the Start/Settings/Connections menuand unchecking the 'Automatically synchronize …' box. Go toStart/Programs/Connections, connect the cable and select 'usbdial' (orwhatever you named your new USB connection). You should finally windup with a 'Connected to usbdial' window with status shown as connected.Now start up PIE and browse away.
If it doesn't work for some reason, load both the usbserial and ipaq modulewith the module parameter 'debug' set to 1 and examine the system log.You can also try soft-resetting your PDA before attempting a connection.
Other functionality may be possible depending on your PDA. According toWes Cilldhaire
For any questions or problems with the driver, please contact GaneshVaradarajan
Single port DB-9 serial adapter, pushed as a PDA adapter for iMacs (mostlysold in Macintosh catalogs, comes in a translucent white/green dongle).Fairly simple device. Firmware is homebrew.This driver also works for the Xircom/Entrega single port serial adapter.
Current status:
For any questions or problems with this driver, please contact BrianWarner at warner@lothar.com
Single, Dual and Quad port adapters - driver uses Keyspan suppliedfirmware and is being developed with their support.
Current status:
The USA-18X, USA-28X, USA-19, USA-19W and USA-49W are supported andhave been pretty thoroughly tested at various baud rates with 8-N-1character settings. Other character lengths and parity setups arepresently untested.
The USA-28 isn't yet supported though doing so should be prettystraightforward. Rampone cazzani serial numbers. Contact the maintainer if you require thisfunctionality.
More information is available at:
For any questions or problems with this driver, please contact HughBlemings at hugh@misc.nu
This is a single port DB-25 serial adapter.
Devices supported include:
For any questions or problems with this driver, please contact Bill Ryder.
This driver was in most part developed by Neil 'koyama' Whelchel. Ithas been improved since that previous form to support dynamic serialline settings and improved line handling. The driver is for the mostpart stable and has been tested on an smp machine. (dual p2)
Chipsets supported under CY4601 family:
Devices supported:
Most devices using chipsets under the CY4601 family shouldwork with the driver. As long as they stay true to the CY4601usbserial specification.
Technical notes:
The Earthmate starts out at 4800 8N1 by default… the driver willupon start init to this setting. usbserial core provides the restof the termios settings, along with some custom termios so that theoutput is in proper format and parsable.
The device can be put into sirf mode by issuing NMEA command:
As far as I can tell it supports pretty much every sirf command asdocumented online available with firmware 2.31, with some unknownmessage ids.
The hid->com adapter can run at a maximum baud of 115200bps. Please notethat the device has trouble or is incapable of raising line voltage properly.It will be fine with null modem links, as long as you do not try to link twotogether without hacking the adapter to set the line high.
The driver is smp safe. Performance with the driver is rather low when usingit for transferring files. This is being worked on, but I would be willing toaccept patches. An urb queue or packet buffer would likely fit the bill here.
If you have any questions, problems, patches, feature requests, etc. you cancontact me here via email:
(your problems/patches can alternately be submitted to usb-devel) https://besteup641.weebly.com/what-are-the-odds-in-roulette.html.
This driver supports the Digi AccelePort USB 2 and 4 devices, 2 port(plus a parallel port) and 4 port USB serial converters. The driverdoes NOT yet support the Digi AccelePort USB 8.
This driver works under SMP with the usb-uhci driver. It does notwork under SMP with the uhci driver.
The driver is generally working, though we still have a few more ioctlsto implement and final testing and debugging to do. The parallel porton the USB 2 is supported as a serial to parallel converter; in otherwords, it appears as another USB serial port on Linux, even thoughphysically it is really a parallel port. The Digi Acceleport USB 8is not yet supported.
Copyclip 2 clipboard manager 2 9 8. Please contact Peter Berger (pberger@brimson.com) or Al Borchers(alborchers@steinerpoint.com) for questions or problems with thisdriver.
Single port DB-9/PS-2 serial adapter from Belkin with firmware by eTEK Labs.The Peracom single port serial adapter also works with this driver, aswell as the GoHubs adapter.
Current status:
The following have been tested and work:
| [1] | Hardware input flow control is only enabled for firmwarelevels above 2.06. Read source code comments describing Belkinfirmware errata. Hardware output flow control is working for allfirmware versions. |
| [2] | Queries of inputs (CTS,DSR,CD,RI) show the lastreported state. Queries of outputs (DTR,RTS) show the lastrequested state and may not reflect current state as set byautomatic hardware flow control. |
For any questions or problems with this driver, please contact WilliamGreathouse at wgreathouse@smva.com
This is an experimental driver to provide connectivity support for theclient synchronization tools for an Empeg empeg-car mp3 player.

For any questions or problems with this driver, please contact GaryBrubaker at xavyer@ix.netcom.com
This driver is for the MCT USB-RS232 Converter (25 pin, Model No.U232-P25) from Magic Control Technology Corp. (there is also a 9 pinModel No. U232-P9). More information about this device can be found atthe manufacturer's web-site: http://www.mct.com.tw.
The driver is generally working, though it still needs some more testing.It is derived from the Belkin USB Serial Adapter F5U103 driver and itsTODO list is valid for this driver as well.
This driver has also been found to work for other products, which havethe same Vendor ID but different Product IDs. Sitecom's U232-P25 serialconverter uses Product ID 0x230 and Vendor ID 0x711 and works with thisdriver. Also, D-Link's DU-H3SP USB BAY also works with this driver.
For any questions or problems with this driver, please contact WolfgangGrandegger at wolfgang@ces.ch
This driver supports all devices made by Inside Out Networks, specificallythe following models:
For any questions or problems with this driver, please contact GregKroah-Hartman at greg@kroah.com
Interface to ISO 7816 compatible contactbased chipcards, e.g. GSM SIMs.
Current status:
For any questions or problems with this driver, please contactlinux-usb@sii.li
This driver supports any device that has the PL2303 chip from Prolificin it. This includes a number of single port USB to serial converters,more than 70% of USB GPS devices (in 2010), and some USB UPSes. Devicesfrom Aten (the UC-232) and IO-Data work with this driver, as doesthe DCU-11 mobile-phone cable.
For any questions or problems with this driver, please contact GregKroah-Hartman at greg@kroah.com
Current status:
The driver was put together by looking at the usb bus transactionsdone by Palm's driver under Windows, so a lot of functionality isstill missing. Notably, serial ioctls are sometimes faked or not yetimplemented. Support for finding out about DSR and CTS line status ishowever implemented (though not nicely), so your favorite autopilot(1)and pilot-manager -daemon calls will work. Baud rates up to 115200are supported, but handshaking (software or hardware) is not, which iswhy it is wise to cut down on the rate used is wise for largetransfers until this is settled.
See http://www.uuhaus.de/linux/palmconnect.html for up-to-dateinformation on this driver.
This driver is for the Winchiphead CH341 USB-RS232 Converter. This chipalso implements an IEEE 1284 parallel port, I2C and SPI, but that is notsupported by the driver. The protocol was analyzed from the behaviourof the Windows driver, no datasheet is available at present.
The manufacturer's website: http://www.winchiphead.com/.
For any questions or problems with this driver, please contactfrank@kingswood-consulting.co.uk.
These chips are present in devices sold by various manufacturers, such as Sybaand Cables Unlimited. There may be others. The 7720 provides two serialports, and the 7715 provides one serial and one standard PC parallel port.Support for the 7715's parallel port is enabled by a separate option, whichwill not appear unless parallel port support is first enabled at the top-levelof the Device Drivers config menu. Currently only compatibility mode issupported on the parallel port (no ECP/EPP).
If your device is not one of the above listed devices, compatible withthe above models, you can try out the 'generic' interface. Thisinterface does not provide any type of control messages sent to thedevice, and does not support any kind of device flow control. All thatis required of your device is that it has at least one bulk in endpoint,or one bulk out endpoint.
To enable the generic driver to recognize your device, provide:
where the
This driver has been successfully used to connect to the NetChip USBdevelopment board, providing a way to develop USB firmware withouthaving to write a custom driver.
For any questions or problems with this driver, please contact GregKroah-Hartman at greg@kroah.com
Greg Kroah-Hartmangreg@kroah.com
