c - 16F819 原始类型问题中的 GPS SD 卡数据记录器

标签 c gps pic

我用 PIC 16F819 做了一个 GPS 数据记录器应用程序,我的 SD 卡格式类型为 fat32。我运行我的应用程序并将 GPS 记录发送到 SD 卡。然后,我看不到任何文本文件或文件。它可能保存了 native 原始类型。我使用了十六进制编辑器,但这没有向我显示相关字符。我用过的项目http://www.gedanken.demon.co.uk/gps-sd-logger/ 我如何才能看到数据!!..

最佳答案

从链接页面(强调我的),

The data is written to the SD card in blocks of 512 bytes (the native SD card block size). One block is written each second and padded to 512 bytes with zero bytes. Starting and stopping is recorded by a blank block in the SD card. There is no file system on the SD card so it needs to be read byte by byte (easy in Linux using a USB adapter and reading the raw device). To read the card I have a simple C program that extracts the NMEA data and writes one file for each time that the box was awake.

您需要直接读取卡,这在 Linux 或 OS X 上很容易,但在不同平台上会有所不同。将二进制数据提供给他也应该发布在网站上的 C 程序。 (我没看。)

这假设硬件和一切都正常工作,这对于仅根据在线指令构建的项目来说不是一个安全的假设。也许您应该联系该页面的作者,他可能不介意提供一点帮助。

关于c - 16F819 原始类型问题中的 GPS SD 卡数据记录器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10652141/

相关文章:

android - 单击按钮时获取位置

c - #define的逻辑(microchip xc8编译器)

c++ - 为什么在使用 libusb 与 PIC 18F2550 通信时读取或写入超过 3 个字节时会出错?

c - 将链表保存并加载到二进制文件 (C)

c++ - 编译器 Baremetal (arm-none-eabi) - 编译器实现

Android 从 GPS 获取位置

c - 按位运算

c - 我如何让子线程等待一个条件并被父线程的一次调用唤醒?

c - OpenCL 中的保留数据类型是什么?

android - Android 中的 GPS 服务