Go Down

Topic: Inserting Start bit and Stop Bit in a serial communicatiom (Read 23923 times) previous topic - next topic

nickgammon


i don't know whats wrong here with you people..


You are asking for help with a device without providing much or any detail. It took reply #26 before you even mentioned the device and so far no link to the datasheet.

Your request to "I want to insert a Start bit and a Stop bit in my Data bits." doesn't make any sense because Serial communication already has Start and Stop bits.

Why did you think it hadn't? What tests have you done to indicate this? How is this device wired up? Over what distance? Is this a home project or are you working for a power company?

The only link you provided ( http://digipak.org/zencart/index.php?main_page=product_info&cPath=4&products_id=212 ) does not mention a datasheet.

Assuming that is all we can go on, how have you wired it up? What is your current code? What is the output from it?

If you are asking us to simply write the code for you, then I suggest you offer to pay. Otherwise I suggest you post what you have done so far.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

nickgammon


tell me if something is wrong with you guys?
...
i don't know whats wrong here with you people..


Better read this thread then:


Thanks for the help and suggestions. I'm not very good at all the coding etc, but i do really enjoy messing around with my arduino's and the support from this community is excellent.


I'll just emphasise that last bit: the support from this community is excellent

So maybe you need to work harder at helping us to help you?
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

Robin2


You are asking for help with a device without providing much or any detail. It took reply #26 before you even mentioned the device and so far no link to the datasheet.



I fully share your frustration. Just don't think moving the project here has alleviated any of it.

It does seem as if the OP is in over his head, or is less interested in his own project than we are.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

steinie44

Without a datasheet, how did you know how to hook it up?
How did you know what protocol to use?
Are you sending data at zero crossing?
Are you receiving data at zero crossing?

Robin2


Without a datasheet, how did you know how to hook it up?
How did you know what protocol to use?
Are you sending data at zero crossing?
Are you receiving data at zero crossing?


It seems to me the device he is using handles all the electrical stuff and just needs a serial link to the Arduino. But without the datasheet I can't be sure. I think the Thread title is completely irrelevant to the problem.

The OP seems to have abandoned us.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

GoForSmoke

OP acts like a boss or client.

"What is wrong with you people?".

Maybe we've been fired or didn't pass the audition.
1) http://gammon.com.au/blink  <-- tasking Arduino 1-2-3
2) http://gammon.com.au/serial <-- techniques howto
3) http://gammon.com.au/interrupts
Your sketch can sense ongoing process events in time.
Your sketch can make events to control it over time.

Robin2


Maybe we've been fired or didn't pass the audition.


Didn't want the effin job anyway

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

GoForSmoke

1) http://gammon.com.au/blink  <-- tasking Arduino 1-2-3
2) http://gammon.com.au/serial <-- techniques howto
3) http://gammon.com.au/interrupts
Your sketch can sense ongoing process events in time.
Your sketch can make events to control it over time.

Abdurrahmanmeer

Here is the kq330f data sheet but dont know how to uplaod it here so here is the link:
https://drive.google.com/file/d/0B-mUkRISLjh1azFQMUJjLXFwaFk/view?usp=sharing
https://drive.google.com/file/d/0B-mUkRISLjh1UXh2NEVFWmdGZ28/view?usp=sharing

Here is a research paper which will help you more than datasheet itself:
https://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CBsQFjAA&url=http%3A%2F%2Fwww.eea-journal.ro%2Fincludes%2FshowArticle.php%3FidentificatorArticol%3D461&ei=TwpnVOfAOsfwaPGwgPgI&usg=AFQjCNEj2QJ7GwvzAWP5eigjbNaprTra2g

F_GARCIA

I have been using the KQ-330 module with great success after a lot of running in circle due to the very limited English Litterature.
KQ-330 is the PLC Modem plus MCU and KQ-130 is the board with al the coupling and filtering component to hook directly to power lines.
Module is taking care of all the encoding and modulation.
Only thing that you have to be careful with is the way you build up your frames since you want to work on with the MODE pin tied down to let the module do all the filtering out.
Frame are :
1 st BYTE : Number of Bytes in the message
Other BYTES : Data
and you receive :
1st BYTE : Nbr of byte in the packet followed by the message.
Xmit and receive buffer is roughly 250 bytes.
One thing to keep in mind is that it is very slow so make sure that you have enough delays between your packets.
One thing I would like to know is the actual distance one can reach, I have read anything from a couple hunderd meters to 1.5 km ???


Go Up