玖玖爱国产-欧美日韩人妻综合-亚洲成人av免费-亚洲一二三级片-无卡无码av一区-影音 亚洲 一区


上海皕科電子有限公司

Shanghai Bitconn Electronic Co.,Ltd.

公司介紹
上海皕科電子有限公司是一家專業的芯片代理商和方案提供商。總部設在上海,是一家專業為中國電子企業提供單片機,無線RF,以太網IC及外圍器件、開發工具和相關應用解決方案的高新技術企業。公司的主要代理品牌有Digi、Wiznet、Xinnova,以及華虹MCU等。
  公司擁有優秀的銷售團隊和專業的研發部門,不但在品牌、價格、供貨、服務等方面領先業界,而且可為客戶提供及時、可行的技術支持和整體設計服務,滿足不同客戶多層次需求。

XBee 802.15.4 Addressing

發表時間:2015/03/13 00:00:00  瀏覽次數:4389  
字體大小: 【小】 【中】 【大】

The 802.15.4 RF protocol uses addressing to distinguish one radio from the next and prevents duplicate data packets. It is very important that each XBee module have a unique source address (MY) to prevent non-duplicate messages from being ignored as duplicates.

Broadcast vs. Unicast

The 802.15.4 specification has two basic forms of addressing between the modules, Broadcast and Unicast.

Broadcast:

A Broadcast message is a message that will be received by all modules on any given PAN (by default MaxStream uses the PAN ID=0x3332). In 802.15.4 a Broadcast message is sent only once and not repeated, so there is no guarantee of any given node receiving the message. In order to send a Broadcast message set the DH=0x0 and the DL=0xFFFF. With these settings all XBee modules within range of the broadcasting node will receive the message.

Unicast:

A Unicast message is a more reliable method for delivering data. A Unicast message is sent from one module to any other module based on the module's addressing. If the message is properly received the receiving radio will send back an acknowledgment or ACK. If the transmitting module doesn't receive an ACK it will attempt MAC level retires (3 MAC level retires for every transmission for a total of 4 attempts) until it receives an ACK. This greatly increases the probability of getting the data through to the destination.

16 Bit Addressing vs. 64 Bit Addressing

There are two major methods for sending a Unicast message, using either 16 bit addressing or 64 bit addressing. One or both methods can be used to communicate to an XBee module, however, 16 bit addressing can be disabled while 64 bit addressing cannot.

16 Bit Addressing:

The first method for Unicast addressing to be discussed is 16 bit addressing. This form of addressing is more convenient for smaller networks or networks with a fixed number of radios.

16 bit addressing uses a 16 bit hex number (hence the name) to determine each radios source and destination address. When setting up a network each of the XBee radios must have a unique source address. The MY parameter by default is set at zero so when using 16 bit addressing it will have to be changed to a unique number. Since the address is 16 bits in length there are 65536 unique addresses.

In order to get data transfer from one module to another, the destination address (DL in this case) of the transmitting radio must match the source address (MY) of the receiving radio. The opposite does not need to be true if the communication is one-way. When using 16 bit addressing the DH parameter must be left at its default DH=0x0.

64 Bit Addressing:

The next method of Unicast addressing is 64 bit addressing, the 64 bit addresses are IEEE MAC addresses. 64 bit addressing is typically better for very large networks or open-ended networks where modules may be added in the future. The basic concept of 64 bit addressing is the same as with 16 bit except you don't have to set the MY source address. The 64 bit source address is assigned by the IEEE to MaxStream and is guaranteed to be unique (there are 18.45e18 unique address with 64 bits).

The value of the source address can be determined by reading the SH & SL values on any module. In order to send a message to a particular module set the DH & DL of the transmitter to the SH & SL of the receiver (where DH=SH & DL=SL). Just like 16 bit addressing you don't need to set the destination addresses of the receiver if you only need one-way communication.

One may wish to disable the 16 bit addressing, and force the use of the 64 bit address. To disable, set MY=0xFFFF or MY=0xFFFE. There is no method for disabling 64 bit addressing on the XBee.


文章評論
發表評論:(匿名發表無需登錄,已登錄用戶可直接發表。) 登錄狀態: 未登錄,點擊登錄
上海皕科電子有限公司 版權所有
地址:上海市閔行區都園路4288號D區210室
電話:021-54852770
郵件:sales@bitconn.com
 
主站蜘蛛池模板: 日本在线中文 | 国产在线观看片免费人成视频 | 91视频app下载污污 | 国产精品分类视频分类一区 | 免费国产亚洲香蕉线 | 日韩精品 在线视频 | 欧美洲性受a的独特魅力与精彩演绎 | 中文字幕一区二区视频 | 九色精品 | 国产不卡网在线观看 | 欧美日韩精品在线 | 国产午夜一级淫片 | 日韩性爱视频 | 亚洲综合精品一区 | 精品国语任你躁在线播放 | 国产精品秘一区二区三区 | 午夜福利在线视频91 | 亚洲欧美中文日韩v | 欧美a级情欲片在线观看免费 | 亚洲情a成黄 | 91视频免费观看 | 手机在线播放91精品 | 欧美日韩中文字幕一区二区高清 | 免费的短视频软件哪个最好 | 91精品啪在线观看国产足疗 | 欧美a级毛欧美1级a大片免费播放 | 91本色| 日韩欧美第一页 | 日韩精品一区二区三区中文在线 | 亚洲精品一区二区五月天 | 亚洲欧美日韩国产一区 | 亚洲精品 | 国产一级二级三级在线观看 | 国产精品自在在线观看 | 夜夜影院未满十八勿进 | www.五月天色小姐 | 亚洲天下第一国产精品 | 日本A级c片免费看三区 | 天天影视网网色 | 国产伦精品一区二区三区中字 | 处女破视频91一区 |