This content has been marked as final. Show 3 replies
An option might be to use wireshark to sniff what data the debugger is sending to the com port; This would allow more verification at a protocol level.
I also face the problem, Anyone could give a hint?
- It could be the COM port is incorrect for the enumeration of your device;
- Depending on if the cySmart.sendCommand(cySmart.Commands['CMD_START_SCAN']) function returns immediately, or returns after some amount of time receiving scans, then the code could be starting a scan and immediately return/exiting the script, causing the timeout error and not actually waiting until scan responses are received.
- Potentially, changing the scan settings from passive to active might have an affect on the results as well.
- The timeout on buffer serin data would seem to indicate that the USB dongle didn't send any more data; Depending on the API functionality, you might need to increase the timeout time or poll the responses of the scanning of the device.