快捷导航
2 6131

串口通信的问题

孤云独去闲 于 2021-4-6 17:05 发表 [复制链接]
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. 能提供一个串口的通信的例程么?
举报 使用道具
| 回复

共 2 个关于本帖的回复 最后回复于 2021-4-13 15:18

贺老师 游客 发表于 2021-4-6 17:59 | 显示全部楼层
您好

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

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

串口例子可以见:https://stackoverflow.com/questi ... ng-pyserial-package
孤云独去闲 游客 发表于 2021-4-13 15:18 | 显示全部楼层
我还是安装失败,之后我重新烧写系统,再试试吧。有问题再反馈,谢谢贺老师!!!
您需要登录后才可以回帖 登录 | 点我注册

精彩推荐

  • canbus与vcu相连接,出现bus-off状态
  • 有线连接失败
  • Apex 串口通讯
  • 关于SPI通信问题咨询
  • MIIVII APEX DUAL ORIN米文域控制器产品合

明星用户