Ticket #88 (closed bug report: fixed)
Bluetooth connection problem
| Reported by: | nikolajsimeunovic@… | Owned by: | staas |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Toolbox Function | Keywords: | |
| Cc: |
Description
Hi there,
I am student of Mechanical Engineering, and I am currently working on my M.Sc. thesis in the field of AI on NXT Lego Mindstorms, and I have next problem:
I made connection between my laptop and Lego NXT via bluetooth, when I call direct commands (SetMotor?, SetPower?, SendMotorSettings?…) it works fine, but give me an "Warning: Embedded NXT program "MotorControl22.rxe" could not be started…". If I try to control NXT with commands like: mA=NXTMotor('A'); mA.Power=50; mA.TachoLimit? = 360; mA.SendToNXT()… Matlab give me the same warning and program stops at mA.SendToNXT() and give me an error:
"??? Error using =⇒ NXTMotor.SendToNXT at 108 The class NXTMotor needs the embedded NXC program MotorControl to be running on the NXT, and according to the currently used NXT-handle, this program is not running…"
Maybe I need to mention that sensor command works fine.
When I download MotorControl22.rxe to NXT i get next: "??? Error using =⇒ COM_OpenNXTEx>BT_OpenHandle at 433 Could not open bluetooth connection using port COM3, BaudRate?=9600, DataBits?=8. Try using COM_CloseNXT('all') first.
Error in =⇒ COM_OpenNXTEx at 278
h = BT_OpenHandle(h, varargin{1});
Error in =⇒ COM_OpenNXT at 72
handle = COM_OpenNXTEx('Any', , inifilename);
Error in =⇒ Untitled at 6 handle = COM_OpenNXT('bluetooth.ini');"
I use: Matlab 7.9.0 R2009b 32bit; Windows 7 32bit; Firmware 1.29; Fantom driver; Toolbox 4.04;
Where I'm wrong? I didn't find similar problem in other tickets so I made this one. I hope that I didn't miss something. I hope that you can help me with this problem.
Best regards Nikolaj
