Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 27, 2024, 08:05:47 20:05


Login with username, password and session length


Pages: 1 [2]  All
Print
Author Topic: What kind of protocol do you prefer?  (Read 8995 times)
0 Members and 1 Guest are viewing this topic.
luca_l
Guest
« Reply #25 on: December 31, 2007, 05:04:32 17:04 »

I ' m looking for a 'Tutorial by Example'  for Modbus!

  Roll Eyes or any suggestion are  welcomeRoll Eyes

Many Thanks in advance  Cry

Luca
Logged
lrom
Guest
« Reply #26 on: December 31, 2007, 07:10:25 19:10 »

Hi, I use I2C prtocol.Its fast and requires only 2 pins, and in future you can connect more devices.Configure one pic in master mode and other one in slave mode.

Most PIC's has it as a hardware peripherial.
Logged
narc60
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 12
-Receive: 1


« Reply #27 on: January 04, 2008, 05:15:28 17:15 »

luca_l,

After reading your post, I looked in the C:\Program Files\PICC\Drivers folder and Modbus.c is indeed included. I should have tried to write a program first. I was trying to gather as much info as possible as I have a project in mind that's why I was searching the CCS forum. Thanks for sharing the info.
Logged
luca_l
Guest
« Reply #28 on: January 04, 2008, 08:59:41 20:59 »

            Dear  Narc60

We are going to  the    same direction, Shocked
if you like we can  share our first steps on modbus worldCheesy
 
cheer
Luca
Logged
tenir
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 1
-Receive: 0


« Reply #29 on: January 06, 2008, 12:07:55 12:07 »

I use cab bus. its works perfect in noisy environment. it also works good with ccs can driver
Logged
xirix
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 0
-Receive: 1


« Reply #30 on: January 16, 2008, 09:05:09 09:05 »

Can you suggest a serial bus with followings:
 - master + n slaves
 - large nr. of slaves (~128)
 - master to slaves up to 100-200m
 - power over net (slaves powered by bus; aprox 1mA/slave)
 - small speed (10-50kbps)
 - error checking for noisy environment
 - easy debug in case of failure

Thanks
Logged
vsmGuy
Junior Member
**
Offline Offline

Posts: 35

Thank You
-Given: 11
-Receive: 7


« Reply #31 on: January 27, 2008, 10:21:39 10:21 »

What about SMBus ?
Logged
xirix
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 0
-Receive: 1


« Reply #32 on: January 28, 2008, 06:22:09 06:22 »

SMBus is slow speed serial bus derived from i2c. I don't think is usefull for long distances.
Logged
crastoverkill
Guest
« Reply #33 on: January 28, 2008, 12:05:39 12:05 »

Hello, i've coded an PID temperature controller, with some codes i've learned on books, and i've some dificulties to tunning it. system error becomes greater more and more. has one technik in especial for tuning PID for temperature controls? (sorry by my poor english)
Logged
dreamwithin
Guest
« Reply #34 on: February 05, 2008, 02:58:25 02:58 »

I use rs232 for short distance, it is simple but not reliable, I still prefer CAN bus. If you use CCS C ,CAN will be the best and simple way to do communications.
Logged
lillbear
Senior Member
****
Offline Offline

Posts: 276

Thank You
-Given: 223
-Receive: 182



« Reply #35 on: February 05, 2008, 04:26:03 04:26 »

Hi check S.N.A.P - Scaleable Node Address Protocol -> http://www.hth.com/snap/

S.N.A.P is an free and open network protocol. The protocol was primary developed for PLM-24 based
home automation and control systems but it is a generic protocol and not limited to this. S.N.A.P can be
used in any type of applications where an easy to learn and light weighted network protocol is needed.
Features.
   
   - Easy to learn, use and implement.
   - Free and open network protocol.
   - Free development tools available.
   - Scaleable binary protocol with small overhead.
   - Requires minimal MCU resources to implement.
   - Up to 16.7 million node addresses.
   - Up to 24 protocol specific flags.
   - Optional ACK/NAK request.
   - Optional command mode.
   - 8 different error detecting methods (Checksum, CRC, FEC etc.).
   - Can be used in master/slave and/or peer-to-peer.
   - Supports broadcast messages.
   - Media independent (power line, RF, TP, IR etc.).
   - Works with simplex, half-, full- duplex links.
   - Header is scaleable from 3-12 bytes.
   - User specified number of preamble bytes (0-n).
   - Works with synchronous and asynchronous communication.
   - Works with our free PLM-24 < > TCP/IP Gateway software.

yours
Logged
alichan
Junior Member
**
Offline Offline

Posts: 94

Thank You
-Given: 28
-Receive: 88


« Reply #36 on: February 06, 2008, 09:17:08 21:17 »

You should take in consideration:

Max speed required.
Ammount of data to be transmited
Max length of wires (distance between MCUs)

These are the main issues to be taken in consideration, of course there're others.
Just can use custom protocols, parallel communication (ppl), rs232, rs482, spi, i2c, field protocols (modbus, iec)... tcp/ip  (why not? it only depends on your needs).

Hard question to be answered with so less information.

Always try the simpliest protocol that solves your needs.
Logged
Pages: 1 [2]  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC