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

TOPIC: Interfacing SM3430D with DSP

Interfacing SM3430D with DSP 5 years, 6 months ago #129

I am using Animatics Smart Motor SM3430D-PLS2. And Interfacing it with ezDSP TMS320F2808. The problem is that when request for velocity feedback is given to the motor, the motor sends variable array data to the DSP through RS232, and the size of the array depends upon the speed/velocity of the motor. If velocity is zero it sends two bytes, if velocity is between 1 and 10 it sends 5 bytes and so on. and remember that it sends 13(0x0D) in the last as a terminator byte. The problem is on DSP side, in which number of receive bytes should be fixed. so when variable number of bytes comes on its serial port, it gives time out error. So, anyone of you, please help me regarding this problem. As I am displaying this speed on LCD.

Re: Interfacing SM3430D with DSP 5 years, 6 months ago #130

  • csearcy
  • Posts: 480
  • Karma: 23
The value returned from the RV (Report Velocity) command is not fixed length. The termination character 13(0x0D) must be used to determine that the response is complete.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.40 seconds