Replies: 2 comments 8 replies
-
To answer your questions:
The datasheet doesn't seem to forbid this, but I wouldn't be surprised if it was actually not supported - especially since the SX127x register for preamble configuration is in byte units, so calling
That's strange - what is the error?
The payload, CRC, packet length and address are encoded; the sync word is not.
SX1276 supports this, but it's not implemented in RadioLib. Currently 0x55 preamble is used. Regarding the transmit timeouts, I'll check with the sketch in your repository (https://github.com/mrquincle/social_alarm/blob/main/dragino/dragino_2fsk.ino).
You will see a single spectral line regardless of the pin connection - that's just the radio sending an unmodulated carrier. Is your pin 4 connected to DIO2? On most off-the-shelf SX1276 modules, only DIO0 and DIO1 are connected. |
Beta Was this translation helpful? Give feedback.
-
Direct ModeRegarding direct mode, ahhh. Dumb! By connecting the DIO2 to pin 4, I can indeed see the modulations. So, that's one thing out of the way. 👍 Here I generate tones of 0.5 kHz, 5 kHz, 10 kHz, 15 kHz, 25 kHz and 50 kHz at 869.265 MHz. At 50 kHz you see the tones that are most widely spaced apart (at 869.215 MHz and 869.315 MHz). The others correspondingly, sweet. Now, let's see if I did something else dumb in FSK mode as well. :-) |
Beta Was this translation helpful? Give feedback.
-
Dear all, and Jan in particular,
I'm using the SX1276 (Uno + Dragino shield v1.4) in FSK mode to try to synthesize an 2-FSK signal for a device in the SDR band, a so-called "social alarm", see https://github.com/mrquincle/social_alarm for the spectrum analysis and corresponding GNU radio blocks.
Now I've browsing this repository and the discussion quite extensively, but I haven't been able to make the radio do what I want. I first started with trying to receive data, but that's harder to debug, hence I focused on transmitting.
preambleLength
is 0, there's no output, as soon as I set it to 8, there's output on the SDR. I've a sync word set as well. Is it fine to have no preamble set?beginFSK
I get an error, while I can enable it later just fine.transmit
command always timeouts. What could be the reason?If I look at the code in
SX127x.cpp
, the timeout here seems to be 5000000 microseconds, hence 5000 ms, while the comment suggests it should be 5 ms. On the air I also see 5 s rather than 5 ms.However, I see this in more transmit functions so I'm assuming I'm not understanding it right for now.
In direct mode, I can see a single spectral line when I'm transmitting a tone on pin 4 (so I know I've the right pin). If I transmit another tone, nothing changes. I suppose that if I set the radio to say 868.25 MHz, a tone of 1 kHz will be at 868.251 MHz and a tone of 10 kHz will be at 868.26 MHz, correct?
These are - I know - general questions, I will over time add .ino files and how the spectrum looks like bit by bit. Answers will be already highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions