|[Help] Problem sending datas through Bluetooth
|Page 1 of 1|
|Author:||Daxid [ Tue Nov 11, 2014 9:44 am ]|
|Post subject:||[Help] Problem sending datas through Bluetooth|
I'm developing a program in C which send datas of a sensor (AbsoluteIMU from mindsensor but it isn't the point). I'm using the command cCmdWriteToBluetooth since need to send 8 datas per package. My idea is to develop a SW on my PC to use these datas. Before doing it I use Docklight (I also tried RealTerm) to monitor the COM port on my PC and sending Direct Commands (StartProgram, StopProgram and other commands to test it).
Here is my problem:
When I send the Direct Command StartProgram (which is sent correctly) or when I start the program on the NXT with the port COM openm, the program on the NXT start, I receive the packages with my datas, and all works fine. But if I want to send another Direct Command (no matter what it is), it send it but the NXT seems not receiving it (no response even when the command asked for it and nothing starts/is received on the pc). I need to close the connection and open it again before doing anything else otherwise the Bluetooth crashes and I need to restart the NXT by removing the power supply. The problem only happens when I start a program which sends datas from the NXT. After that I can't send any Direct Command.
Here is the code I use on the NXT:
I'm using RobotC 3.62 on Windows 7.
So what do you think it can be and what can I do to avoid getting this problem?
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group