- Forum
- Roboteq Motor Controllers
- General Issues
- Unable to establish the connection with USB in HDC2450 _ Response required ASAP
Unable to establish the connection with USB in HDC2450 _ Response required ASAP
8 years 3 months ago #29530781
by buchjyot
Unable to establish the connection with USB in HDC2450 _ Response required ASAP was created 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.
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.
8 years 3 months ago #29530787
by TechSupport
Replied by TechSupport on topic Unable to establish the connection with USB in HDC2450 _ Response required ASAP
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.
Disconnect the motor and see if it connects.
Please Log in or Create an account to join the conversation.
8 years 3 months ago #29530791
by buchjyot
Replied by buchjyot on topic Unable to establish the connection with USB in HDC2450 _ Response required ASAP
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.
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.
8 years 3 months ago #29530792
by TechSupport
Replied by TechSupport on topic Unable to establish the connection with USB in HDC2450 _ Response required ASAP
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.
8 years 3 months ago #29530796
by LROBBINS
Replied by LROBBINS on topic Unable to establish the connection with USB in HDC2450 _ Response required ASAP
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
Ciao,
Lenny
The following user(s) said Thank You: TechSupport
Please Log in or Create an account to join the conversation.
8 years 3 months ago #29530798
by buchjyot
Replied by buchjyot on topic Unable to establish the connection with USB in HDC2450 _ Response required ASAP
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.
8 years 3 months ago #29530809
by LROBBINS
Ciao,
Lenny
Replied by LROBBINS on topic Unable to establish the connection with USB in HDC2450 _ Response required ASAP
No, if you need both simultaneously, you simply don't have that option at all - the hardware is shared.i have only option of USB and CAN.
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.my 25 pin connector with RS232 is being used for signal conditioning and other stuff
Ciao,
Lenny
The following user(s) said Thank You: buchjyot
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- General Issues
- Unable to establish the connection with USB in HDC2450 _ Response required ASAP
Time to create page: 0.075 seconds