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

Display, Transmit and Receive RSSI values on Ebyte E49-400T30D #67

Closed
ahwahtai opened this issue Dec 8, 2023 · 3 comments
Closed

Display, Transmit and Receive RSSI values on Ebyte E49-400T30D #67

ahwahtai opened this issue Dec 8, 2023 · 3 comments

Comments

@ahwahtai
Copy link

ahwahtai commented Dec 8, 2023

Hi Kris, thanks for the providing the ebyte library and also for the introduction on https://www.youtube.com/watch?v=hMjArKGucFA

I am using two Arduino Uno's and two E49-400T30D units. I have been trying to study the code in the libraries and also the datasheet but am not able to understand how to display, transmit, and/or receive the RSSI values after setting the M0 to "LOW" and M1 to "HIGH" on either unit

E49-400T30D_Usermanual_v1.2EN.pdf

Would you be willing to help me figure this out please? Thanks!

@KrisKasprzak
Copy link
Owner

The EBYTE modules you are using do not support RSSI, the company does have some that support RSSI. This library was written before RSSI modules were available and does not support RSSI features.

@ahwahtai
Copy link
Author

Thank you for responding so quickly, Kris. It is much appreciated!

Hmmm ... that is very strange! I am reading in the datasheet (section 6: Operating mode) and 6.3 that the unit will output a strength value (relative value) through the serial port every 100ms if the RSSI mode is enabled (mode 1). I hope I am not reading it wrongly?

@KrisKasprzak
Copy link
Owner

ahhh I was reading the wrong section. This lib does not support reading RSSI but you can read it directly

You would simply drive M0 HIGH, M1 LOW, then read the serial buffer

something like this untested code
digitalWrite(M0_PIN, HIGH);
digitalWrite(M1_PIN, LOW);

while (1) { // don't do this, need a better way to prevent runaway loops
if (Serial.available()){
uint8_t data= Serial.read();
int rssi = -(256 - data);
break;
}
}

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