Hello guys, hope you all are well.
I have written a script that creates access points and stations and then add links.
Everything works fine until the start of CLI.
While starting the CLI it gives the "Exception in thread WifiParameter". This error appears while the network graph is being drawn. As the exception title indicates I think its some thread related issue. But, I can't pick the exact origin and solution of the issue.
I've attached the script, the error and its screenshot, and a video of the error.
I did go answers but nothing found relevant to my problem.
Kindly have a look and guide me.
Thanks in advance
The Error:
adding nodes
stations
access points
controller
*** Configuring propagation model
configuring nodes
*** STA1-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** STA2-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** STA3-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** TCPS-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** AP1-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** AP2-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** AP3-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** AP4-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** Connecting to wmediumd server /var/run/wmediumd.sock
linking
(1ms delay 1.00000% loss) (1ms delay 1.00000% loss) (5ms delay 1.00000% loss) (5ms delay 1.00000% loss) (4ms delay 5.00000% loss) (4ms delay 5.00000% loss) plotting
adding mobility
creating network
starting controller
starting nodes
*** Starting CLI:
mininet-wifi> Exception in thread wifiParameters:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 171, in parameters
self.config_links(mob_nodes)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 199, in config_links
self.set_handover(intf, aps)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 148, in set_handover
self.ap_in_range(intf, ap, dist)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 113, in ap_in_range
rssi = intf.get_rssi(ap_intf, dist)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/link.py", line 224, in get_rssi
return float(ppm(self, ap_intf, dist).rssi)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/propagationModels.py", line 32, in __init__
self.__getattribute__(self.model)(intf, apintf, dist)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/propagationModels.py", line 113, in logDistance
pl = self.path_loss(intf, ref_d)
File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/propagationModels.py", line 47, in path_loss
f = intf.freq * 10 ** 9 # Convert Ghz to Hz
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
This error appears while the graph is still under mobility drawing.