使用USB接口的xbee ansic库(Using xbee ansic library for usb interface)

编程入门 行业动态 更新时间:2024-10-26 04:29:35
使用USB接口的xbee ansic库(Using xbee ansic library for usb interface)

我有一个覆盆子pi板通过USB适配器连接到xbee设备。 即:要访问我的xbee,它将是/ dev / ttyUSB。 我想使用xbee ansic库API来发送和接收来自/到我的xbee设备的命令。 从https://github.com/digidotcom/xbee_ansic_library.git下载了xbee ansic库代码

如何构建xbee ansic库并构建一些.so(Makefiles仅用于生成示例文件可执行文件) 我可以将它用于USB接口吗(所有示例都适用于串行接口) 如何从xbee设备查询温度?

I have a raspberry pi board conencted to xbee device via usb adapter. ie: To access my xbee, it will be /dev/ttyUSB. I want to use xbee ansic library api's to send and receive commands from/to my xbee device. Have downloaded xbee ansic library code from https://github.com/digidotcom/xbee_ansic_library.git

How to build xbee ansic library and build some .so (Makefiles are only for generating sample files executables) Can I use it for usb interface (all examples are for serial interface) How can I query temperature from xbee device

最满意答案

它旨在用于构建完整的独立程序。 它针对的是没有OS的嵌入式系统,您可以编译单个程序在处理器上运行。 我想可以修改它来构建一个库,但是在很多情况下,你需要进行编译时配置。

一旦USB接口进入XBee模块,您的USB接口就基本上是串行的。 只需指定正确的/ dev / tty设备即可。

您必须查看设备的文档。 一些模块使用远程AT命令报告其内部温度(可能高于环境温度)。

It was designed for building complete, stand-alone programs. It targets embedded systems without an OS, where you compile a single program to run on the processor. I guess it's possible to modify it to build a library, but in many instances you have compile-time configuration going on.

Your USB interface is essentially serial once it gets to the XBee module. Just specify the correct /dev/tty device.

You'll have to look up the documentation of the device. Some modules report on their internal temperature (which is likely higher than ambient) using remote AT commands.

更多推荐

本文发布于:2023-04-27 14:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1327211.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:接口   xbee   USB   ansic   interface

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!