Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.

TOPIC: Smart motor addressing /Retrieve serial number

Smart motor addressing /Retrieve serial number 7 years 8 months ago #120

  • stephcyl
  • stephcyl's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
  • Karma: 2
Hello,
I am writing a software to communicate with smart motor SM2315d via serial ports.
Am having problems using the software to determine number of motors connected to the port. At the moment, I can only address the motors based on the number of motors I know connected. How can I automatically detect and address them? In otherwords, I would like to know what the SMIEngine AddressMotorChain Sends to the ports so I can immitate same.
Another problem is this: How can I retrieve the motor's serial number from the port? I have checked all the parameters that can be retrieved by placing R infront of them but could'nt find the serial number amongst them.
Any help will be appreciated.
Regards,
Lucy.
The administrator has disabled public write access.

Re: Smart motor addressing /Retrieve serial number 7 years 7 months ago #121

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
Hello,
I will answer the serial number question first.
The serial number and other data such as the motor type and firmware revision are stored in EEPROM. Attached is a program that will extract the data from EEPROM and print it to the Terminal window.

Attachment 411_Info_Please.sms not found

Attachments:
The administrator has disabled public write access.

Re: Smart motor addressing /Retrieve serial number 7 years 7 months ago #122

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
A quick way to find out how many motors you have connected... and address them on a daisy chain.

Attached is a dialog between the SMI2 Terminal window and an unknown number of SmartMotors.

The Serial Data Analyzer can be opened to show the actual Hex code sent between the Terminal window and the motors (see attached zip/jpg).

0Z resets all motors to default

The string 0a=a+1 ECHO is sent until an echo is received.

0Ra reports variable "a" from each motor... last one first.

0b=5-a reverses the count for proper addressing.. (the value 5 must be derived by the host from the 0Ra response).

0ADDR=b sets the correct address for each motor found.

--Terminal Text follows--

0Z
0a=a+1 ECHO
0a=a+1 ECHO
0a=a+1 ECHO
0a=a+1 ECHO
a=a+1 ECHO <--this was the first echo
0Ra 2
3
4
0b=5-a
0Rb 3
2
1
0ADDR=b
1RSP 24576/495ch
2RSP 24576/495ch
3RSP 24576/477

Attachment QuickAddress.zip not found

Attachments:
Last Edit: 7 years 7 months ago by csearcy.
The administrator has disabled public write access.

Re: Smart motor addressing /Retrieve serial number 7 years 7 months ago #124

  • stephcyl
  • stephcyl's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
  • Karma: 2
Thanks a lot!
The administrator has disabled public write access.
The following user(s) said Thank You: csearcy
Moderators: hsummer, csearcy, swalters, mmeyers
Time to create page: 0.264 seconds
Powered by Kunena Forum