contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.72k stars 2.58k forks source link

" / examples / antelope / netdb" does not work for Real Telosb #786

Closed alanxuefei closed 10 years ago

alanxuefei commented 10 years ago

Dear All

netdb can run at Cooja simulator, but it does not work for real telosb mote.

First, I assign the motes with IDs using the following command.

 sudo make TARGET=sky burn-nodeid.upload nodeid=4 
 sudo make TARGET=sky burn-nodeid.upload nodeid=51 

Second, I upload netdb-client.c and netdb-server.c into the motes respectively.

Then, the result is

Client mote can send query to server mote, and server mote can execute the query. After that, server mote try to send the data. But it does not work and shows timeout.

Regards Alan Xue

nvt commented 10 years ago

You'll probably have to enable debugging at a lower layer (e.g., in core/net/mac/{csma,framer-802154}.c)to see whether things look OK. Because the example works in Cooja, it may be a problem with the network. Have you tested whether other examples using radio communication work in your network?

alanxuefei commented 10 years ago

The radio communication also does not work. However, both can work at Cooja very well

cmorty commented 10 years ago

@alanxuefei Try playing the the CCA_THRESHOLD. And feel free to make it dynamic in ConitkiMAC. ;)