ArticleDirectory
Method -:
Method 2:
Use Windows APIs
MSComm control used in MFC
Use USB to serial drive cypress_m8.ko (kernel> = 2.6)
Use hiddev
Introduction: USB 2com is a virtual serial port driver of USB to serial port converter.
Program (Win
#include /* For UART0 serial port configuration, and Operation function Description *//* First, UART0 initialization */ voidUart0_idev_init (void) {P3sel |= BIT4 + BIT5;//1. Select P3.4 and P3.5 to do UART0 communication portME1 |= UTXE0 + URXE0;//2. Enable USART0 to be sent and acceptedUCTL0 |= CHAR;//3. Select 8-bit charactersUTCTL0 |= SSEL0;//4. Select Clock Source, Aclk:ssel0
Some common serial port properties of the Setup method.
Set flow control
Termios_new.c_cflag = ~crtscts; Do not use flow control
Termios_new.c_cflag |= crtscts; Using hardware flow control
Termios_new.c_iflag |= ixon| Ixoff| Ixany; Using Software flow control
Masked character size bit
Termios_new.c_cflag = ~csize;
Set data bit size
Termios_new.c_cfl
Welcome to the independent blog:
Http://junkor.info
First of all, standing on the shoulders of giants, the first half is the previous article. I am lucky to be guided by this article, set successfully, and pass the test. The second part is the configuration of the serial port tool. Original article address
$1. Download: sudo apt-Get install minicom2, insert USB to ser
Environment:Alicloud ok6410a Development Board, Windows ce6.0 System
Recently, GPRS communication has been implemented, but the GPRS module (q2403a) on hand is a five-line serial port (rxd, txd, Gnd, RCS, CTS), and the boss is reluctant to buy new modules. Therefore, you need to change the debug serial port COM1 to a c
This article is original from Xiao Li's column and needs to be reproduced with the source: [http://blog.csdn.net/softwave/article/details/8907599]
Recently, I am working on a project that requires the use of Java to read the small data of the pound tower. This requires the use of Java to communicate with the serial port. Serial
MX6 serial port command line operation of CPU clock speed, mx6 serial port
When using imx6 for project development, you may need to check the clock speed of imx6 or set the clock speed of imx6. The following describes how to operate the imx6 frequency on the serial
Uboot and kernel modify and print the serial port and ubootkernel serial port
Here I use s5pv210, which originally outputs COM2. Now I want to change it to COM0 output, to view the uboot command line information and the kernel startup information, we should make the following changes:
1. Changes to uboot
We modify t
Android Serial Port Data Reading service, android serial port
2016-09-1813: 10: 03
Inherit from the Service and define the abstract method onDataReceived. The subclass obtains the received data callback by implementing the abstract method.
1 package com.zrsoft.liftad.serialport; 2 3 import java.io.File; 4 import java
From: http://blog.csdn.net/dongliqiang2006/archive/2009/11/28/4889440.aspx
Steps for downloading a program through a serial port in dm355Check whether C:/Windows/Microsoft. NET/framework/v2.0.50727 or a later version is installed on the computer. Install the. NET component before installation.
Dm35x_flashandbootutils_201710.tar.gz
Decompress the file and rename the file name dm35x_flashandbootutils_000010 t
Development Board model: friendly micro2440 (with a 7-inch screen -- awesome !)
Bootload: Vivi
System: Linux (The Development Board comes with 2.6.29)
Reference: http://www.100ask.net/showtopic.aspx? Forumid = 2 topicid = 15 go = next
Http://www.linuxforum.net/forum/showflat.php? Cat = board = embedded number = 606916 page = view = SB = O = fpart = 1 Vc = 1
Due to work needs, I studied how to release the debug serial
[Reprint] How to receive a complete data packet parsing in the serial port, serial port data packet
The serial port is used as the transmission medium to introduce how to send and receive a complete data packet. The process involv
Serial Port printing information can be added to any code to facilitate debugging. You do not have to have a printf statement. This can be implemented in a simple way. First, you need to complete the serial port register initialization, including the input and output enabling, data bit and stop bit, baud rate, interrup
1, plug in the USB to the serial cable (in the VirtualBox Setup Panel USB option plus the corresponding USB to the serial port option, but this driver is our WIN7 inside)2. (check the corresponding usb-serial Controller in "Device" and "Assign USB device" above the Ubuntu window)Note: There may be an error when choosin
Java serial port communication program (Serial Port Package transplantation) on the arm board-general Linux technology-Linux technology and application information. The following is a detailed description. The embedded linux 2.4 kernel operating system is installed on the hhh2440 Development Board. Now the jamvm and cl
A detection function that determines whether the serial port receives new data. The serial port receives the detection function.
Unsigned char Rxdsuc_test (){Unsigned char noRxd_time = 10; // It is deemed that the data has been accepted after 10*5 ms and the next character is not received.If (newRxd_fla
Properties set in the control serial port
Cache size. It is recommended that the data received per second be more than 10 times
Important: this setting is important when the data volume received in the cache triggers a notification event. It is best to set no more than 10 trigger events per second. That is, when the amount of data received per second is 1000, set 100 ~ 400 trigger.
This problem is time-con
The RS232 interface is a standard for serial communication jointly developed by the American Association of Electronic Industry (EIA) and bell system, modulation regulator manufacturers and computer terminal manufacturers in 1970.
Its full name is "Technical Standard for Serial Binary data exchange interfaces between data terminal devices (DTE) and data communication devices (DCE)", which requires a 25-pin
1. Check whether the kernel supports USB to serial port
2. Set minicom
3. link the android Development Board and restart the system.
Note:
1, if not normal link, please check the serial first TXD-RX, RXD-TX, GND-GND is correct, link OK, you can see the onlie, instead of offline. See the figure below:
2. If the minicom file is garbled, enter gedit.
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.