HELP! ssc32 in Linux C programming?

Hi guys, I am trying to communicate to ssc32 using C programming in Linux (Debian). However i have fail to do so.

What I do in C is ’ int byte = write(fd, “#0P1700\r\n”, 1); '. Anyway, I dun quite understand how the been represented in C. I have checked all the connection and the baudrate, but everything seem alright.

Anyone can give any suggestion or comment?

Thanks.

Hi nik2031,

Let me start by welcoming you at this forum!

I don’t know the exact syntax from the write function in C. You should give some more additional information to let us help you. Where goes the result of this function? In the byte? Or in fd? What is fd? And what does the 1 at the end represents?

Technical speaking you need to send “#0P1700â€

Thanks for the comment. My program is now working with a simple changes. This is what I change: ’ int byte = write (fd, “#0P1700/r”, 8); ’ where ‘8’ is the total number of byte.

Thanks a lot!!!