Off Topic?? - Serial coms.


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216

    Default Off Topic?? - Serial coms.

    Hi all,
    This may be off topic, but since the project will be using PICs, perhaps it isn't?

    What is the simplest way to initiate two way, ie point to point, comms with the remote end recovering power from the loop?
    Protocal would be master interogate, slave answer, repeat ad infinitum.
    I have tried RS485 over 500 metres and it works great, but am unable to recover DC from the loop to drive the circuitry at the remote end.
    This comprises 2 X 12F675s ONLY to be powered. (fleapower really.)
    Years ago I did have details for modified 4-20mA loop with DC recovery but have long lost all info.
    Can anyone suggest a solution or point me at a site with one. Have checked a lot of circuit archives without success. BTW the method MUST be real cheap, or is cheap and good mutually exclusive?

    Speed is not really important, even 300baud would be OK, anything PIC generatable is OK, up to about 4800.
    Peter Moritz.
    Up the bush, Western Plains,
    New South Wales,
    Australia.

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


    Did you find this post helpful? Yes | No

    Default

    You could try to modulate your serial data over the PSU line. At very slow baudrate it have to work. I know Melanie already gave an example of that somewhere here.
    Steve

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

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Just a thought...
    Power lines sits at 12v normally, PIC and associated circuitry runs off 5v or less, so maybe it's got a regulator running to it, or it's running off a battery pack that's slow charged off the normally 12v line...whatever might work.
    Modulate (send the data) the power line between 12v and 5v (i.e. 12v = 1, 5v = 0), use an op-amp at the RX end to 'subtract' 7v from the power line and feed that output into the RX pin of the PIC.
    Got no idea how I'd do it off the top of my head. Could probably come up with something if I'd put my mind to it.
    But it's just an idea that might get you going.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Would this work?

    A quick idea. Have not tried.

    Input from Serial charges cap. When voltage is high enough to start pic, P1 goes high switching signal to P2. P2 receives signal. P3 sends signal. Cap would be 4700 or larger.
    Attached Images Attached Images  
    Dave
    Always wear safety glasses while programming.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    A quick idea. Have not tried.

    Input from Serial charges cap. When voltage is high enough to start pic, P1 goes high switching signal to P2. P2 receives signal. P3 sends signal. Cap would be 4700 or larger.
    I'd use a small battery pack rather than a cap, trickle charge the pack off the serial line when you can, diode block it so the pack can't feed back into the data line. Cap's are too unreliable in cases like this.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I'd use a small battery pack rather than a cap, trickle charge the pack off the serial line when you can, diode block it so the pack can't feed back into the data line. Cap's are too unreliable in cases like this.
    You might be right about the caps being unreliable, but the current is so low on the lines it might take some time to charge the battery pack.

    Question - I thought RS485 voltage was negative without a signal on the line?

    My original idea came from thinking about RFID chips.
    Dave
    Always wear safety glasses while programming.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    You might be right about the caps being unreliable, but the current is so low on the lines it might take some time to charge the battery pack.

    Question - I thought RS485 voltage was negative without a signal on the line?

    My original idea came from thinking about RFID chips.
    If it is, then hook the battery up backwards
    Seriously...I'm thinking that even a small battery with an intial charge on it would probably maintain thru the '485 line. And a '675 should be able to run on sub-milliamp current.
    How often will the RX be powered, what's it's average daily 'duty cycle'?

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    More fun to hook caps up backwards.
    Dave
    Always wear safety glasses while programming.

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    More fun to hook caps up backwards.
    Now you're speaking my language...
    I always say 'Everything comes prepackaged with a certain amount of smoke. You let that smoke out, it quits working.' (goes for cars too)

  10. #10
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Thanks blokes, I have found a thing called Pbus which looks promising so I'm gunna have a further look at it.
    Peter Moritz.
    Up the bush, Western Plains,
    New South Wales,
    Australia.

Similar Threads

  1. Replies: 33
    Last Post: - 19th March 2010, 03:02
  2. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  3. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  4. Serial coms with a pc
    By Andre_Pretorius in forum Serial
    Replies: 13
    Last Post: - 18th June 2007, 14:41
  5. PIC16F819 serial coms
    By c6jones720 in forum Serial
    Replies: 2
    Last Post: - 13th June 2007, 19:46

Members who have read this thread : 1

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