Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status? #6

Open
pdgilbert opened this issue Jul 28, 2020 · 4 comments
Open

status? #6

pdgilbert opened this issue Jul 28, 2020 · 4 comments

Comments

@pdgilbert
Copy link

I am managing to get a small example to build and run, that is not panic, on different MCUs, but am having no luck with communication to a receiver. I think I have all parameters set the same on sender and receiver, so I am wondering if I really should be expecting that this package is working. I have been playing with release, this git version, and the git version https://github.com/mvniekerk/sx127x_lora which seems more active recently.

Does anyone actual have send and receive examples working in a way that they communicate?

The fork at https://github.com/mvniekerk/sx127x_lora does not have issues enabled. I think that is usually an indication (hope) that a pull request will eventually merge that fork back here, so issues should be tracked here. Is that a fair assumption?

@akloboucnik
Copy link
Contributor

akloboucnik commented Sep 15, 2020

I do, with a RFM95W <-> NiceRF LoraV2 boards, also RFM95W <-> pycom.io LoPy boards. What does you initial configuration look like?

E.g.

radio.set_tx_power(20, 1).unwrap();
radio.set_spreading_factor(12).unwrap();
radio.set_preamble_length(8).unwrap();
radio.set_coding_rate_4(8).unwrap();
radio.set_signal_bandwidth(125_000i64).unwrap();
radio.set_crc(true).unwrap();

Is the configuration really same on both sides? Can you verify that the transmitting side really is transmitting using e.g. some SDR tool?

@pdgilbert
Copy link
Author

Checking with SDR there is no transmission. Strangely, after I have run the code once there is a chirp on again starting up with gdb, before I reach the first brkpt at entry. But then nothing. The startup chirp does not happen if I comment out any lora.set_tx_power(...) lines.

I have tried various settings for lora.set_tx_power(...) with no luck. Possibly I am confused about the second argument. Comments in some examples suggest this is a pin, but I think it is just 1 or 0 indicating PA_boost or not?

@pdgilbert
Copy link
Author

The code seems to make no use of DIO0 - DIO5. @akloboucnik are you leaving those unconnected, or connecting them to something? (I am using mostly RFM95 like sx127x based boards, but have been trying some others too, on several different stm32 boards.)

@pdgilbert
Copy link
Author

Forgot to mention that above testing was with the @hdoordt fork (https://github.com/hdoordt/sx127x_lora) which seems most active at the moment, but have also been trying with the fork by @mvniekerk . There is a small difference in the API, @hdoordt removed the necessity to specify the length of the transmit buffer, which seems like an improvement but makes switching back and forth more work.

The original at @mr-glt no longer seems to be available in the sense of indicating it in cargo.toml. I am now getting

Updating git repository `https://github.com/mr-git/sx127x_lora`
error: failed to get `sx127x_lora` as a dependency of 
...
Caused by:
  failed to acquire username/password from local configuration

I'm not sure if that is intentional or a bug, or some change that I need to accommodate differently at my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants