Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
hi,
As I recall you want OOK mode.?
Which means RegOpMode.7 = 0, so I would guess that all not valid bit patterns will not be accepted.
Please post the actual bit pattern you are trying to Write to the RegOpMode.
E
I'm guessing that SEND to the RegOpMode (Or any address) needs to be done as a byte, but if you think each bit could be set individually, this would be good.
Hi Eric,hi C,
The device expects a Byte for the Address followed by a Byte for the Data to be written to that Address.
If you want to see the Bits in a Byte, use
SPICSOn
SPISend %10000000' Write to an Address, Set Bits 0 thru 6, to suit the required Bit Address, the RED BIT 7, means this is a WRITE operation.
WaitUs 10
SPISend %00001111 ' Set Bits to suit the required Command
SPICSOff
I would strongly recommend that you decide which mode of operation you need for your application and focus on getting that working instead of trying combinations.
It is all in the SX1276 datasheet I have posted.
E
Hi Eric,hi,
Why are you learning Morse, when the TXR can work using standard Baud rate operation./ Pages 46/47 of the datasheet.?
Have you seen this link.?
https://software.intel.com/en-us/iot/hardware/sensors/sx1276-lora
E
Why learn Morse? I'm a radio HAM, and this is what some of us do.
Morning Eric,hi C,
I thought this Thread was related to SX1276 Data Transmission for the Tracker finder.??
E
Hi,
I've established that when the SX1231 is in RX mode it shows it's transmitting, but when in Tx is isn't. Bit of a puzzle.
I'm guessing that getting it to transmit in TX mode, there are many settings to get correct.
Anyone have ideas?
C.
Hi Eric,hi C,
When you say, when the SX1231 is in RX mode it shows it's transmitting, is ambiguous, could you explain in more detail how you checked the TX RX.?
Which mode of Transmission are you using.?
E
hi C,
Refer these two images.
You ONLY OR the Reg Addresses for a Write Command, NOT the Data being Written to the Regs
E
Const regopmode = 0x01
Dim wregopmode As Byte See below SPI
wregopmode = 0x01 Or 0x80 'Or 0x80 switches bit7 ON. This is needed to SPI change address value.
'DATA
Dim standbymode As Byte 'Including the rest of the byte
standbymode = 0x01 '%10000001
Dim fsmode As Byte 'Frequency synthesizer
fsmode = 0x82 '%10000010
Dim txmode As Byte '%10000011 ; Why is the TX mode Bit7 Set High.???? I only started this the day before, after misreading #43
txmode = 0x83
Dim rxmode As Byte '%10000100
rxmode = 0x84
'ADDRESS
Const regdatamodul = 0x02 '0x48 '%01001000 6-5=11 Cont without. 4-3=01 OOK
Dim wregdatamodul As Byte Same here
wregdatamodul = 0x02 Or 0x80
'DATA
Dim contookmode As Byte 'RegDataMode
contookmode = 0x68 '%01101000
'ADDRESS
Const regpalevel = 0x11
Dim wregpalevel As Byte Same here
wregpalevel = 0x11 Or 0x80
'DATA
Dim pa0onpower31 As Byte 'Output power 31 =11111
pa0onpower31 = 0x9f
SPIPrepare
WaitMs 5000
mainloop:
'SPI=====================================================
SPICSOn
SPISend wregopmode 'RegOpMode I added the 'w'regopmode because I was unable to simply use 'OR 0x80' (I thought this is the ADDRESS to be written to
SPISend txmode 'TX MODE ; and this is the DATA to be written to it) Is this incorrect?
SPICSOff