Yes, I tried google search, and yes I found some stuff, but somehow, its not working… I will try a bit more later this day …
and yes, I read the SSC manual…
But, for me it´s way easier to ask somebody, who maybe has already more experience with that than me,
and maybe there is a guy out there who is already doing that what I want to do… (linux, c++)
that´s why I was asking for that,
If there is no one, OK, I will try out myself…
I could help you w/ C/C++ in most flavors of windoze, but for linux support there are probably only very few of the regulars here writing their own code.
Post the code you are having problems with. Be sure to post enough of your code so we can see the context and what calls it if any. Sometimes the problem is not with the actual code, but the call to the code.
Show where you are having the problem.
Tell us what kind of problem it is.
It will be much easier to help you if we know exactly what you are working with.
what I have is a small bunch of code frazzles, which I found on various places in the net…
What I want to achieve with that, is just to see that I can send something out of the COM port…
so here is that what I have so far
my problem now iis, that the program returns “write() of 4 bytes failed”
So n = -1, and that means that an error occurred
the command “n = write(fd, “ATZ\r”, 4);” is just an example from the net, I´m not sure if this is the right method to send position strings to SSC like “#0 P1500”
no, you got the idea but all you really needed to do was change the OpenPort() line to fd = OpenPort().
dumb question: are you certain ttyS0 is defined for your install and that you have permissions set to allow its use? we could spend a lot of time chasing code things if not.
at what point do you get an error message, or is it running but just not making the SSC-32 do something?
the code looks like it should work, from what I remember, so if it were me I would be putting text output statements after each line and displaying the contents of the results to find where something was not what I expected and then find out why.
I´m executing this program as root, so I should have all permissions…
With this program the SSC will do nothing because the statement what I send is not an SSC command, it´s just a bunch of chars
but what I just want to see is that this prog will send chars on the port without errors…
hm maybe I should try to send a SSC Command look if gren led turns off
Any chance the handshaking is enabled on the port when you open it? I don’t know what the default options are in termios struct, perhaps something need to be set or cleared to disable handshaking?
The permissions need to be checked as well as that the user is in the appropriate group(s) for access. He needs to check the /dev directory and see what group the tty* ports are in. This is usually the tty group, but may differ depending on the distribution of Linux. He needs to be in that group to be able to access the tty* ports.
I´m able now to send ONE position command to the SCC, if I want to send a sequence of commands I have to wait until the SSC completes the last command until I can send the next one, right?
I read something that I have to send a “q” to the SSC and I will get a dot or a plus. Can I ask the SSC for a certain Servo, or is the answer global for the SSC?
Will it check if a certain Servo has completed its move or is it checking if the hole last command is finished???