Unable to establish the connection with USB in HDC2450 _ Response required ASAP

5 years 3 months ago #29530781 by buchjyot
Hello,

we are trying to communicate with HDC2450 motor controller using USB connection. it tries to connect 3 times, the status light flashes very quickly and then it stops and pop up the message that 'controller was lost'. any idea why is that happening? we have been using this controller since 3 years, but don't know why is this happening.

Thanks.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29530787 by TechSupport
It sounds like something went wrong. Is you controller trying to drive a motor when connecting via usb (Script autostart enabled)? If so, then this would explain, as the USB is not a recommended connection as it is not robust. Better to use RS232.

Disconnect the motor and see if it connects.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29530791 by buchjyot
I think I found the solution,

I was running this script to send data over CAN

'the script starts from here
wait(10000)
loop1:
Speed1 = GetValue(_ABSPEED, 1) ' Read the encoder speed in RPM
SetCommand(_CS, speed1)
wait(1000)
SetCommand(_DSET, 1)
goto loop1
'the script ends here

So, if the USB is connected in between it will not get attention because controller is in a loop. I send the command for !r 0 pausing the script via console, and it worked. I was able to detect the controller in my roborun plus. but now the question is how can i make a loop without arrizing this type of detection failor. any idea? ? I actually need to detect the USB and terminate the loop. please advise.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29530792 by TechSupport
You can't run can bus and the USB at the same time. Having the USB plugged in will prevent you from using can bus. Again, this is something that can't be fixed with this controller currently.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29530796 by LROBBINS
Just to amplify what Tech Support said. You can not use CAN and USB at the same time, but you can use CAN and RS232 at the same time. If your computer does not have an old-fashioned serial port, you can get a USB to Serial adapter and use that for RS232 communication with the controller.
Ciao,
Lenny
The following user(s) said Thank You: TechSupport

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29530798 by buchjyot
Hi thanks for inputs, but my 25 pin connector with RS232 is being used for signal conditioning and other stuff, i have only option of USB and CAN.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29530809 by LROBBINS

i have only option of USB and CAN.

No, if you need both simultaneously, you simply don't have that option at all - the hardware is shared.

my 25 pin connector with RS232 is being used for signal conditioning and other stuff

I do not understand this. Physical pins 2 and 3 on the Roboteq's DB25 can't be used for anything EXCEPT RS232, so you simply cannot be using them for something else.

Ciao,
Lenny
The following user(s) said Thank You: buchjyot

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.175 seconds