UWB Beacons not ranging or positioning, fixed

don’t know what topic area, try proximity this time…

using UWB beacons, sdk not giving expected results

⚡️  To Native ->  sduwb startScanning 115057199
start scanning called
⚡️  TO JS undefined
Discovered Device: 8ff093967378b3839d6298212516b53e rssi: -71
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959180>"
⚡️  TO JS {"type":"discover","device":"8ff093967378b3839d6298212516b53e","distance":-71}
⚡️  TO JS {"type":"discover","device":"8ff093967378b3839d6298212516b53e","distance":-71}
⚡️  [log] - 1673620967338 received uwb event ={"type":"discover","device":"8ff093967378b3839d6298212516b53e","distance":-71}
⚡️  [log] - 1673620967338 received uwb event ={"type":"discover","device":"8ff093967378b3839d6298212516b53e","distance":-71}
Discovered Device: 15e5f049b621351ede966b7c0f12cc29 rssi: -69
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959680>"
⚡️  TO JS {"type":"discover","distance":-69,"device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  TO JS {"type":"discover","distance":-69,"device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620968330 received uwb event ={"type":"discover","distance":-69,"device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620968331 received uwb event ={"type":"discover","distance":-69,"device":"15e5f049b621351ede966b7c0f12cc29"}
Successfully Connected to: 15e5f049b621351ede966b7c0f12cc29
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280959680>"
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
⚡️  [log] - 1673620969894 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
⚡️  [log] - 1673620969894 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
Successfully Connected to: 8ff093967378b3839d6298212516b53e
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280959180>"
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
⚡️  [log] - 1673620970893 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
⚡️  [log] - 1673620970894 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
Discovered Device: 15e5f049b621351ede966b7c0f12cc29 rssi: -66
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280978500>"
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","distance":-66,"type":"discover"}
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","distance":-66,"type":"discover"}
⚡️  [log] - 1673620971950 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","distance":-66,"type":"discover"}
⚡️  [log] - 1673620971950 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","distance":-66,"type":"discover"}
Discovered Device: 8ff093967378b3839d6298212516b53e rssi: -70
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959580>"
⚡️  TO JS {"type":"discover","distance":-70,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  TO JS {"type":"discover","distance":-70,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620972919 received uwb event ={"type":"discover","distance":-70,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620972919 received uwb event ={"type":"discover","distance":-70,"device":"8ff093967378b3839d6298212516b53e"}
Successfully Connected to: 8ff093967378b3839d6298212516b53e
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280959580>"
⚡️  TO JS {"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  TO JS {"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620974483 received uwb event ={"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620974483 received uwb event ={"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
Successfully Connected to: 15e5f049b621351ede966b7c0f12cc29
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280978500>"
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
⚡️  [log] - 1673620976533 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
⚡️  [log] - 1673620976533 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","type":"connect"}
Discovered Device: 8ff093967378b3839d6298212516b53e rssi: -69
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959500>"
⚡️  TO JS {"type":"discover","distance":-69,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  TO JS {"type":"discover","distance":-69,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620976545 received uwb event ={"type":"discover","distance":-69,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620976557 received uwb event ={"type":"discover","distance":-69,"device":"8ff093967378b3839d6298212516b53e"}
Discovered Device: 15e5f049b621351ede966b7c0f12cc29 rssi: -65
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x28097cc80>"
⚡️  TO JS {"distance":-65,"type":"discover","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  TO JS {"distance":-65,"type":"discover","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620978570 received uwb event ={"distance":-65,"type":"discover","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620978571 received uwb event ={"distance":-65,"type":"discover","device":"15e5f049b621351ede966b7c0f12cc29"}
Discovered Device: 18d0039c6d8cbf4b5feddc4b652db228 rssi: -98
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959100>"
⚡️  TO JS {"type":"discover","distance":-98,"device":"18d0039c6d8cbf4b5feddc4b652db228"}
⚡️  TO JS {"type":"discover","distance":-98,"device":"18d0039c6d8cbf4b5feddc4b652db228"}
⚡️  [log] - 1673620978988 received uwb event ={"type":"discover","distance":-98,"device":"18d0039c6d8cbf4b5feddc4b652db228"}
⚡️  [log] - 1673620978989 received uwb event ={"type":"discover","distance":-98,"device":"18d0039c6d8cbf4b5feddc4b652db228"}
Successfully Connected to: 8ff093967378b3839d6298212516b53e
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280959500>"
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
⚡️  [log] - 1673620979119 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
⚡️  [log] - 1673620979119 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","type":"connect"}
Successfully Connected to: 15e5f049b621351ede966b7c0f12cc29
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x28097cc80>"
⚡️  TO JS {"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  TO JS {"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620980148 received uwb event ={"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620980148 received uwb event ={"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
Discovered Device: 8ff093967378b3839d6298212516b53e rssi: -64
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280978580>"
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","distance":-64,"type":"discover"}
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","distance":-64,"type":"discover"}
⚡️  [log] - 1673620982178 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","distance":-64,"type":"discover"}
⚡️  [log] - 1673620982179 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","distance":-64,"type":"discover"}
Discovered Device: 15e5f049b621351ede966b7c0f12cc29 rssi: -65
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959080>"
⚡️  TO JS {"type":"discover","distance":-65,"device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  TO JS {"type":"discover","distance":-65,"device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620982184 received uwb event ={"type":"discover","distance":-65,"device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620982184 received uwb event ={"type":"discover","distance":-65,"device":"15e5f049b621351ede966b7c0f12cc29"}
Successfully Connected to: 8ff093967378b3839d6298212516b53e
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280978580>"
⚡️  TO JS {"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  TO JS {"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620983731 received uwb event ={"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620983732 received uwb event ={"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
Successfully Connected to: 15e5f049b621351ede966b7c0f12cc29
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280959080>"
⚡️  TO JS {"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  TO JS {"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620984756 received uwb event ={"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
⚡️  [log] - 1673620984756 received uwb event ={"type":"connect","device":"15e5f049b621351ede966b7c0f12cc29"}
Discovered Device: 8ff093967378b3839d6298212516b53e rssi: -78
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280959200>"
⚡️  TO JS {"type":"discover","distance":-78,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  TO JS {"type":"discover","distance":-78,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620985759 received uwb event ={"type":"discover","distance":-78,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620985759 received uwb event ={"type":"discover","distance":-78,"device":"8ff093967378b3839d6298212516b53e"}
Discovered Device: 15e5f049b621351ede966b7c0f12cc29 rssi: -63
- "discover device= <EstimoteUWB.PeripheralAdapter: 0x280978600>"
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","distance":-63,"type":"discover"}
⚡️  TO JS {"device":"15e5f049b621351ede966b7c0f12cc29","distance":-63,"type":"discover"}
⚡️  [log] - 1673620986813 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","distance":-63,"type":"discover"}
⚡️  [log] - 1673620986813 received uwb event ={"device":"15e5f049b621351ede966b7c0f12cc29","distance":-63,"type":"discover"}
Successfully Connected to: 8ff093967378b3839d6298212516b53e
- "connect device= <EstimoteUWB.PeripheralAdapter: 0x280959200>"
⚡️  TO JS {"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  TO JS {"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620987316 received uwb event ={"type":"connect","device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673620987316 received uwb event ={"type":"connect","device":"8ff093967378b3839d6298212516b53e"}

Discovered Device: 15e5f049b621351ede966b7c0f12cc29 rssi: -65
this is the output from the sampleapp code. copied into my code
Successfully Connected to: 15e5f049b621351ede966b7c0f12cc29
same here
interesting I see repeated connects, but no disconnects.

really need some help here

the sample app does the same, wait… it requests nearby permissions. WHOA!..

neither are in the Info.plist,

add to app Info.plist
Privacy - Nearby Interaction Usage Description
some message
Privacy - Location When In Use Usage Description
some message

now getting positioning events

position updated for device: nil 1.1057818
- "position device= UWBDevice(15e5f049b621351ede966b7c0f12cc29 - 1.1057818 - nil"
⚡️  TO JS {"distance":1.1057817935943604,"type":"updatePosition","device":"15e5f049b621351ede966b7c0f12cc29","vector":null}
⚡️  [log] - 1673622413492 received uwb event ={"distance":1.1057817935943604,"type":"updatePosition","device":"15e5f049b621351ede966b7c0f12cc29","vector":null}
position updated for device: nil 2.236106
- "position device= UWBDevice(8ff093967378b3839d6298212516b53e - 2.236106 - nil"
⚡️  TO JS {"device":"8ff093967378b3839d6298212516b53e","type":"updatePosition","distance":2.2361059188842773,"vector":null}
position updated for device: nil 2.236106
- "position device= UWBDevice(8ff093967378b3839d6298212516b53e - 2.236106 - nil"
⚡️  TO JS {"distance":2.2361059188842773,"type":"updatePosition","vector":null,"device":"8ff093967378b3839d6298212516b53e"}
⚡️  [log] - 1673622413674 received uwb event ={"device":"8ff093967378b3839d6298212516b53e","type":"updatePosition","distance":2.2361059188842773,"vector":null}
⚡️  [log] - 1673622413674 received uwb event ={"distance":2.2361059188842773,"type":"updatePosition","vector":null,"device":"8ff093967378b3839d6298212516b53e"}
position updated for device: nil 1.346382
- "position device= UWBDevice(15e5f049b621351ede966b7c0f12cc29 - 1.346382 - nil"
⚡️  TO JS {"distance":1.3463820219039917,"type":"updatePosition","device":"15e5f049b621351ede966b7c0f12cc29","vector":null}
⚡️  [log] - 1673622413808 received uwb event ={"distance":1.3463820219039917,"type":"updatePosition","device":"15e5f049b621351ede966b7c0f12cc29","vector":null}
position updated for device: Optional(EstimoteUWB.Vector(x: -0.25937724, y: 0.56309617, z: -0.78463125)) 2.2525067
- "position device= UWBDevice(8ff093967378b3839d6298212516b53e - 2.2525067 - Optional(EstimoteUWB.Vector(x: -0.2593772

so are the vector values (x: y: z:) angles or ??

EstimoteUWB.Vector(x: -0.25937724, y: 0.56309617, z: -0.78463125))

is negative right? /down/behind?
so in this case the beacon is right and 78.4 degrees behind? (which would be approx right) and distance is roughly how far…
top of the phone is 0?

new scan today, phone and beacons have moved

“position device= UWBDevice(8ff093967378b3839d6298212516b53e - 2.6372447 - Optional(EstimoteUWB.Vector(x: 0.43450937, y: 0.3709552, z: -0.82044685))”
vector = {“x”:0.43450937,“y”:0.3709552,“z”:-0.82044685}

but… these seem wrong… beacon is right and behind/down… phone is laying horizontal

other device not giving positioning events

@Miriam can you get us some help here? there is no doc on the values in the UWB SDK

this is one beacon that the Estimote UWB app says is straight ahead (phone flat, top of phone pointing towards wall on other wide of room… beacon sitting on table there, slightly right and down of centerline/ so x and y should be negative (right and down) , or close to 0, z should be positive (forward)

position updated for device: Optional(EstimoteUWB.Vector(x: 0.57700413, y: -0.5835211, z: -0.57001185)) 1.7239199
- "position device= UWBDevice(8ff093967378b3839d6298212516b53e - 1.7239199 - Optional(EstimoteUWB.Vector(x: 0.57700413, y: -0.5835211, z: -0.57001185))"

UWB app says can’t find unless beacon is ‘in front’ of phone