啪啪色网-啪啪网页-啪啪网站免费-啪啪网址大全-黄免费网站-黄免费视频


上海皕科電子有限公司

Shanghai Bitconn Electronic Co.,Ltd.

公司介紹
上海皕科電子有限公司是一家專(zhuān)業(yè)的芯片代理商和方案提供商。總部設(shè)在上海,是一家專(zhuān)業(yè)為中國(guó)電子企業(yè)提供單片機(jī),無(wú)線RF,以太網(wǎng)IC及外圍器件、開(kāi)發(fā)工具和相關(guān)應(yīng)用解決方案的高新技術(shù)企業(yè)。公司的主要代理品牌有Digi、Wiznet、Xinnova,以及華虹MCU等。
  公司擁有優(yōu)秀的銷(xiāo)售團(tuán)隊(duì)和專(zhuān)業(yè)的研發(fā)部門(mén),不但在品牌、價(jià)格、供貨、服務(wù)等方面領(lǐng)先業(yè)界,而且可為客戶(hù)提供及時(shí)、可行的技術(shù)支持和整體設(shè)計(jì)服務(wù),滿足不同客戶(hù)多層次需求。

XBee 802.15.4 Addressing

發(fā)表時(shí)間:2015/03/13 00:00:00  瀏覽次數(shù):4302  
字體大小: 【小】 【中】 【大】

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.


文章評(píng)論
發(fā)表評(píng)論:(匿名發(fā)表無(wú)需登錄,已登錄用戶(hù)可直接發(fā)表。) 登錄狀態(tài): 未登錄,點(diǎn)擊登錄
上海皕科電子有限公司 版權(quán)所有
地址:上海市閔行區(qū)都園路4288號(hào)D區(qū)210室
電話:021-54852770
郵件:[email protected]
 
主站蜘蛛池模板: 我要看免费的毛片 | 日韩激情中文字幕 | 五月天丁香婷婷综合久久 | 91视频亚洲 | 丝袜美女在线 | 四虎在线永久精品高清 | baoyu121.永久免费视频 | 国产欧美精品专区一区二区 | 成人午夜性a一级毛片美女 成人小黄书 | 四虎影视永久在线精品免费播放 | 亚洲欧美一区二区三区不卡 | 一级不卡毛片免费 | 人人看人人鲁狠狠高清 | 免费看在线高清视频 | 网站免费视频高清免费 | 亚洲人人视频 | 在线看国产丝袜精品 | 日韩精品免费一区二区三区 | 色噜噜综合网 | 美国色综合 | 老子影院伦不卡欧美 | 亚洲自拍p | 麻豆网站在线免费观看 | 一级毛片看一个 | 55夜色66夜色国产精品 | 四虎影视免费观看免费观看 | 一区二区亚洲视频 | 国产成人91精品 | 色欧美亚洲 | 四虎影视在线观看 | 视频一区国产精品 | 久热中文在线 | 色综合色狠狠天天综合色hd | 九色视频在线播放 | 日本一区高清视频 | 国产 麻豆 欧美亚洲综合久久 | 亚洲夜色| 成人手机视频 | 人人射人人草 | 亚洲国产片高清在线观看 | 在线亚洲天堂 |