FDS vs(and/or) SSER
Rsadeika
Posts: 3,837
I started my next project which uses the Propeller Servo Controller USB(PSCU) and the DNA-RTC boards. I am trying to figure out the best way to setup communication between the two boards, do I use the FDS as in fopen(FDS:..) or fopen(SSER:...)? I looked in my propgcc folder and could not find any information that outlines FDS and SSER, as it pertains to Tx,Rx, and BAUD rates to name a few items. Also maybe a couple of examples as to how to best use these drivers. At the moment I keep forgetting if it is fopen(...:Tx,Rx...) or fopen(...:Rx,Tx...). Also would be nice to know what kind of subcommands are associated with each driver, or is that strictly handled with commands such as printf(), fprintf(), and maybe fgets()?
Ray
Ray
Comments
Quoting from the documentation
HTH
-j
So now the question is on the proper usage of FDS and SSER, in the examples shown they use: I have used some of the code that jazzed provided, and it did not use the above lines of code, and the use of SSER seemed to still work. I figure it is some expert knowledge that jazzed has, that he knows when to use it or not, which I guess does not help me very much.
After reading the documentation for SSER, it seems like this would be the one to use, since it is half duplex, and the communication between the two boards is one way. One board, the DNA-RTC, sends (Tx), while the other board just receives (Rx). I tried using some like this to send:
And something like this to receive: It is not working at the moment, but I will try some different things.
Ray
Ray, I suggest you always define -Wall. The compiler is a useful tool for finding common programming mistakes. I use it most of the time. We go one step further at work, where warnings are treated as errors, and our code won't build until we've eliminated all of the warnings.