查看: 62|回复: 2

串口通信的问题

[复制链接]

8

主题

24

帖子

72

积分

科员

Rank: 2

积分
72
发表于 2021-4-6 17:05:48 | 显示全部楼层 |阅读模式
1.安装minicom失败
nvidia@miivii-tegra:~$ sudo apt-get install minicom
[sudo] password for nvidia:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package minicom is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'minicom' has no installation candidate

2.安装cutecom同样失败
nvidia@miivii-tegra:~$ sudo apt-get install cutecom
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package cutecom

3.编译minicom源码,编译通过,运行失败
nvidia@miivii-tegra:~$ sudo minicom
Lockfile is stale. Overriding it..
Segmentation fault
nvidia@miivii-tegra:~$ sudo minicom -s
Segmentation fault

4.编译cutecom源码,编译失败,缺少QT的库
nvidia@miivii-tegra:~/cutecom/build$ cmake ..
CMake Error at CMakeLists.txt:26 (find_package):
  By not providing "FindQt5SerialPort.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5SerialPort", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5SerialPort"
  with any of the following names:

    Qt5SerialPortConfig.cmake
    qt5serialport-config.cmake

  Add the installation prefix of "Qt5SerialPort" to CMAKE_PREFIX_PATH or set
  "Qt5SerialPort_DIR" to a directory containing one of the above files.  If
  "Qt5SerialPort" provides a separate development package or SDK, be sure it
  has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/nvidia/cutecom/build/CMakeFiles/CMakeOutput.log".

5. 能提供一个串口的通信的例程么?
回复

使用道具 举报

0

主题

92

帖子

200

积分

科长

Rank: 3Rank: 3

积分
200
发表于 2021-4-6 17:59:46 | 显示全部楼层
您好

我们确认了一下,sudo apt install minicom
是可以找到并且安装包的。

请确认一下您的源是否设置正确。
https://developer.ridgerun.com/w ... rd%2FSerial_Console

串口例子可以见:https://stackoverflow.com/questi ... ng-pyserial-package
回复

使用道具 举报

8

主题

24

帖子

72

积分

科员

Rank: 2

积分
72
 楼主| 发表于 4 天前 | 显示全部楼层
我还是安装失败,之后我重新烧写系统,再试试吧。有问题再反馈,谢谢贺老师!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点我注册

本版积分规则


快速回复 返回顶部 返回列表