ik1xpv / ExtIO_sddc

ExtIO_sddc.dll - BreadBoard RF103 / HDSDR
Other
72 stars 26 forks source link

two devices manual selection #210

Closed ik1xpv closed 2 years ago

ik1xpv commented 3 years ago

If the fx3handler::GetFx3Device() finds two devices a msgBox at run time asks witch one use. It's a rude solution , a better one with the use of SN to identify the device is planned in future.

See Issue Two devices on the same system at the same time #209

ik1xpv commented 3 years ago

Note: CCyUSBDevice::DeviceCount() (in CyAPI) returns the number of FX03 devices with ProductID == STREAMER_ID or ProductID == BOOTSTRAP_ID. In CCyUSBDevice::Open(UCHAR dev)  dev = 0,1,2.. is the  order in which the devices are discovered and depends on the port enumeration of this pc. Use of the same ports guarantees the same dev numbers. At startup if there are many Fx03 devices with  BOOTSTRAP_ID both are loaded with the SDDC firmware and the MessageBox allows selection of 1° or 2° SDR.

ik1xpv commented 2 years ago

This is a preliminary test using MessageBox in FX3handker that shows the FX3 Serial number TwoSDR I'll move it to a dialog in ExtIO_sddc code ...

fventuri commented 2 years ago

Looks really nice Oscar! I especially like the fact that now you can see the exact model of each SDR.

Now it's time to print those Dymo labels with '1716' and '1D31', and stick them on your SDRs! hihi

Franco

ik1xpv commented 2 years ago

InitHW() in ExtIO_sddc.dll if there are many FX3 devices asks to select a device 4prototypes. bool Enumerate(...) has been added to FX3handler in Win32 implementation while in Linux the code is TBD .