MajenkoLibraries / ICSC

Inter-Chip Serial Communications
BSD 3-Clause "New" or "Revised" License
81 stars 27 forks source link

C header file for raspberry #1

Closed bcelary closed 2 years ago

bcelary commented 9 years ago

Great library. I need to hook it up with RasPi, could you please add or provide a link to a header file mentioned on the sourceforge website?

majenkotech commented 9 years ago

The Linux code I had written didn't work. It needs a complete re-write in C++. It's on my list of thing to do.

bbbowden commented 9 years ago

For what it's worth, I took the existing linux c code and adapted it to C# for a Windows .Net middleware application. This was awhile ago so I don't exactly remember all the issues I had but they mostly had to do with threading. Now, I am moving my application to RPi too so it looks like I'll have a go at modifying the linux version. Could you expand on the issues you had as to why it didn't work?

rytisa commented 9 years ago

Is the any progress on ICSC for RasPi? If not, maybe somebody could recommend similar alternative, library which could be used for RS485 communication between multiple Arduinos and RasPi?

bbbowden commented 9 years ago

I was successful getting the library to work in my RasPi application, more than happy to share.

rytisa commented 9 years ago

This would be great! Could you send it to me by email or provide the download link?

Btw, I try to use CH340 usb to rs485 dongle. Which way you connect RasPi to rs485?

Thanks a lot!!! 2015 rugs. 3 10:05 popiet "bbbowden" notifications@github.com rašė:

I was successful getting the library to work in my RasPi application, more than happy to share.

— Reply to this email directly or view it on GitHub https://github.com/MajenkoLibraries/ICSC/issues/1#issuecomment-137543900 .

therobotworkshop commented 9 years ago

Hi bbbowden, I would love to get it working on a rpi too please. I currently have it running on 20 Arduinos triggering audio, servos, lights, doors etc. Works a treat. I want to have the rpi as an main viewer looking at what's on and what's not. A very nice Library. Rod

bbbowden commented 9 years ago

Sounds very similar to the way I am using the library. I will try to fork the project and upload my version.

Brett.

majenkotech commented 9 years ago

I have been working on the beginnings of a Python module. I have sending working, but haven't yet had a chance to test the reception. I'll see about pushing that up here too.

bbbowden commented 9 years ago

Ok, I've added a fork with my version. Taking a look at the current master project, I've obviously not included a lot of the functionality (broadcast, sending different type values, etc). But hopefully, this is a start for a linux based version of this very helpful library.

therobotworkshop commented 9 years ago

Awesome Thanks guys!

therobotworkshop commented 9 years ago

Actually I did find something the other day and I have seen it before. I tried sending from one Arduino to another to play audio. It defiantly sent ok but the other end would not receive it. It would receive from other units ok. Is there a limit to how many command functions can be called? It seemed to be the tenth one that didn't work?

Rod

majenkotech commented 9 years ago

Yes. If you don't have dynamic memory mode enabled in ICSC.h there is a limit of 10 commands:

#define MAX_COMMANDS 10
therobotworkshop commented 9 years ago

Cheers