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

Set tx power level via commandline param #5

Open
chriso0710 opened this issue Jan 10, 2017 · 5 comments
Open

Set tx power level via commandline param #5

chriso0710 opened this issue Jan 10, 2017 · 5 comments

Comments

@chriso0710
Copy link

chriso0710 commented Jan 10, 2017

Hi all,

I am looking for a way to set the transmit power level for url advertising.

I can see in
https://github.com/nirmankarta/PyBeacon/blob/master/PyBeacon/PyBeacon.py#L131
that the signal strength/tx power is set to 0xed, which should be -19dbm according to the eddystone url specification at
https://github.com/google/eddystone/tree/master/eddystone-url

Would it make sense to make that value configurable via a commandline parameter? Maybe something like

pybeacon -u <url> -p <powerlevel>

powerlevel could be a string like "weak, normal, strong" or a number.
What do you think? Did anyone already test other power values, would that actually work on a Pi 3?

Christian

@PrabhanshuAttri
Copy link
Collaborator

PrabhanshuAttri commented Jan 15, 2017

Hi @chriso0710 that's a great idea. When I started this project, I thought about it but never got the time to do it. It would be great if you play around and do it. We will get it merged in eddystone repo.

@chriso0710
Copy link
Author

Thanks for the feedback @PrabhanshuAttri .
I am going to do some tests and send a PR.

@PrabhanshuAttri
Copy link
Collaborator

Cool.
PS don't forget to take pull before you start working.

Cheers

@PrabhanshuAttri
Copy link
Collaborator

@chriso0710 any updates?

@chriso0710
Copy link
Author

Sorry, did not have time to work on this. Too much stuff going on ATM.
But hoping to tackle this soon...

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

No branches or pull requests

2 participants