Ticket #88 (closed bug report: fixed)

Opened 16 months ago

Last modified 16 months ago

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

Attachments

Change History

Changed 16 months ago by staas

  • owner set to staas
  • status changed from new to assigned

Hi Nikolaj,

I have a few questions to better undestand the problem:

1. Have you installed MotorControl correctly? The NXT should beep once after the installation

2. Have you tried using USB Cable?

My guess is that something went wrong with the installation of MotorControl. Maybe try to Download it to your NXT again and see if the Error persist.

Cheers

Martin

Changed 16 months ago by behrens

Please see also the installation guide for MotorControl on http://www.mindstorms.rwth-aachen.de/trac/wiki/MotorControl.

  • under Windows use the provided batch script TransferMotorControlBinaryToNXT.bat

Changed 16 months ago by nikolajsimeunovic@…

Martin, thank you for your quickly response.

Honestly, I have not paid attention to beeping, but I can do it again tomorrow and check does NXT beeps after installation. I used TransferMotorControlBinaryToNXT.bat file and there was no errors. Everything went smoothly. When NXT is connected via USB cable, everything works fine. No errors or warnings, and NXT do exactly what it should.

Changed 16 months ago by nikolajsimeunovic@…

I was downloaded MotorControl to NXT using TransferMotorControlBinaryToNXT.bat,

I get next lines:

"MotorControl22.rxe=37530

Script finished.

Press any key to continue . . ."

But, there was no beep sound. Can you tell me where I made a mistake? With USB cable program works excellent!

Changed 16 months ago by behrens

  • status changed from assigned to closed
  • resolution set to fixed

Hi Nikolaj,

don't care about the peep sound. There should not any. As long as the control number returned by MotorControl22.rxe differs from zero (it's 37530 in your case) the download is completed. Now, you should see the program on your NXT (menu Software Files).

The batch script for the program transfer supports only a USB connection, thus everything appears comprehensible.

- Alexander

Add/Change #88 (Bluetooth connection problem)

Author



Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.