Category : beacon

I wrote an application that reads location from bluetooth beacons in 1D (Raspberry shows distance to chosen beacon), 2D (3 beacons show X,Y Raspberry position), 3D (4 beacons show X,Y,Z Raspberry position). I use a raspberry to receive data from beacons and then send that data to my laptop via udp port. The location information ..

Read more

Using the code from this topic (Tools to determine exact location when using ibeacons)I was able to create a 2D location using a raspberry and 3 beacons. Could someone please guide me on how to convert this to a 3D location using 4 beacons? I found this article (https://journals.sagepub.com/doi/pdf/10.1177/1550147716671720), and this topic (https://www.mathworks.com/matlabcentral/answers/428304-how-to-calculate-3d-positions-using-the-distance-from-3-separate-points-in-space), but unfortunately ..

Read more

My raspberry code for one beacon: while True: try: devices = scanner.scan(1) for beacon in devices: if beacon.addr == ‘d0:f0:18:44:0b:82′: bc = "{}|{:d}".format(beacon.addr,beacon.rssi) sock.sendto(bc.encode(), server_address) except: print("Error") pass Windows code for one beacon: while True: bc, address = sock.recvfrom(4096) # buffer size adres, sygnal = bc.split(b’|’) # split print(adres, sygnal) This code works perfectly for ..

Read more

I made beacon scanner and it works fine, but I have problem with GUI. My code: def move(): bc, address = sock.recvfrom(4096) # buffer size adres, sygnal = bc.split(b’|’) # split test = KalmanFilter.KalmanFilter(0.008, 0.1) # kalman filter distance = test.filter(float(sygnal)) if distance < -40.0: label.place(x=50,y=220) root.update() elif distance > -40.0 and distance < -45.0: ..

Read more

I have a problem with data transfer. Raspberry is sending RSSI from beacon like this: s = "{}|{:d}".format(beacon.address,beacon.rssi) sock.sendto(s.encode(), server_address) The server (windows) receives the data like this: while True: s, address = sock.recvfrom(4096) #buffer size is 4096 print(s) Everything is working as it should: b’d0:f0:18:44:0b:82|-44′ But now I would like to be able to ..

Read more