Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Initialization Sequence for Class 5 smart motors

Initialization Sequence for Class 5 smart motors 1 year, 1 month ago #2084

Hello,
What is the correct initialization sequence for a SmartMotor?

I have an application which opens a serial port and communicates with a motor providing it commands based on some other stuff going on in the application.

Everything seems to work _if_ I open SMI first and let it Detect the motor on the serial interface. After the motor is detected, I can close SMI and my application works until the motor is power cycled.

I would like for my application to be able to initialize and configure the motors. I've done some serial bus sniffing of the initialization process, but I haven't had success duplicating it in my code.

Thanks
Joel

Re: Initialization Sequence for Class 5 smart motors 1 year, 1 month ago #2085

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
You'll need to download a short program to the motor using the SMI2 software to set turn ECHO on and set an address if you're using one.

Ex.
ADDR=1
ECHO
END

Re: Initialization Sequence for Class 5 smart motors 1 year, 1 month ago #2087

Ok
Thanks.
I augmented your script to autoset the baud too.
---------
ADDR=1
ECHO
BAUD115200
END
---------
Seems to work from a terminal now, but I'm not getting a response from RBe or RW(0).

Re: Initialization Sequence for Class 5 smart motors 1 year, 1 month ago #2088

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
I'm not sure why that would happen. You may want to test it at a lower baud rate, to see if you get the same results.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.84 seconds