Hello everyone! I am working on power line communication and i am getting confused whether i should go for serial communication or any other protocol, Can anyone suggest me the same.
Regards, Salma
You can't do anything but serial communication, unless you are planning to communicate on multiple phases at the same time.
I2C is serial. SPI is serial. UART is serial. CAN is serial. USB is serial. FireWire is serial.
But you must consider using a protocol on top of the serial data, since you must make sure that the receiving end can figure out if it got a correct transfer or not. And most probably, you will want to implement a resend function.
Look at existing standards available first?
That is what I suggest since this has already been done elsewhere.
Stephen
Yes Sir! it has been done,but i am trying for the low cost one. my application is automatic meter reading. with simple power line modem and simple low coast microcontroller.
Salma
And the Echelon solution is too expensive?
ECHELON? What is that? I am using simple IC from nxp semiconductors. As i am new to 'C' I am not getin how to start with the serial communication implementation. Suggestions are welcome if any!
www.echelon.com/.../neuron.htm
Break your project into smaller pieces.
One piece is using your processors to communicate directly between each other.
A second piece to worry about the electrical interfaces for using the power grid.
I wasn't joking when I listed a large number of serial technologies. You really have to consider what to use. If you are going to use the UART of the processor, or maybe something fancier.
"As i am new to 'C' I am not getin how to start with the serial communication implementation."
So, are you clear on how to do the "serial communication implementation" itself - aside from implementing that in 'C'?
The actual interface will be totally unaware of what programming language you use - it just works as described in its datasheet - so you need to understand how the underlying platform works before you can think about implementing that in any programming language!
As Per says, have you decided which particular serial interface you are going to use?
Have you checked for application notes, examples, reference designs, etc on the NXP site, or your distributors site, or elsewhere on the internet?
See: www.8052.com/.../160143
it has been done,but i am trying for the low cost one. my application is automatic meter reading.
with 1,2 or 3 ADCs etc added to "the low cost one" I will virtually guarantee you will come up with something more expensive than using one of the dedicated meter chips (some have a '51 core).
Erik
yes i have gone through the perticular datasheet.It has been given that,the perticular pin should be low to transmit orto receive.In this manner i have understood the theory of protocol implementation. I am using RS232 interface with c51
I think he's talking about low-cost powerline modems rather than the actual metering bit?
However, the spirit of your comment may well apply - ie, getting a "cheap" modem to actually work reliably and with the required performance may well end up being more expensive than just using a "good" (ie, more expensive) modem in the first place...!
Especially if you need to account for the cost of your time...