Results 1 to 3 of 3

Thread: SSC32 in Linux C programming?

  1. SSC32 in Linux C programming?

    Hi guys, I am a new member.

    I am having a big problem to communicate with SSC32 servo controller using Linux (Debian) C programming. What I did is ' int byte = write(fd, "#0P1700\r\n", 1); ' but what I notice is the LED's light gone. Do anyone knows what to send in this case?

    I have checked the wire connection and baudrate and everything seem alright. I read few thread in this forum regarding similar problem and found less clue for me. Hope the expert can help.

    Thanks!

  2. #2
    Join Date
    Apr 2008
    Location
    Sacramento, CA, USA Area
    Posts
    5,341
    Rep Power
    173

    Re: SSC32 in Linux C programming?

    Hi, Welcome to the forum!

    There's no good purpose to the \n. The SSC32 is suppose to ignore newlines, though, so you're probably ok - but get rid of it anyway. Wasted data.

    It's normal for the light to go out when it starts accepting commands. If you unplug it and plug it back in to power - the light comes back on, right?

    You didn't provide us with enough code to diagnose what you're doing, I'm afraid.
    I Void Warranties´┐Ż

  3. Re: SSC32 in Linux C programming?

    Thank for the comment, Adrenalynn. I have figured out the correct way to write the command.
    To whom suffer fom this problem, what I did in Linux C is ' int byte = write(fd, "#0P1700\r", 8); ', where 'byte'=total of byte sent to port, 'fd'=port address and '8'=total byte of data to be sent.
    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. programming RoboBuilder in C
    By JoeStrout in forum Humanoids, Walkers & Crawlers
    Replies: 5
    Last Post: 10-30-2008, 09:23 AM
  2. programming axon with a-d converter
    By robot maker in forum Software and Programming
    Replies: 21
    Last Post: 07-31-2008, 04:52 PM
  3. Discussion C Programming Recommendations
    By Alex in forum Software and Programming
    Replies: 13
    Last Post: 07-27-2008, 01:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •