简体   繁体   English

gps模块的Linux设备驱动程序

[英]Linux device driver for a gps module

I am fairly new to linux, I am currently trying to integrate a gps module to a linux ARM controller. 我对linux还是很陌生,我目前正在尝试将gps模块集成到linux ARM控制器中。 The gps is ublox NEO M8N and I have it connected to UART6. gps是ublox NEO M8N,我已将其连接到UART6。 I need help to start communicating to the gps. 我需要帮助才能开始与GPS通讯。 I have searched for some documents but I couldn't find any relevant ones. 我已经搜索了一些文档,但是找不到任何相关文档。 I understand that I first need to write a kernel device driver for it, however I have no idea where to start. 我知道我首先需要为其编写一个内核设备驱动程序,但是我不知道从哪里开始。 Could somebody point me to the right direction or tell me how I can write the device driver and start reading the latitude and longitude from gps. 有人可以指出我正确的方向还是告诉我如何编写设备驱动程序并开始从gps中读取纬度和经度。

The ublox GNSS receiver support seems to be available from 4.19 Linux kernel release. ublox GNSS接收器支持似乎可以从4.19 Linux内核发行版中获得。 You can see the driver here and it's device tree compatible ID's points to the support of ublox Neo M8 here . 您可以在此处看到驱动程序,它的设备树兼容ID指向此处的ublox Neo M8支持。

Also have a look at the device tree binding documentation here . 也可以在此处查看设备树绑定文档。

If you need help understanding device trees, see Thomas Petazzoni's presentation here . 如果您需要帮助来了解设备树,请参阅此处的 Thomas Petazzoni的演示。 I am assuming you know how to know compile and deploy custom kernel images for your device. 我假设您知道如何为您的设备编译和部署自定义内核映像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用gcc的Linux设备驱动程序模块编译 - Linux device driver module compilation using gcc Linux内核模块通过USB读出GPS设备 - Linux kernel module to read out GPS device via USB 什么是Linux设备驱动程序代码中的MODULE_ALIAS? - What is MODULE_ALIAS in Linux device driver code? 在Linux上挂载块设备驱动程序模块停止工作 - Mounting block device driver module on linux stopped working 模块 init 函数除了在 linux 设备驱动程序中打印之外什么都不做,驱动程序是否在设备树解析期间初始化? - module init function does nothing but a print in linux device driver, is the driver initialized during device tree parsing? Linux 中带有“module_pci_driver”的 pci 设备驱动程序和带有“__init()”但没有“module_pci_driver()”的 pci 驱动程序之间的区别 - difference between a pci device driver with “module_pci_driver” and a pci driver with “__init()” but without “module_pci_driver()” in Linux linux中的scull设备驱动程序 - scull device driver in linux 在Linux中编写设备驱动程序 - Writing Device Driver in Linux Linux设备驱动程序 - Linux Device Driver 如何知道是否有一个(嵌入式/内核模块)设备驱动程序来控制运行中的Linux上的设备? - How to know if there is a (compiled in/kernel module) device driver controlling a device on a running linux?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM