Samraksh / eMote

eMote OS -- Multiple Ports (using .NET MF v4.3)
0 stars 0 forks source link

OMAC loses neighbors #477

Open WilliamAtSamraksh opened 6 years ago

WilliamAtSamraksh commented 6 years ago

eMote v. 68, .NOW, on-board radio, OMAC

Radio ping-pong note: Radio Ping-Pong [N].zip

One of the app notes is a radio ping-pong for two nodes (attached). Each node chooses a random number and then sends to it's neighbor. The nodes converge on a value and take turns incrementing and sending it.

After a short while, the nodes lose their neighbors. The physical setup is desktop and both are powered by USB.

Here is an MFDeploy log for one of the nodes. The other is similar.

Connecting to COM9...Connected
Program found at 0x08020000
eMote OS v68
Platform EmoteDotNow
Based on Micro Framework v4.3.0.0
Build Date Aug  7 2017 13:56:56
Software ID: 2202459cdb47d9466745158bea7c949fbde6f021-modified by: Chris
GNU Compiler version 5.4.1
Optimization: speed-optimized, no-size-optimization
Clock Calibration Not Active
Starting...
Started Hardware.

Loading start at 808c678, end 809e060
Assembly: mscorlib (4.3.1.0)
Assembly: Microsoft.SPOT.Native (4.3.1.0)
Assembly: Microsoft.SPOT.Hardware (4.3.1.0)
Assembly: Microsoft.SPOT.Update (4.3.1.0)
Assembly: MFUpdate (4.3.1.0)
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0)
Loading Deployment Assemblies.

Assembly: Microsoft.SPOT.Graphics (4.3.1.0)
Assembly: Samraksh.AppNote.Utility (1.0.0.0)
Assembly: Samraksh_eMote_DotNow (4.3.2.2)
Assembly: Samraksh.AppNote.DotNow.PingPong (1.5.6457.16834)
Assembly: Samraksh_eMote_Net (4.3.2.11) Resolving.
Ready.
Version 1.5, build 09/05/2017 09:21:08
Configuring RF231 radio with power 15, channel 2
Configuring OMAC
NeighborLivenessDelay = 620
Radio Power: 15
=======================================
MAC Type: Samraksh.eMote.Net.MAC.OMAC, Channel: 2, Power: 15, Radio Address: 29824, Radio Type: 0, Neighbor Liveness Delay: 620
=======================================

Neighbor list for Node [29824]: 0 0 0 0 0 0 0 0 0 0 0 0 
No message received ...

Neighbor list for Node [29824]: 0 0 0 0 0 0 0 0 0 0 0 0 
No message received ...
Received 10 bytes from 30907
Orig val 90, rec val 84, new val 91
Neighbor list CHANGE for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Sending message "91" to 30907
Sending message 91
Received 10 bytes from 30907
Orig val 91, rec val 92, new val 93
Sending message "93" to 30907
Sending message 93
Received 10 bytes from 30907
Orig val 93, rec val 94, new val 95

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Sending message "95" to 30907
Sending message 95
Received 10 bytes from 30907
Orig val 95, rec val 96, new val 97
Sending message "97" to 30907
Sending message 97
Received 10 bytes from 30907
Orig val 97, rec val 98, new val 99
Sending message "99" to 30907
Sending message 99

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Received 11 bytes from 30907
Orig val 99, rec val 100, new val 101
Sending message "101" to 30907
Sending message 101
Received 11 bytes from 30907
Orig val 101, rec val 102, new val 103
Sending message "103" to 30907
Sending message 103
Received 11 bytes from 30907
Orig val 103, rec val 104, new val 105
Sending message "105" to 30907
Sending message 105

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Received 11 bytes from 30907
Orig val 105, rec val 106, new val 107
Sending message "107" to 30907
Sending message 107
Received 11 bytes from 30907
Orig val 107, rec val 108, new val 109
Sending message "109" to 30907
Sending message 109

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Received 11 bytes from 30907
Orig val 109, rec val 110, new val 111
Sending message "111" to 30907
Sending message 111
Received 11 bytes from 30907
Orig val 111, rec val 112, new val 113
Sending message "113" to 30907
Sending message 113
Received 11 bytes from 30907
Orig val 113, rec val 114, new val 115
Sending message "115" to 30907
Sending message 115

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Received 11 bytes from 30907
Orig val 115, rec val 116, new val 117
Sending message "117" to 30907
Sending message 117
Received 11 bytes from 30907
Orig val 117, rec val 118, new val 119
Sending message "119" to 30907
Sending message 119

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Received 11 bytes from 30907
Orig val 119, rec val 120, new val 121
Sending message "121" to 30907
Sending message 121
Received 11 bytes from 30907
Orig val 121, rec val 122, new val 123
Sending message "123" to 30907
Sending message 123
Received 11 bytes from 30907
Orig val 123, rec val 124, new val 125
Sending message "125" to 30907
Sending message 125

Neighbor list for Node [29824]: 30907 0 0 0 0 0 0 0 0 0 0 0 
Sending message "125" to 30907
No message received ...
Sending message "125" to 30907
No message received ...

[continues for some time]

[eventually neighbor list is empty]

Neighbor list for Node [29824]: 0 0 0 0 0 0 0 0 0 0 0 0 
No message received ...
No message received ...

[continues indefinitely]