Use minicom in linux to receive gps signals

Source: Internet
Author: User
In linux, use minicom to receive gps signals-Linux general technology-Linux programming and kernel information. The following is a detailed description. Author: dahui
I have recently started embedded development. Since I have not started, I can say that it is only step-by-step. The first two articles are good articles that I saw when searching for relevant materials, let's turn it over. It will be a little more convenient later. I will send the logs for the past two days and share them with my friends. They are all very difficult problems at the beginning, no one wants to write the dishes online ......

GPS is easy to use in windows, with drivers installed,
Open the Super Terminal and select COM5 (depending on the USB port). The baud rate is 4800 data bit 8 parity check does not stop bit 1 data stream control does not
Able to receive data transmitted by GPS

Use GPS in linux:
Mount the drive make inst;

Connect gps to the host, set serial port in minico-s,/dev/ttyS0
The problem occurs because the serial port used in windows is com5, which helps you set the serial port to/dev/ttyS4.
Set the baud rate to 4800 8n1
Save as df1 and exit
The error "/dev/ttyS4" cannot be opened and the file does not exist when the minicom file is not exited.

......

Failed after several attempts. In theory, the functions of minicom and the Super Terminal should be the same. Therefore, the reason for the query is that in windows, USB communication is processed through serial ports. In linux, USB ports are different from hardware files in serial ports,

Solution Process:

# Cd/dev
View USB related files in the folder
# Ls-l | less

# Ls-l * USB *

Run the command to view the file attributes of/dev/ttyS0.
# Ls-l/dev/ttyS0
The file property is uucp.

Find a uucp File
# Ls-l * USB *
The file should be/dev/ttyUSB *

Set the serial port of minicom to/dev/ttyUSB0

Successful!

Conclusion:
Because the experiment is performed on a virtual machine, the hardware name is very different from that under win. In win, USB communication is used as serial communication processing. In linux, the processing is different from that in win.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.