zigbee吧 关注:5,015贴子:18,675
  • 10回复贴,共1

求救:cc2530广播组网问题

只看楼主收藏回复

广播组网实验中,有一个协调器,两个节点,两个节点发送相同信息,传给协调器,协调器通过串口显示在串口调试助手上,那么,请问,如何区分这两个信息到底是谁传送的?如何修改代码?(我用IAR软件烧录zigbee代码文件)


IP属地:广东1楼2017-05-23 17:16回复
    数据包结构体里有个成员是短地址,借此可判断


    IP属地:广东来自Android客户端2楼2017-05-23 18:52
    回复
      也可以在发信息是加上校验位


      来自手机贴吧3楼2017-05-23 18:55
      回复
        需要联系,qq:1286162155


        来自Android客户端4楼2017-05-24 01:29
        回复
          能分享一下你的程序么?1905734122@qq.com
          谢谢


          IP属地:河南5楼2017-06-03 17:44
          收起回复
            程序可以给我看看吗??64022020@qq.com


            来自Android客户端6楼2017-06-04 23:21
            回复
              typedef struct
              {
              osal_event_hdr_t hdr; /* OSAL Message header */
              uint16 groupId; /* Message's group ID - 0 if not set */
              uint16 clusterId; /* Message's cluster ID */
              afAddrType_t srcAddr; /* Source Address, if endpoint is STUBAPS_INTER_PAN_EP,
              it's an InterPAN message */
              uint16 macDestAddr; /* MAC header destination short address */
              uint8 endPoint; /* destination endpoint */
              uint8 wasBroadcast; /* TRUE if network destination was a broadcast address */
              uint8 LinkQuality; /* The link quality of the received data frame */
              uint8 correlation; /* The raw correlation value of the received data frame */
              int8 rssi; /* The received RF power in units dBm */
              uint8 SecurityUse; /* deprecated */
              uint32 timestamp; /* receipt timestamp from MAC */
              uint8 nwkSeqNum; /* network header frame sequence number */
              afMSGCommandFormat_t cmd; /* Application Data */
              } afIncomingMSGPacket_t;
              typedef struct
              {
              union
              {
              uint16 shortAddr;
              ZLongAddr_t extAddr;
              } addr;
              afAddrMode_t addrMode;
              uint8 endPoint;
              uint16 panId; // used for the INTER_PAN feature
              } afAddrType_t;
              根据afIncomingMSGPacket_t结构体中的srcAddr中的addr可以判断~


              IP属地:北京7楼2017-06-09 09:46
              收起回复