USB Serial Communication Continuous


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    11

    Default

    I am sending a sync packet of '239' in a frame of 6 characters, But I find that there is no need for error checking as I am using this mainly for text messaging..

    dave, do you have any kind of squelch circuit in mind ? and how do I detect when the carrier is present ?

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default

    pic-ker, There is no easy way to add a squelch circuit unless the receiver you are using has an RSSI output available. This stands for "Reletive Signal Strength Indicator" and it is an output usually derived from the IF portion of the receiver. If this analog signal was to be compared to a reference voltage that signal strength would be the level that the signal has to be to (open or unsquelch or unmute) the the data stream.

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Few post before you said you didn't use the RF for now.. is this still true?

    If you receive always different things, it sounds like a baudrate problem to me... dpending your config fuses settings, hardware it may ruine your whole life..

    try a simple serial comm before adding the USB.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Feb 2007
    Posts
    11

    Default

    Quote Originally Posted by mister_e View Post
    Few post before you said you didn't use the RF for now.. is this still true?

    If you receive always different things, it sounds like a baudrate problem to me... dpending your config fuses settings, hardware it may ruine your whole life..

    try a simple serial comm before adding the USB.
    Its true, I tested the TX/RX using a wire initially and there were absolutely no problems with the baudrate or noise etc

    Now that I have attached the RF modules I get errors..its probably because this module uses ASK

    Ideally the module should not require CRC bits, what I mean is if you send a '1' you should get a '1'

    Im trying another data link from here:
    www.cappels.org/dproj/LCRFLINK/LCRFLINK.htm

    i'll try it and let you guys know...

  5. #5
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by pic-ker View Post
    Its true, I tested the TX/RX using a wire initially and there were absolutely no problems with the baudrate or noise etc
    Now that I have attached the RF modules I get errors..its probably because this module uses ASK
    Ideally the module should not require CRC bits, what I mean is if you send a '1' you should get a '1'
    Im trying another data link from here:
    www.cappels.org/dproj/LCRFLINK/LCRFLINK.htm
    i'll try it and let you guys know...
    Most of those RF modules use ASK. And generally, they don't need CRC bits (that's all up to you), but what they do need is manchester encoding (aka bi-phase encoding) to keep the internal data slicer from losing it's mind.
    Search for and check that thread I mentioned earlier and you'll see. Basically, you end up cutting your data rate in half by changing all the 1's to '10' and 0's to '01'. Sounds silly but it works great.

  6. #6
    Join Date
    Feb 2007
    Posts
    11

    Default

    Quote Originally Posted by skimask View Post
    Most of those RF modules use ASK. And generally, they don't need CRC bits (that's all up to you), but what they do need is manchester encoding (aka bi-phase encoding) to keep the internal data slicer from losing it's mind.
    Search for and check that thread I mentioned earlier and you'll see. Basically, you end up cutting your data rate in half by changing all the 1's to '10' and 0's to '01'. Sounds silly but it works great.
    I got my RF module to work...I was using the +VCC from the USB port to power the receiver and that was causing some continuous ripple

    I used a battery supply,connected the grounds,used a 0.01uF decoupling cap and now it works..

    Thank you guys for your suggestions...
    I will post the complete project once the VB.net Code is complete..

  7. #7
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by pic-ker View Post
    I am sending a sync packet of '239' in a frame of 6 characters, But I find that there is no need for error checking as I am using this mainly for text messaging..

    dave, do you have any kind of squelch circuit in mind ? and how do I detect when the carrier is present ?
    There's a big, long thread (Serin Serout Problem is what I think it's called) that's got loads of good info on how to use some of those cheap RF modules, explanations on the preambles, sync's, etc.etc., why you need them, how many to put out there, etc. Lots of answers for you in there...

Similar Threads

  1. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  2. Serial data to USB
    By cooksydesign in forum USB
    Replies: 18
    Last Post: - 29th October 2008, 15:10
  3. USB and serial cable connection(s)
    By ardhuru in forum Schematics
    Replies: 3
    Last Post: - 18th August 2008, 15:26
  4. Bafo USB to serial adapter
    By ardhuru in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th July 2006, 18:48
  5. Serial to USB converter
    By jrt4fun in forum USB
    Replies: 6
    Last Post: - 8th August 2005, 15:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts