-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fork as a non-tessel specific module #17
Comments
Hey @techniq, First off, this library would be the appropriate place to add UART support as well as I2C. Though our module only exposes its I2C lines, Tessel could be directly wired to Adafruit's board (say over the GPIO port) so it's worth covering all cases. As for making this library portable, here's our story for that right now: work done by @nlintz in his "Portable Tessel Client": https://github.com/nlintz/PTP-Tessel includes an implementation of Tessel's generic hardware API (UART, I2C, SPI, and GPIO drivers) that work across BeagleBone, RasPi, and Cubieboard. Most of our npm modules can work using these drivers unmodified. So |
Also since this is the first mention of PTP stuff online: we want to split the driver code component (SPI, I2C, UART, GPIO interfaces) from the code pushing component, but for the moment they're bundled together in PTP-Tessel. |
Hmm, while the PTP-Tessel project definitely looks promising and would allow me to use |
(I believe @nlintz did get PTP as a proof of concept working on BBB, we should ensure that makes it to master). We saw there's a gap between comprehensive platforms like Cylon / Johnny-Five and just the underlying driver layer, so we tried to abstract that without being too opinionated. Plus, not every library seemed to offer full support for GPIO+I2C+UART+SPI. But I can understand wanting to do a proper port. If you're interested in forking the library to target a specific library or platform, we would encourage that. We can collaborate and ensure UART support works solidly for Tessel as well. |
Sounds good, I'll let you know what I ultimately decide. I'm currently working on migrating my environment to run within a docker container on the BBB (which I have mostly working) but once that settles down I plan to look at dropping the libnfc dependency. I'll probably start by just forking this project and making the changes needed to get it working on the BBB, then finding the best way to abstract out the BBB dependency while still maintaining support for Tessel, RPi, etc. Thanks for your feedback and pointing me at the PTP-Tessel project as that might very well come in handy. |
No problem! Also, @techniq, I'd love to know if you have links about getting Docker on BBB working. I tried a few months back but mostly came up empty. |
I have some notes currently on a private github repo. I can look at posting them on a public gist if you need more details, but the short of it is:
For docker base container images, I'm currently using mazzolino/armhf-debian, which includes
The debian images are at least 150MB smaller than the Ubuntu images it seems, and I was able to setup NodeJS on the armhf-debian one (although I saw Docker 1.2 has better device support (not requiring running the containers with This post ended up not being as short as I intended, but should give you a good start. My notes include how to flash both disk and partition images, resizing the rootfs partitions to fill the SD card, and other various reference docs. We can chat sometime if you need some help getting things setup. Hope this helps :) |
I've been working on a project using a BeagleBone Black and the pn532 (Adafruit's breakout board) and am currently using the nfc node module, which just provides node bindings to the libnfc C++ based library. I've been considering writing a native implementation when I came across this project. The MIT / Apache license permits a fork, but I wanted to get your feedback on the idea. I would be interesting in collaboration on the project so we could guarantee the same library could work with tessel as well as beaglebone black, raspberry pi, etc. I'm currently using the UART interface to communicate with the pn532 and it looks like this project is using I2C. I have some PCB created based for the UART connection so I would need to make sure the new/updated library could use both UART and I2C.
Thoughts?
The text was updated successfully, but these errors were encountered: