<h1>THE FORUM HAS MOVED,  VISIT US AT OUR NEW SITE www.picbasic.org. Access to this Archive is restricted. Visit the NEW site at www.picbasic.org.  Unless you use the url http://www.picbasic.org you will not gain access to the support forum, wiki and knowledge base. Visit WWW.PICBASIC.ORG  Do not try to log in or register here, use your keyboard and enter the url http://www.picbasic.org directly into your browser. </h1>  

Go Back  

THE FORUM HAS MOVED, VISIT US AT OUR NEW SITE www.picbasic.org. Access to this Archive is restricted. Visit the NEW site at www.picbasic.org. Unless you use the url http://www.picbasic.org you will not gain access to the support forum, wiki and knowledge base. Visit WWW.PICBASIC.ORG Do not try to log in or register here, use your keyboard and enter the url http://www.picbasic.org directly into your browser.

> Proton Development Suite > Proton Plus Compiler v3

Proton Plus Compiler v3 Coding problems and general discussion related to the Development Suite

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 7th February 2010, 23:55   #151
Joerideman
Licensed User
 
Join Date: Nov 2006
Posts: 24
Joerideman is on a distinguished road
Default

I have tried, to put the transmitter code in a 18F242, but I get errors in the include code. Is it possible, to get this code working for a 18F pic?
Joerideman is offline   Reply With Quote
Old 8th February 2010, 10:59   #152
Sean_Goddard
Licensed User
 
Join Date: Jul 2007
Location: N. Wales
Posts: 18
Sean_Goddard is on a distinguished road
Default

I spent ages trying to squirt a few bytes of data across a wireless link, I found the most important thing is the PREAMBLE, if this doesn't balance up the data slicers (yes I KNOW we've been over that a million times before) that data transmission is very unreliable, so I can up with the simply TX and RX code for proving the link.

VERY SIMPLE, all this does is fire a byte $FF) over the link, then every time the Rx sees $FF it increments a count. Best I've had is 480,000 bytes sent with NO loss, and this was over a 40ft link using very low power, hook-up wire for an antenna (35cm). The RX module was placed two feet from a high power WiFi router and two cordless telephones. I even sat next to it using a mobile phone and using my car "blipper" (also on 433.92MHz) and still it only dropped a few (end result show 0.334% lost data) packets.

OK for lengthy data packets this would not be the best solution, but if you just want to trigger an alarm or send temperature, this is a far simpler way that getting hooked up with Manchester encoding or CRC and error correction.

If it's big packets you want to send, use Tims code, it's bombproof.
Attached Files
File Type: bas WiTX_TEST.bas (497 Bytes, 63 views)
File Type: bas WiRX_TEST.bas (749 Bytes, 52 views)
Sean_Goddard is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT +1. The time now is 11:25.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © Crownhill Associates Limited 2002 - 2009