Hello everyone,
for a few days now i'm trying to get my SCC from busware (
http://busware.de/tiki-index.php?page=SCC) working with OH and the Pi. It is compatible with culfw (already preinstalled), so it should be working with OH (i guess).
Of course i started by installing the FS20 Binding and "configuring" it, even though there's not that much to configure. As expected, it did not work that easily :D
My system:
- Raspberry Pi with Wheezy (I'm not quite sure which verison, but kernel version 3.10.25)
- SCC from busware
- OH 1.4.0 (Bindings are version 1.3.0, and one is even 1.5.0, you'll read about later)
After some trial and error, i gained the following knowledge:
- I read somewhere, that there's a difference between "real" serial connections and virtual ones (via USB) concerning the baud rate. For USB you can use whatever baud you prefer, but for real serial connection you need to use the one defined for the device. After a little bit of surfing i found out, that a similar device to SCC uses baud 38400. I even got that working using minicom.
- When i finally had a connection to the SCC via minicom, i found
http://culfw.de/commandref.html, where i got to know the commands i could type in for controlling the SCC and my FS20 system. And heeey, it worked.
- After this i remembered the issue with baud and i thought, that there is maybe a fixed baud in the transport.cul package.
- After setting up my IDE, i quickly found the part in the package where i needed to change the baud.
- As expected, it still would not work -.-. So I double checked the parameters SCC needs (baud, stopbits...) and i also changed the parity, which has to be odd.
-> After all, no success...
So i thought, i'd try to get it working via "echo", which is dirty and something i actually dont want. But for testing i played around and realized, that it worked pretty unreliable. Maybe that's the point why it's not working with OH? FYI: I pressed the switch pretty often and it never worked, so probably there is still another problem.
By the way, i'm using an antenna and the receiver is not far away, so this actually can't be the cause as well.
Do you have any ideas what i'm doing wrong?
PS: I needed a bit to realize, that i would need the RXTX library, which i got via apt-get. It would be really helpful to mention it in the wiki for the FS20 binding by the way.
PPS: I also tried the CUL binding, which didn't work either.
Greetings Timo