Alibabacloud.com offers a wide variety of articles about ubuntu serial port terminal, easily find your ubuntu serial port terminal information here online.
The chip used by USB serial port converter is PL2303. You can enter the lsusb command on the UbuntuLinux terminal to find the device information # lsusb [root@www.linuxidc.com ~] # LsusbBus002Device001: ID1d6b: 0002LinuxFoundation2. 0roothubBus006Device001: ID1d6b: 000
The chip used by the USB serial
following files.
1. Modify the/etc/inittab File
This is the configuration file of the init program, used to set the default status and terminal connection. Add the following line to the file to initialize the serial port terminal:
Tty: 2345: respawn:/sbin/agetty ttyS0 9600 vt100
"Tty" indicates the ID of t
Redirect grub output to the serial port
Edit/boot/GRUB/grub. conf and add the following line. Bit Rate 115200 data bit 8-bit no-parity bit stop bit is 1
Serial -- unit = 0 -- speed = 115200 -- word = 8 -- parity = No -- stop = 1
Terminal -- timeout = 5 console serial
Dur
carrier detect signal line changes.6 comevring detects the ringing signal.7. comeveof receives the file Terminator.
Table 2 commevent communication error code constant meaning1001 comevntbreak receives an interruption signal.1002 comevntctsto clear to send times out.1003 comevntdsrto data set ready signal timed out.1004 comevntframe frame error.1006 comevntoverrun serial speed.1007 comevntcdto Carrier Detection times out.1008 comevntrxover accept buf
learn the MFC process by writing a Serial port helper toolBecause it has been done several times MFC programming, each time the project is completed, MFC basic operation is clear, but too long time no longer contact with MFC project, again do MFC project, but also from the beginning familiar. This time by doing a serial assistant once again familiar with MFC, and
steps are as follows, just need the idea is to set up the serial port device may not be ttyS2, there may be ttyUSB0 or ttyUSB1 and so on, I am here is ttyUSB0 (I use Fedora Core 8). Therefore, it is a good idea to take a look at the files under/dev first.USB to serial port mount model pl2303h1, insert the USB to the
= {. C_iflag = icrnl | ixon,. C_oflag = opost | onlcr,. C_cflag = b38400 | cs8 | cread | hupcl,. C_lflag = isig | icanon | echo | echoe | echok |Echoctl | echoke | iexten,. C_cc = init_c_cc}; The struct termios structure is used to hold all the current line settings and give the tty device a specific port. these line settings control the current baud rate, data size, data flow control settings, and many other values.
3. Member Value
(1) c_iflag flag
Notebook is not a serial port, so bought a USB to the serial port line. After the driver installation, the Super terminal to try, the development of the Board pass.
I am using XP system +vmware, how to make the virtual machine to identify this
printf ("Fcntl failed\n");
}
else{
printf ("fcntl=%d\n", Fcntl (fd,f_setfl,0));
}
}
if (isatty (stdin_fileno) = = 0) {
printf ("standard input was not a terminal device\n");
}
else{
printf ("Isatty sucess!\n");
}
printf ("fd-open=%d\n", FD);
return FD;
}
Therefore, the blocking of the serial port of Linux is set by
A recent attempt to migrate a gateway program from the VxWorks platform to the Linux platform. In the serial port has encountered some problems, here record.First, under VxWorks, use the devs command to view the device:
-> devs
DRV name
0/null 1/tyco/0 1/tyco/1 2/pcconsole/0 2/pcconsole/1
9 Host:
4/ram
11/vio
4/ahci01:1
value = 0 = 0x0
The source program used the
Suppose there is a development environment, a board, in addition to the serial port, no external access to the output device, no SD card, no network cable, this time if you want to communicate with this board of interactive files, how to do?According to the file Transfer protocol used by modem: Xmodem,ymodem,zmodem classify itXmodem: Simple and general, transmission information Unit is "packet =128b", trans
your needs. However, I think txe allows the program to have more time to fill in the TDR register to ensure that the sent data streams are uninterrupted. TC allows the program to know the exact sending end time, which facilitates the program to control the timing of external data streams.
Section 4
In general, the serial port of the stm32 microcontroller is still well understood, and programming is not co
serial port of MSP430 is complete. If you need other methods, you only need to set the register accordingly.
Uartxwritechar: Write (send) a character to the uartx module.Write character: Write a character to the serial port and send a character to the terminal t
example of reading serial data# Include/* Standard input/output definition */# Include/* Standard function library definition */# Include/* UNIX standard function definition */# Include/**/# Include/**/# Include/* File control definition */# Include/* Ppsix terminal control definition */# Include/* Error Code definition */# DefineFalse-1# DefineTrue0/*** @ BriefSet the
set to "NO", you cannot enter a character on the terminal ).
The specific configuration information is as follows:
Serial port setup [Enter]
+ ------------------------------------------------------------- +
| A-Serial Device:/dev/ttyUSB0 |
| B-LockfileLocation:/var/lock |
| C-CallinProgram: |
| D-CalloutProgram-: |
|
: respawn:/sbin/mingetty ttyS14
15: 2345: respawn:/sbin/mingetty ttyS15
16: 2345: respawn:/sbin/mingetty ttyS16
17: 2345: respawn:/sbin/mingetty ttyS17
18: 2345: respawn:/sbin/mingetty ttyS18
/* The number starting with each line (such as 11) depends on your machine settings */
2. # init q/* Make the preceding added rows take effect */
Now, you have completed the configuration of multiple user cards in the serial
This is a class that reads values from the serial port through Java extension package (javax. Comm). This class library (javax. Comm) mainly includes:Serialbean. Java (interface with other applications ),Serialbuffer. Java (the buffer used to save the data received from the serial port ),Readserial. Java (the program t
/
Step2, sudo modprobe pl2303
Step3, Sudo/etc/init.d/nfs-kernel-server restart
STEP4, reseat USB switch serial device
Step5,sudo minicom
Ok.
Below is
For the notebook holder without serial port, do hardware development is often not a serial
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.