05-05-2011 02:06 PM
Hello all,
I'm getting a strange status code, after calling getNXT() which is: 0xBFFF0015. I'm using Bluetooth.
It's
not contemplated in the list of status codes of the Fantom
documentation, but I found another source, on NI-VISA Programmer
Reference Manual (http://www.ni.com/pdf/manuals/370132c.pdf) the meaning of the status code (page 375): "Timeout expired before operation completed."
The
NXT is not connected with anything else, it is paired, Bluetooth is on.
This problem doesn't happen all the time! Only sometimes. Does anyone
have any clue of what it can be?
It has also happened once with sendDirectCommand().
I'm using the firmware 1.31 NBC/NXC enhanced.
Thanks a lot,
Ricardo
PS: Tomorrow I'll check if I get the same problems with USB and I will also try previous firmwares.
05-06-2011 04:20 AM
Hello Ricardo,
What software are you using ? Which version ? What hardware are you using ?
Thank you.
Regards,
Yannick.
Yannick D.
National Instruments France
05-06-2011 04:27 AM
Hey Yannick,
I'm using C++ API from Fantom drivers, latest version 1.1.3, on Windows OS. The hardware is the NXT 2.0 with the FW 1.31, with some changes for the NXC/NBC programming language.
Does this help?
Thanks,
Ricardo
05-07-2011 07:45 AM
We found out that this problem happens when running the application as a service. As a simple program, I don't get the problem. It seems that the service is not allowing to use the bluetooth correctly. I don't know if it can be a problem of the drivers, or something else.
I'm not really into the implementation details, as I'm not the responsible one, but I new that I could get some tips here eventually.
Thanks again,
Ricardo
05-10-2011 01:51 PM
Hi,
The problem is solved. It wasn't actually any fantom issue. Just an authorization left to set, in the Bluetooth device properties, to allow the "serial port communication" service.
Best regards,
Ricardo