|
|
|
Re: USB and Binding [message #1777017 is a reply to message #1776986] |
Thu, 23 November 2017 15:52 |
Kai Kreuzer Messages: 673 Registered: December 2011 |
Senior Member |
|
|
Ok, I see. If you need "pure" USB support, then RXTX won't help you any further.
The only USB library I have come across so far is http://usb4java.org/ - I do not have any experience with it myself, though. If this is what you need, we can certainly discuss adding it to the stack.
Regarding your questions:
It depends. If you feel that the binding is important for other solutions (e.g. commercial ones) than openHAB, ESH would be the right place. Otherwise, contributing to openhab2 is easier (as it involved less work on the project management side for me). If in doubt, my general suggestion is to contribute it to openhab2 and if somebody else is interested in using it, it can be easily moved over to ESH (we have done so for Sonos and Astro binding already). For TE923, I would tend to say that openhab2 might be the better choice.
Regards,
Kai
|
|
|
Re: USB and Binding [message #1777482 is a reply to message #1777017] |
Wed, 29 November 2017 15:42 |
Kenneth Anderson Messages: 4 Registered: November 2017 |
Junior Member |
|
|
I apologize if it appears I am hijacking this thread - I'll start a new one instead if you suggest it...
I have a USB-connected Arduino that executes my own home-brewed sketch to give me various automations in my house. The host computer runs Ubuntu CLI (Command Line Interface, no GUI), thus I am currently confined to ssh and command line only monitoring and control. I have no off-the-shelf commercial IoT devices whatsoever, and by implication, no UPnP or otherwise discoverable devices. Still, I hoped to fashion a html interface mapped to the Arduino so it could be http controlled. I plan to use OpenHAB "Exec" [binding] to shim between GUI and CLI. OpenHAB2 seemed to be the direction I wanted to go (we'll assume RXTX will link adequately when I install it later), but for the life of me I can't grasp how to reconcile in concept the delineations of Thing and Item (and etc.!) in this environment where a single micro controller is the communications path between multiple disparate-functionality Items. That is due, in part, to a light bulb being called an Item in the Concepts Overview section2 of the OpenHAB user docs but called a Thing in their Concepts Things section. I ask in Eclipse forum because Eclipse authored the words in the first place.
Can you please help me though my mental block so I can start laying out something workable in a "micro controller-fanning-to-many monitored and controlled devices" environment? Perhaps you might enlighten me whether "Categorizing a physical device as an Item or a Thing in some scenarios can be a matter of preference, and the existence of Items are not necessarily mandatory" to explain why a light bulb is said to be an Item, then a Thing?
My system details:
SITUATION 1: To query room temperature, my server sends some text commands to the Arduino, then waits for a response, parses out the temperature, and outputs that temp to STDOUT (CLI right now). I would like mere browser rendering of the thermostat image to also send a CLI temperaure query command and render the STDOUT result. Note that the Arduino is fully a thermostat and controls the furnace and A/C, therefore it receives from and returns to the host its temperature settings and state of the furnace/fan and A/C outputs. In addition to returning information when queried, the Arduino sends info of its own accord, mostly so the furnace on/off times can be logged by the server. I'd like the thermostat image in the user's browser to show the state of the furnace, not only when the image is first rendered, but also updated as the Arduino sends the pertinent info back to server.
SITUATION 2: Server host sends commands on a crontab-run schedule to Arduino to turn outlet on/off to the coffee maker. Same scenario for the porch light. I'd like a [remote] user to have an icon (or mouse clickable screen region by whatever name) whereby the outlets could be remote controlled and read. Arduino-initiated logging info also gets sent back to host to alert of possible on-off state changes not initiated by the host.
Thank you!
|
|
|
|
Re: USB and Binding [message #1777531 is a reply to message #1777524] |
Thu, 30 November 2017 00:43 |
Kenneth Anderson Messages: 4 Registered: November 2017 |
Junior Member |
|
|
Yes Gabriel, I searched my email and [re-]discovered that I bought a couple ESP8266 back in Oct 2014 and have never touched them, yet. Thanks for reminding me that I have them! I normally set my wifi not to broadcast SID, so they weren't going to useful to me around the house according to what I learned after the purchase.
I keep my code projects on my GitHub page (but could never brag about my code esthetics and sorry for no screen shots). The pin detailer I wrote can be useful to persons needing the Pin Change Interrupt details of their Arduino. I had hoped eventually to get my thermostat communicating with my temp sensor via PC Interrupts, but the combined code won't fit in an UNO without streamlining. Since that project's priority wasn't high enough for now to streamline, I am left with the two uncombined projects there.
That bridge link you show me is what I suspected I would have to do. I'll just assume Ubuntu versions of Eclipse and etc. are supported. The fact that FINALLY I find it clearly stated that there is flexibility in how the system admin can set up architecture delineations helps me immensely to understand! I was beginning to suspect it was that way but needed to see it explicitly stated like that.
BUT: That FAQ leaves out any mention of "Item". What am I to make of that? Is the Item a later development than the date of that FAQ? Or would the Items be optional? Or would the Items be the obvious ("DUH") termini of all channels/bindings?
[Updated on: Thu, 30 November 2017 00:45] Report message to a moderator
|
|
|
|
|
Re: USB and Binding [message #1777878 is a reply to message #1777866] |
Tue, 05 December 2017 14:43 |
Kenneth Anderson Messages: 4 Registered: November 2017 |
Junior Member |
|
|
Thank you much, Kai.
However, I still seem to find so many concepts stated from a vantage point that makes it difficult to reconcile them with a DIY automation system that has different functionalities designed differently into its physical and virtual devices than the commercial examples used. But I'm way too tenacious, passionate, and desperate to give up before I figure it out, so I will succeed eventually.
Blessings.
[Updated on: Tue, 05 December 2017 15:42] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03722 seconds