I have 4 Nanopi Duo. All devices have the same MAC address on the wifi interface: dc:44:6d:c0:ff:ee!
How can I change the address? I'm using the Ubuntu-distro.
Interactive working via ssh is a pain. The device is responding very slow, there are large latencies.
A small test with UDP Datagrams which are sent periodically (for example every 0.2 sec) shows, that the device receives them in chunks only every 1.84 sec!
Receiver on NanoPi:
Transmitter external:
How can I change the address? I'm using the Ubuntu-distro.
Interactive working via ssh is a pain. The device is responding very slow, there are large latencies.
A small test with UDP Datagrams which are sent periodically (for example every 0.2 sec) shows, that the device receives them in chunks only every 1.84 sec!
Receiver on NanoPi:
Code: Select all
import socket
import time
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(('',2222))
t0=time.time()
while True:
m=sock.recvfrom(1024)
t=time.time()
print "%10.3f %5.3f %s" % (t,t-t0,m[0])
t0=t
Transmitter external:
Code: Select all
import socket
import time
UDP_IP = "192.168.1.166"
UDP_PORT = 2222
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
for cnt in range(100):
sock.sendto("%5d" % cnt, (UDP_IP, UDP_PORT))
cnt+=1
time.sleep(0.2)