我有一个覆盆子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.
更多推荐
发布评论