Just to wrap up this topic, so I can set it to solved...
Meanwhile I found a API manual for this BLED112 dongle. It is actually very simple, once you know it ..
I can open the dongle as a normal serial port using MsComm control. The idea is that you send commands, and expect response back. Kind of acknowledge. Some commands also send back Events.
Commands I send using as example:Response and Events I collect in the On_Comm event. Just by adding any data received to an (global declared) InpBuf as string variable:Code:MsComm1.output=GAP_DISCOVER & Chr(mode) '('pseudo' Const set as Chr(0) & Chr(1) & Chr(6) & Chr(2) )
Then separate 'Expect' routine that extracts expected data from InpBuf. Since the format of expected data is well defined this is also not a big deal. Meanwhile I can open and connect to the dongle, send a BLE_HELLO command, and get result back. Now working on getting real data from the wireless application...Code:InpBuf = InpBuf & MsComm.Input
The only question I now have is how to map in a more elegant way the data read back into a structure. But I open a new topic for that, since that is not really related to this one. So this topic is closed.





Reply With Quote
