XBee

pySerial data received from XBee not properly displayed

北慕城南 提交于 2019-12-11 02:53:45
问题 I am trying to get multiple XBees running as sensors and output devices to send their samples to a coordinator XBee hooked up as below and to turn things on and off on these remote XBees when instructed to. This 'received data' problem of mine seems similar to Stack Overflow question pySerial and reading binary data , but I do not consider it answered by that problem and its resolution. So what steps will reproduce the problem? Using python-xbee (ver 2.1.0, or 2.0.0), pySerial latest version

XBee Linux Serial Port on Raspberry Pi

不想你离开。 提交于 2019-12-11 00:55:14
问题 I have 2 Adafruit XBee 2 Modules each connected with 1 FTDI cable (ttyUSB0 and ttyUSB1)to the Raspberry Pi via a USB hub. I configure both XBee modules independently to be on the same PAN and then I try to read in a while loop with one, and write a simple message in a while loop in the other. For some reason I never read anything from the second port. Here is the test code I am using. Configure: xbee::xbee(char* usbPort) { /* -> AT (check if xbee modem is responding) <- OK -> ATID (get

Xbee Node Discovery Response

感情迁移 提交于 2019-12-10 11:58:39
问题 I'm trying to discover devices, from a coordinator, in my network. So I sent an ND command to the coordinator and I'm correctly receiving response from other Xbee. The next step will be to store the information I've received in a web application, in oder to send commands and data. However, what I'm still missing is some parts in the frame respose. So far I've mapped the frame like this: 1 7E start frame ===== =================== MESSAGE LENGHT 2-3 0x00 0x19 -> 25 ===== ===================

Python xbee library no output for incoming frames

大憨熊 提交于 2019-12-08 04:41:20
问题 I am using 2 XBee pro S1, I want to read the packets received by the co-ordinator on my PC , it is enabled with API_2 and all other connections are done properly, I can see the packets with XCTU, I am using the python xbee library , but it gives no output : The Code : import serial.tools.list_ports from xbee import XBee import serial ports = list(serial.tools.list_ports.comports()) for p in ports: #print the list of ports print p def toHex(s): lst = [] for ch in s: hv = hex(ord(ch)).replace(

XBee two-way communication (sender and receiver) at the same time

人盡茶涼 提交于 2019-12-07 17:49:11
问题 Let's say I am trying to make a chat program like in the YouTube video XBee Basics - Lesson 2 - Simple Chat Program Between Two XBees in AT Mode . In this video, he explained that one XBee is a sender which sends "Hello world" to the another XBee using Arduino. However, is the XBee able to send and receive data at the same time? Are the routers able to communicate to the coordinator and the other way around? Additionally, I want to write my own software to receive and send data and not using

XBee two-way communication (sender and receiver) at the same time

泄露秘密 提交于 2019-12-05 18:48:32
Let's say I am trying to make a chat program like in the YouTube video XBee Basics - Lesson 2 - Simple Chat Program Between Two XBees in AT Mode . In this video, he explained that one XBee is a sender which sends "Hello world" to the another XBee using Arduino. However, is the XBee able to send and receive data at the same time? Are the routers able to communicate to the coordinator and the other way around? Additionally, I want to write my own software to receive and send data and not using Arduino software. Are there any libraries and APIs? Articles or videos would be nice. Yes, it is

Converting struct to byte and back to struct

我与影子孤独终老i 提交于 2019-12-03 03:45:33
问题 I'm currently working with Arduino Unos, 9DOFs, and XBees, and I was trying to create a struct that could be sent over serial, byte by byte, and then re-constructed into a struct. So far I have the following code: struct AMG_ANGLES { float yaw; float pitch; float roll; }; int main() { AMG_ANGLES struct_data; struct_data.yaw = 87.96; struct_data.pitch = -114.58; struct_data.roll = 100.50; char* data = new char[sizeof(struct_data)]; for(unsigned int i = 0; i<sizeof(struct_data); i++){ // cout <

ZigBee的发展也有“碎片化”

依然范特西╮ 提交于 2019-11-27 10:23:15
ZigBee 的发展也有“碎片化” ——看 ZigBee 在各个领域的发展 关键字: ZigBee,Profile, 应用标准 , 物联网 , 碎片化 引言 2002 年 ZigBee 联盟成立,符合 ZigBee 标准的产品在之后的两年里陆续面世,刚诞生的 ZigBee 被广泛看好并得到了诸多溢美之词。能组成一个自组织,低功耗,自修复的巨大无线网络,传感网络一直是一个客观需求,凭借当时已经提出并广泛知悉的 Bluetooth 和 WiFi 却不太现实, Bluetooth 弱在不能组网,发展到现今的 Bluetooth 也还是一样,而 WiFi 的劣势是功耗和成本。而传感网络需要大量的节点和灵活的布设,有线的方式则最后的退路,无线才是王者。当时 IEEE   802.15 的标准已经相续制定, ZigBee  联盟不再从头制定协议,而是在 IEEE802.15.4 的基础增加支持更多网络节点的网络协议以达到最初的目的。  ZigBee 出生时的背景大致如此,之后的发展则与愿景可谓大相径庭。在中国热火的物联网大潮背后, ZigBee 的机会在哪里? 图一  ZigBee 愿景之一是让你掌控家中一切 ZigBee 的发展 在 ZigBee 的发展里程中已经经过的4个重要的里程,对应的成果大致是4个 ZigBee 协议版本,分别是 ZigBee   v1.0(2004),