问题描述
比方说,我试图做一个聊天程序像在YouTube视频的 的
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.
在这段视频中,他解释说,一个的XBee是发送的Hello world使用Arduino的另一个的XBee发件人。
In this video, he explained that one XBee is a sender which sends "Hello world" to the another XBee using Arduino.
然而,为的XBee能够同时发送和接收数据?能够沟通,协调和周围的其他方式的路由器?
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?
此外,我想我自己写的软件来接收和发送数据,而不是使用Arduino的软件。是否有任何库和API?
Additionally, I want to write my own software to receive and send data and not using Arduino software. Are there any libraries and APIs?
文章或视频将是很好。
推荐答案
是的,有可能在同一时间发送和接收数据。当的XBee模块配置AT模式(也被称为透明串行),您可以配置DH和DL参数来标识将接收串行数据的目的节点。
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.
您绝对应该花一些时间在为一步一步的教程上设置像一个的各种例子。该页面包括各种语言,包括的的C和的。
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.
这篇关于的XBee双向通信的同时(发送者和接收者)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!