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 Arduino software. Are there any libraries and APIs?

Articles or videos would be nice.


回答1:


Yes, it is possible to send and receive data at the same time. When XBee modules are configured in "AT mode" (also referred to as "Transparent Serial"), you configure the DH and DL parameters to identify the destination node that will receive the serial data.

You should definitely spend some time at examples.digi.com for step-by-step tutorials on setting up various examples like a two way chat. The Quick Reference page includes a long list of libraries in various languages, including the Digi XBee ANSI C Library for C and xbee-api for Java.



来源:https://stackoverflow.com/questions/17563364/xbee-two-way-communication-sender-and-receiver-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!