CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

K.I.S.S. / SMACK Protocol

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
zagoaristides



Joined: 08 Jul 2007
Posts: 15
Location: Cordoba - Argentina

View user's profile Send private message Visit poster's website ICQ Number

K.I.S.S. / SMACK Protocol
PostPosted: Sun Aug 31, 2008 6:35 pm     Reply with quote

Hello, I'm trying to make any of these protocols work in a pic. I need to make a token ring connection so every PIC connects to a master who receives data at high speed via RS232 (I use the port not the protocol). If anyone has something related to this please contact me so we can speed up things. Thanks a lot.

It goes like this:
http://www.ka9q.net/papers/kiss.html
http://www.symek.com/g/smack.html

And something helpful about the messages

http://www.javagroups.com/javagroupsnew/docs/javadoc/org/jgroups/protocols/SMACK.html
gip_mad



Joined: 23 Aug 2008
Posts: 24
Location: Italy

View user's profile Send private message Visit poster's website

PostPosted: Wed Sep 03, 2008 8:46 am     Reply with quote

I don't know these protocols, but did you consider using a CAN bus? Very affordable, already integrated in some PICs, safe, collison detection....
zagoaristides



Joined: 08 Jul 2007
Posts: 15
Location: Cordoba - Argentina

View user's profile Send private message Visit poster's website ICQ Number

Reply
PostPosted: Sun Sep 14, 2008 5:32 pm     Reply with quote

gip_mad wrote:
I don't know these protocols, but did you consider using a CAN bus? Very affordable, already integrated in some PICs, safe, collision detection....


The thing goes like this, maybe you can help me. I want to send the data from a sensor device with 3 accelerometers (3 axis) via X(any) protocol to a master pic, but this master has to check how many devices (Maxim of 3) are connected to it. Well I thought about a token ring with this protocol because I can put a head data in the transmission so then the repetition is increased by one in each device, so when the full stream of data arrives to the master, it can check how many devices connected to that port it has. But I'm stuck.
gip_mad



Joined: 23 Aug 2008
Posts: 24
Location: Italy

View user's profile Send private message Visit poster's website

PostPosted: Mon Sep 15, 2008 12:24 am     Reply with quote

For this low device count, I think you're better use simple analog input to every sensor... But for the bus thing, well, CAN can do the trick! You can send a "broadcast" message, and every sensor replies without collision so you know who is connected. Adding a sensor is as simple as plug-in... As long as you put different addresses on every device. You can also negotiate addresses at power up as I did in my application.
Can can also be very fast, so it can be used in real time applications (it is designed for automotive communications).
zagoaristides



Joined: 08 Jul 2007
Posts: 15
Location: Cordoba - Argentina

View user's profile Send private message Visit poster's website ICQ Number

PostPosted: Tue Feb 24, 2009 10:33 am     Reply with quote

gip_mad wrote:
For this low device count, I think you're better use simple analog input to every sensor... But for the bus thing, well, CAN can do the trick! You can send a "broadcast" message, and every sensor replies without collision so you know who is connected. Adding a sensor is as simple as plug-in... As long as you put different addresses on every device. You can also negotiate addresses at power up as I did in my application.
Can can also be very fast, so it can be used in real time applications (it is designed for automotive communications).


Do you have an example of the use and some text to read?

Thanks
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group