On the internet to find a few examples of traversing the serial port, either the code is not complete, or there is a bug, such as reading the serial number is more than 10.After my finishing, now share the final code, VS2008 under the compilation.This method is also useful for traversing Windows power-on startup items with just a few modifications.void Cenumportdlg::enumport (void) {HKEY HKEY; LPCTSTR lpsubkey= "hardware\\devicemap\\serialcomm\\"; if
File transmission through serial ports between the embedded Linux System and the host
I think if I want to download something from my PC to the embedded Linux System of the Development Board, many people will first think of using network tools such as TFTP SFTP to download it from the network port. But if the network is not used, what should I do if I can only download it through the serial
Application:
PPP/slip dialing to form a virtual network through which the server can communicate over the network
Related links:
Csdn post connection: http://bbs.csdn.net/topics/390314110? Page = 1
This article records a wince5.0 device based on serial port and PC dialing, but currently our wince6.0 device is also based on serial port and
PC parallel port register
This article is excerpted from Wang honghui's book "Practical Guide for developing embedded Linux kernel (ARM platform )".
On PCProgramAccess and control the pin signals of the parallel port by accessing the I/O port registers of the parallel port
Boa is a very small Web server with only about 60 kb of executable code. It is a single-task web server that can only complete user requests in sequence, rather than fork new processes to process concurrent connection requests. However, BOA supports CGI and can execute a process for the CGI program fork. Next we will explain how BOA can be transplanted and modified on a PC (in the Virtual Machine redhatas5 environment.
BOA: http://www.rayfile.com/zh-c
Read Catalogue
I. Overview
Ii. Steps of implementation
Back to top one, overviewThe Android system sets the PC IP to 10.0.2.2 For communication, and the PC does not specify an IP for the Android emulator system, so the PC does not have direct access to the Android emulator via IP, to realize the phase between PC
1. The simulator can use the serial port of the PC.
Run the following command to start the simulator and load the PC serial port:
Run emulator @ simulator name-qemu-serial COM1
2. Check whether the serial port is loaded
Run the ADB shell command to open the command line.
Che
There are many ways of communication between single-chip microcomputer and PC. The following program mainly uses the asynchronous serial communication of 51 single-chip microcomputer.I. 51 Serial Communication pins of Single-chip Microcomputer
P3.1 is the txd pin (Transfer Data) of the microcontroller, and p3.2 is the rxd pin (receive data) of the microcontroller ).
The txd pin can be used to output data from the CPU. The rxd pin can read data from th
Mysql database port from server to personal PC method bitsCN.com 1. use mysqldump
1. mysqldump backup database
1. go to the bin directory of the mysql installation file, for example, D:/mysql5.5/bin>.
2. use the mysqldump-uroot-p123 qh> d:/qh. SQL command to back up the database.
Mysqldump-uroot-p123 login to the database user is root password 123
Qh> d:/qh. SQL back up database qh to d:/qh.
This article is reproduced from http://useless20.blog.163.com/blog/static/237409982010227127576/Embedded Linux system and host transfer files via serial portI think if you want to download from the PC to the board embedded Linux system, many people will first think of TFTP SFTP and other network tools to download from the network port. But if the network can not use, only through the serial
Temperature Sensor + I2C + Serial Port + PC (pyserial) Example
The example is a bit messy, mainly for learning:
Temperature sensor DS18B20, E2PROM, I2C, serial port read/write, PC (pyserial) Data Display
SerialPort. py PC serial host program, you can set the maximum a
Serial Port and PC communication code based on AVR (uart8-bit data ),
In order to continue to improve the function based on this code in the future, we will put the code here and learn it with everyone.
/************************************AVR clock: 8.00 MHz
* 8-bit data with a baud rate of 9600 (51) and 1-bit data is stopped. When the baud rate is set to 19200, UBRR = 25, 4800 = 103
* Note: The best baud
The method proposed in this paper can be used to evaluate the one-wire (one-Bus) device for Pulse Width coding communication through PC serial port, and monitor communication errors, such as parity and response. The hardware interface with the PC is the maxcompute driver/receiver, and the following device in this example is the TMP141 Temperature Sensor of Texas
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.