This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Master emulator control questions

Hello,

We use the PCA00031 dongle running the MEFW 0.9.0 in our production environment to validate a sensors accuracy. The PCA is controlled by a C# test program using the Master Emulator and Iron Python DLLs. I've been working on the program to see if I can make it detect our devices better and connect to them more reliably. It's been a bit of a struggle because:

  1. There are up to 90 devices under test at a time

  2. It's a very busy RF environment with 400 or more BLE devices advertising plus a couple of Wi-Fi networks.

  3. The devices under test have stringent battery life requirements and we are limited to advertising once every 4 seconds so finding the devices under test is hard.

So I have 2 questions:

  1. Is there a way to control how long the Master Emulator tries to connect to a specified device address? Right now it looks like it times out after 10 seconds. This isn't anywhere near long enough with a 4 second advertising rate. I haven't been able to find a way to control this particular setting

  2. Any thoughts on scan window and interval settings? Power isn't an issue for the scanner as it's on a PC. The original programmer set them to 150mS and 450mS. I tried various settings such as 4500/4500, 2000/2500, and 200/250 and the performance was worse (fewer devices detected). This really surprised me as I would have expected scanning all the time or close to it would have performed better. The program has to wait for the devices under test to reach stable temperatures so it has plenty of time to scan.

Thanks, John

Related