1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

DATA transmission/receiving using SCR Radio modules.

Discussion in 'Oshonsoft' started by camerart, Oct 10, 2016.

  1. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    20,742
    Likes:
    620
    Location:
    Ex Yorks' Hants UK
    hi C,
    As I understand the datasheet, I believe the SX must in Standby when programming.

    E

    EDIT:
    Are you following the TX procedure for OOK [On Off Keying] as per this image clip.

    I would expect the TX RF output to be zero when not transmitting or when the transmitted data BIT is a '0' and full TX RF when the BIT is a '1'

    https://en.wikipedia.org/wiki/On-off_keying
     

    Attached Files:

    • A02.gif
      A02.gif
      File size:
      69.1 KB
      Views:
      26
    Last edited: Dec 9, 2016
  2. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi Eric,
    1/ If I don't get a change after a new setting, I add a STANDBY just before the setting, as I don't think STANDBY is always needed??
    2/ I'm not sure! I keep trying different settings, as it is difficult to understand. From what you understand, how many connections between the PIC and SX do you think are needed (minimum).
    If it is easier for you, I'm happy with DATA sheet reference, i,e, 4.2.1 =Transmitter Startup Time, and one I'm looking at in conjunction with TST is 5.3.1 =DIO Mapping, Continuous Mode. (This will save copy and past)
    3/ Me to, but so far it looks opposite.

    EDIT: What is Tbit?
    c.
     

    Attached Files:

    Last edited: Dec 10, 2016
  3. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    20,742
    Likes:
    620
    Location:
    Ex Yorks' Hants UK
    Hi,
    I take it as a 'data Bit's time duration', it is dependent upon the data modulation rate of the RF signal

    When you are testing for TX, are you actually writing data to the SX after receiving the TX Ready Interrupt.?

    OR
    just Enabling the TX Synth and Transmitter Block, which will NOT give a RF output.

    E
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi,
    1/ I presume, there needs a small delay, before Switching between TX and RX 'say' 1ms for now??
    2/ No, I've just been TX--RX, which as you say doesn't work.
    3/ Regarding RegDioMapping Do you think I need all of the PINs connected or will it work with two e,g, TX= DIO2 set to DATA and DIO5 set to TXREADY and RX= DIO2 set toDATA and DIO5 set to RXREADY? OR as you mentioned in 2/ Do I need to connect a PIN to receive the TX and RX ready BIT?

    C.
     
  6. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    20,742
    Likes:
    620
    Location:
    Ex Yorks' Hants UK
    hi C,
    There maybe on board pull ups on the DIO pins, so it may require the unused DIO's to be pulled Low.?????
    When the SX is powered up, measure the voltage on the unused DIO pins as a check.

    What does the SX d/s say regarding unused pins.?
    E

    Clip from d/s ref DIO
     

    Attached Files:

    • A01.gif
      A01.gif
      File size:
      64.6 KB
      Views:
      19
    • A02.gif
      A02.gif
      File size:
      53.5 KB
      Views:
      17
    • A03.gif
      A03.gif
      File size:
      13.9 KB
      Views:
      19
    • A04.gif
      A04.gif
      File size:
      36.6 KB
      Views:
      20
  7. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi E,
    1/ Single figure mV
    2/ Nothing.

    P.S. As mentioned before: I have the DATA sheet, and am happy for you to post references e,g, 5.3.1 = Table 20. It will save you posting Gifs.

    C.
     
  8. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi,
    Setting RegDioMapping 1 and 2
    If I understand correctly for the minimum of PINS, there needs to be 1 PIN reading the TXREADY BIT (Which could be the TBIT??) and needs a little time before reading it, 1PIN for MODEREADY and 1 PIN for DATA.

    So using the minimum PINS, 1/TXREADY--2/ MODEREADY and--3/ DATA.

    If DIO3 is chosen for TXREADY. DIO5 for MODEREADY and DIO2 for DATA.

    RegDioMapping1 for PINS 0-3 and RegDioMapping2 for PINS 4-5 plus CLKOUT frequency.

    =RegDioMapping1 %1111xxxx sets PINs DIO3 and 2
    =RegDioMapping2 %xx110111 sets PIN DIO5 and CLKOUT OFF.
    C.
     

    Attached Files:

    Last edited: Dec 12, 2016
  9. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    20,742
    Likes:
    620
    Location:
    Ex Yorks' Hants UK
    hi C,
    Your description looks OK to me.
    We are assuming that DIOX is represented by Bit 7 and 6 of the Byte being loaded into Registers 0x25 and 0x26.
    E
    BTW:
    I would suggest that you discover what will be maximum range of the Transceivers when using OOK rather than Lora.
    From the brief notes I have read it suggests that the Lora mode is required for ranges up to 1 mile.
    The RF power output is only 100mWatt.???
     
  10. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Double posting
     
    Last edited: Dec 12, 2016
  11. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi,
    #57 Shows a couple of errors! I misread the DATA sheet BITs e,g, TXMODE should be %00001100, not %00000011. I think you thought when I added BIT7 =1 that it was for the WRITE bit, but it was to switch off the sequencer.
    With sequencer off TXMODE should be %10001100 0x8c.

    I've tried this setting, but still no transmission:(

    Now I've got to climb over this dead end;)

    C.
     
  12. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi,
    I've been none stop trying to get the SX1231 CHIP/MODULES working, but after checking CHIP PINS to BOARD PINS, couldn't find where PIN19 RXTX connects to. This is used to switch between RX and TX. So I've almost given up on these SX1231 CHIPS. This may be why in the beginning I got it to transmit, and now it doesn't.

    I've switched to SX1278. Beware buying incorrect CHIPs, I've just spent weeks trying to get incorrect chips to work!!
    C.
     
  13. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    20,742
    Likes:
    620
    Location:
    Ex Yorks' Hants UK
    hi C,
    Who the supplier and type number of the assembled PCB.?
    E
     
  14. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
  15. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi,
    Here's what I've got so far. I've put the program in #1 18F2420 8MHz-INT SX1278 OOK TX SLEEP 130117 1200
    At about a metre it shows a signal on SDR# see image. And when the aerial is connected to an oscilloscope it shows 0.1V spike, see image.
    There is something happening, but I could be only getting the signals from the oscillator.
    any ideas, anyone?
    C.
     

    Attached Files:

  16. camerart

    camerart Member

    Joined:
    Jun 12, 2008
    Messages:
    879
    Likes:
    5
    Location:
    Dorset UK.
    Hi,
    I've updated the 18F2420 8MHz-INT SX1278 OOK TX 190117 1000 program in #1 to a simpler version.
    Sadly same poor results as shown in #74
    C.
     

Share This Page