Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: sniffer shows packets but the actual data sent not seen in any of the fields of captured packets.

$
0
0

Hi Lakshman,

Using the following code I cannot see any packet in channel 12 from sniffer. By default I could see data in channel 15 i.e. just with out the code to change the channel.

uint8 ch = 12; //channel number
uint32 tmp32 ;
  // Switch channel                                   
_NIB.nwkLogicalChannel = ch;                                    
MAC_MlmeSetReq( MAC_LOGICAL_CHANNEL, &ch);
    // Our Channel has been changed -- notify to save info into NV                                   
ZDApp_NwkStateUpdateCB();                                   
 // Reset the total transmit count and the transmit failure counters                                   
_NIB.nwkTotalTransmissions = 0;                                                                         
 tmp32 = ((uint32)1 << ch); //update the channel mask                                                                          
 (void)osal_nv_write(ZCD_NV_CHANLIST, 0, 4, &tmp32);*/


       
    
       
   // unsigned char packet[40] = {0xFF, 0xFF, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xFF, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xFF, 0xFF, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xFF, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};  
unsigned char packet[40] = {0xFF, 0xFF, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a};  

  TransmitApp_DstAddr.addrMode = (afAddrMode_t)afAddrBroadcast;     //   AddrBroadcast;  //(afAddrMode_t)AddrNotPresent;
  TransmitApp_DstAddr.endPoint = 0;
  TransmitApp_DstAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR; //0;
  for (lv=0; lv<1000; lv++){
   
    for (i=0; i<1000; i++){vx= vx+1; vx= vx-1;}; //Delay
   
    tmp = AF_DataRequest( &TransmitApp_DstAddr, &TransmitApp_epDesc,
                           TRANSMITAPP_CLUSTERID_TESTMSG,
                          20, packet,
                          &TransmitApp_TransID,
                           TRANSMITAPP_TX_OPTIONS,
                           AF_DEFAULT_RADIUS );
  }

 

Any suggestion what I'm missing?

Regards,

Vamsi.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>