Long time no article, years ago, the company opened a new project, and USB to the serial port communication related, the demand is the Android tablet through the USB adapter and several peripherals to communicate, has been busy to the recent, just slowly idle down, while this weekend is not busy, recording the basic flow of USB to serial communication development
1, download: sudoapt-getinstallminicom2, insert usb to the serial port line, terminal input: dmesg | grepusb ............... [7415.893942] usbserial: USBSerialDrivercore [7415.931116] usb3-1: ark31_converternowattachedtottyusb0 [
1. Download sudo apt-get install minicom
2. Insert the usb to the serial port. Terminal in
communication:Baud rate, data bit, stop bit, parityTest of serial communication:Connect the COM1 and COM2 two serial ports, write the data "Hello" in the/DEV/TTYS0 device file, and then look at the/DEV/TTYS1 device files. Serial devices can be accessed directly using Read/write.ttyS0 corresponds to com1,ttys1 corresponding to COM2.2. Common API for
Serial Communication Overview
There are many kinds of serial communication protocols, such as rs232,rs485,rs422, even the popular USB is serial communication protocol. And the application of serial communication technology is everywhere. Perhaps everybody sees most is the computer
information is displayed:
C-
Kermit8.0.211, 10
Apr 2004, for Linux
Copyright (C) 1985,
2004,
Trustees of Columbia University in
The City of New York.
Type? Or HELP
Help.
(/Root/) C-
Kermit>
##
KermitCommand Line prompt. 5. Connect to the serial port to display the system information of the Development Board.
(/Root/) C-
Kermit>
Connect ##
KermitConnect to the serial
Now the notebook is seldom with the serial port, and the serial port is to do the electronic design must be one of the communication interface, fortunately, USB to the serial port more convenient, the market commonly used USB to
There are two to control the serial port blocking (while controlling read and write): One is when opening the serial port, the Open function is O_ndelay, and the second one can be controlled by the Fcntl () function after opening the serial
Article Title: Disable Linux server through serial port. Linux is a technology channel of the IT lab in China. Basic categories including desktop applications, Linux system management, kernel research, embedded systems, and open source
A Real Server generally does not need to be connected to peripherals such as a keyboard, display, or mouse. Instead, you only need a stable operating system such as Linux and
Imports systemImports system. Io. PortsPublic class form1Private sub form1_load (byval sender as system. Object, byval e as system. eventargs) handles mybase. Load'Get valid computer serial portDim ports as string () = SerialPort. getportnames () 'must use the namespace and SerialPort to obtain the valid serial port of the computer.Dim
Linux serial port I/O mode
As we all know, in Linux, all devices exist in the form of files, and the serial port is the same.
Generally, I/O operations are implemented in two ways: blocking and non-blocking.
The concept of "timeout" is actually a processing method in blocking, and it is actually a blocking I/O mode.
I
Use Serial Port-general Linux technology-Linux technology and application information under vmwarevm. The following is a detailed description. USB to serial port settings:
In Windows, super terminals can be used to connect switches, routers, and other industrial devices. In Windows, usb-to-
#include #includeintMain () {//1. Open the serial portHANDLE HCom; HCom= CreateFile ("COM1", Generic_read|Generic_write,0, NULL, open_existing,0, NULL); if(HCom = = (HANDLE)-1) printf ("failed to open serial port!\n"); Elseprintf ("Open serial port successful!\n"); //2. Init
Article Title: tips for using serial port configuration under vmwarevm. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
USB to serial port settings:
In Windows, super terminals can
1. DescriptionTo see if the serial port is available, you can send data to the serial port such as the COM1 port, echo lyjie126 >/dev/ttys0View the serial name using Ls-l/dev/ttys* generally under the name of the
The PC uses the Ubuntu system and connects to the Router Development Board with a USB to serial cable.First confirm the Ubuntu support for USB to serial port device.1, # lsmod | grep usbserialIf there is usbserial, the system supports USB to serial port.
[email protecte
1. Configure Comm.jar.
Comm.jar is a sub implementation of the low-level interface of the API, call the local DLL file, because Java itself does not have the ability to directly access hardware settings, are implemented by invoking the local method. It can be downloaded from the official website of Java. After downloading, the Comm.jar package is imported into the engineering classpath. Put the other two very important documents Javax.comm.properties and Win32com.dll into your engineering dire
The biggest advantage of managing vswitches that can be managed through a serial port is to solve many default IP addresses of vswitches. vswitches are the transportation hubs of the campus network system, and their management features determine the overall performance of the campus network. Some manageable vswitches do not have default IP addresses, so they cannot be managed through Telnet or Web during in
This article is based on a week CC2541 notes summarySuitable for overview and quick index of knowledge--All Links:Intermediate Tutorial-osal Operating system \osal operating system-a preliminary study of experimental osal"Insert" sourceinsight-Engineering Establishment methodIntermediate Tutorial-osal Operating System (Osal System solution basic routines)Intermediate Tutorial-osal Operating system (learn more about-oled normal keys and 5-directional buttons-interrupts!!!) This system drive laye
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.