的XBee双向通信的同时(发送者和接收者) [英] XBee two-way communication (sender and receiver) at the same time

查看:971
本文介绍了的XBee双向通信的同时(发送者和接收者)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比方说,我试图做一个聊天程序像在YouTube视频的 基本的XBee - 第2课 - 简单的聊天程序两个XBees之间。在模式

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.

您绝对应该花一些时间在 examples.digi.com 为一步一步的教程上设置像一个双向聊天的各种例子。该快速参考页面包括各种语言,包括的向Digi的XBee ANSI C库的C和的用于Java的XBee-API

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双向通信的同时(发送者和接收者)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆