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

USB-based antennas? #3

Closed
Ocramius opened this issue May 7, 2021 · 2 comments
Closed

USB-based antennas? #3

Ocramius opened this issue May 7, 2021 · 2 comments

Comments

@Ocramius
Copy link

Ocramius commented May 7, 2021

Hey there,

I jumped here after looking at the general topic surrounding the SurePetCare products and their unfortunate decision to use MiWi instead of Zigbee.

This is therefore just a question: I see that you used:

Based on a quick code skim, I can assume you use the bee-click as a raw antenna, and then used the bundled MicroChip libraries to send raw signals through it?

Is that correct? Do you think (or know) if such an approach would also work through an USB antenna?

My question spawns from the fact that I (attempt to) run all IoT software within docker within a small rack server, kept under strict control. In an ideal world, I'd plug in an USB antenna to the server, then mount the device/make it available as a TTY within the running container (potentially your software).

Do you happen to know if that's remotely possible, or if we're operating at a too high abstraction layer?

As a backref, I'm coming from plambrechtsen/pethublocal#4

EDIT: was thinking of https://www.mikroe.com/click-usb-adapter, basically - if the USB component can just be exposed as a TTY or similar, I can mount it as a docker volume, and then run the software from there. No idea if that makes any sense, or if it is workable at all :D

@mretallack
Copy link
Owner

Hi @Ocramius, using the Click-Usb-Adaptor instead of the Pi should work, you would need to change the interface layer (interface.c) to use the USB interface instead of the Pi's SPI.

The Click-USB-Adaptor uses a FT2232H, A quick google shows there are two methods of doing this; linux driver and libftdi:

https://christian.amsuess.com/idea-incubator/ftdi-kernel-support/

@Ocramius
Copy link
Author

Hey @mretallack!

Thank you so much for pointing me in the right direction! I will indeed try this out, thanks, and keep up the good work 💪

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