![]() |
|
|||||||
| Proton Plus Compiler v3 Coding problems and general discussion related to the Development Suite |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#151 |
|
Licensed User
![]() Join Date: Nov 2006
Posts: 24
![]() |
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?
|
|
|
|
|
|
#152 |
|
Licensed User
![]() Join Date: Jul 2007
Location: N. Wales
Posts: 18
![]() |
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. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|