Connecting SDC2130 on a Mac

9 years 1 month ago #29526423 by Anonymous
Connecting SDC2130 on a Mac was created by Anonymous
We have an SDC2130 drive controller that we have wired for power and are trying to connect to over USB using your sample program found in the Linux API pack on a Mac. We are getting the following output... Opening port: '/dev/tty.usbmodemRTQ0011'...succeeded. Initializing port......done. Detecting device version...failed (issue ?E response: 3). Error connecting to device: 7. When we plug in the device, we get a prompt from the OS that it is has detected a network device. We have just dismissed this message. Should we not? Is there something else we need to do?

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

9 years 1 month ago #29526424 by Roboteq
Replied by Roboteq on topic RE: Connecting SDC2130 on a Mac
Try first to see if you can establish communication with the PC. Use a terminal emulation program, such as minicom, and send a few queries to the controller, like ?fid to read the firmware Id.
If you cant see a response, this means something is not right on the Linux side when creating the virtual com port.
If communication is good, the API should be working as well.

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

9 years 1 month ago #29526425 by Anonymous
Replied by Anonymous on topic RE: Connecting SDC2130 on a Mac
We plugged it into the Windows machine and installed the driver that allowed it to be accessed through a virtual com port. We sent it a command via Hyperterminal and received the expected response. How should we proceed on the Mac?

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

9 years 1 month ago #29526426 by Roboteq
Replied by Roboteq on topic RE: Connecting SDC2130 on a Mac
We don't have experience with the API running on a Linux Mac. But look for a hyperterminal that runs under Linux. If you cannot communicate, then it is a driver issue under Linux and you may be able to find help on forums we can help you once you have established communication

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

9 years 1 month ago #29526427 by Anonymous
Replied by Anonymous on topic RE: Connecting SDC2130 on a Mac
I wanted to let you know we debugged the issue. In the Linux API you have available there is an error in RoboteqDevice::InitPort (). The file descriptor passed to tcsetattr is for the floppy drive rather than the file descriptor created when the port was open. Simply making the change below will correct the API.

<< tcsetattr (fd0, TCSANOW, &newtio); /* Set the attribute NOW without waiting for Data to Complete*/
>> tcsetattr (handle, TCSANOW, &newtio); /* Set the attribute NOW without waiting for Data to Complete*/

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

Moderators: tonysantoni
Time to create page: 0.149 seconds