-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Implement TinkerForge Binding #207
Comments
From teichsta on March 11, 2013 14:21:55 great idea :-) Summary: TinkerForge Binding (was: tinkerforge binding) |
From teichsta on March 11, 2013 14:27:34 your feature description seems to very feasible :-) But, the given Java-API is IMHO not very consistent (see discussion here http://www.tinkerunity.org/forum/index.php/topic,1444.0.html (German)). To make the binding really nice it would be great to create a more sophisticated API. What do you think? |
From [email protected] on March 12, 2013 00:21:43 (German is not the problem, English is harder for me. I'm from Germany, living in BW.) I like feasible approaches. They are a good starting point to get working code and there is enough room to get even better. As long as there is no api / configuration released refactoring should be easy. I agree, the tinkerforge api is sometimes a bit unjavaish ;-(. What do you think? |
From [email protected] on March 17, 2013 14:22:08 Hallo Thomas, a short update on this issue: Regards, |
From teichsta on March 17, 2013 23:50:57 GREAT :-) Let me know if i can assist and if your repo is pushed. |
From [email protected] on March 24, 2013 14:14:07 Hi Thomas, I've got a severe cold and lost the whole last week. I'll push the repo as soon as I'm fit enough to check the current code. Regards, |
From teichsta on March 24, 2013 14:16:02 ok, get well soon! |
From [email protected] on March 26, 2013 16:06:47 Hi Thomas, I just pushed the repo to: https://code.google.com/r/theoweiss-tinkerforge It's work in progress. Amongst others there are some "Heisenbugs" when disconnecting the wifi brickd. The configuration for now looks e.g. like this: Regards, |
From teichsta on March 26, 2013 16:14:14 thank you very much! Will have a look into it ... |
From [email protected] on March 27, 2013 19:02:44 I pushed some updates. |
From teichsta on March 31, 2013 03:53:11 Hi Theo, i took a first look into your binding which seems to be good starting point. I am not quite sure about the additional benefit of the wrapped TF-API? The provided API (by Tinkerforge itself) supports a notification mechanism already so we won't need this to move this to EMF. I had assumed the model would generalize the Interface of the different Bricklets e.g. (Temperatur/Humidity, etc.). Probably i missed the point?! Regards, Thomas E.-E. |
From [email protected] on April 01, 2013 12:18:08 Hi Thomas,
I hope so ;-) May be you haven't found the hand crafted-code inside the generated code? (yes I'm familiar with discussions about mixing generated and hand written code. Some posts of Ed Merks convinced me, that there are more advantages then disadvantages when mixing code.) I will try to explain the implementation. In MBrickdImpl you will find the connect() method and some more private methods. What the EMF model provides:
Description of the EMF model: Model lifecycle: TinkerForgeBinding .java: (Dynamic item registry: currently the model holds all connected tinkerforge devices (if an implementation is available), not only these configured in the items file. This could be used in the future to register the tinkerforge items dynamically(?). At the moment only values of configured items are propagated to the eventbus.) TinkerForgeBinding .java: Current state: I hope this explained some things. New repo: https://[email protected]/r/theoweiss-tinkerforge2/ openhab:
Regards, |
From [email protected] on April 10, 2013 14:16:49 Hi Thomas, i pushed some updates to: https://[email protected]/r/theoweiss-tinkerforge2/ But still the code is premature. Regards, |
From [email protected] on May 06, 2013 00:11:29 Hi Thomas, I pushed many updates. New supported devices: BarometerTemperature: The Tinkerforge Weatherstation Kit is fully supported. Look at theo.rules for an example. Regards, |
From teichsta on May 07, 2013 08:54:31 Hi Theo, thanks for this update. While using the binding i observed very high CPU usage (at Kai's machine as well). Haven't looked into the details. Could you have a look at that? Regards, Thomas E.-E. Summary: Implement TinkerForge Binding (was: TinkerForge Binding) |
From [email protected] on May 07, 2013 12:19:09 Hallo Thomas, Am 07.05.2013 um 17:54 schrieb [email protected]: I never noticed this. I will do some investigation. |
From [email protected] on May 07, 2013 13:30:40 Hi Thomas, I've done a quick test. Is it possible that you observed the same problem? Regards, PS: I've implemented configuring the callbackPeriod in items.file. Just add "callbackPeriod=100" to get 100 millis callbacks. The threshold should be also configurable, but I've not tested this until now. |
From [email protected] on May 09, 2013 12:50:05 Hi Thomas, got openhab and tinkerforgeBinding working on my raspberry pi! Regards, |
From [email protected] on May 10, 2013 01:07:49 Hi Thomas, just realized the difference between state updates and commands. may be there is some looping in the binding. I will have a look at that this weekend. Regards, |
From [email protected] on May 14, 2013 14:43:42 Hi Thomas, I found no obvious issues in the tinkerforge binding. May be i missed something? I pushed some updates. Regards, |
From teichsta on May 21, 2013 14:37:39 Status: Started |
From [email protected] on May 21, 2013 15:28:17 Hi Thomas, FYI: Regards, |
From teichsta on May 21, 2013 15:50:13 thanks for this update! |
From [email protected] on May 25, 2013 14:26:55 Hi Thomas, yesterday I pushed an update. It's incompatible in configuration. Current config looks like this: openhab.cfg: tinkerforge:hosts=127.0.0.1:4223 192.168.1.50 192.168.1.104 tinkerforge:distance_door.uid=6GN tinkerforge:servo_living_room.uid=6Crt5W tinkerforge:hosts must be present, the other values are optional. I haven't yet done testing in the deep. Regards, |
From [email protected] on June 25, 2013 14:08:05 Hi Thomas, I just removed the dependency to xbase.lib Regards, |
From [email protected] on June 25, 2013 14:14:56 Reloading openhab.cfg is now supported! |
From [email protected] on July 19, 2013 13:56:47 I changed the updated method to call setProperlyConfigured. The binding will work with 1.3-SNAPSHOT. |
From [email protected] on July 19, 2013 13:58:14 I will start working on the support for the new "Starter Kit: Hardware Hacking". |
From teichsta on July 25, 2013 15:29:20 Status: ReadyForReview |
From teichsta on July 30, 2013 13:15:24 1st Review is done … |
From teichsta on August 06, 2013 09:28:59 would be great if you could report your progress here. Thanks, Thomas E.-E. Owner: [email protected] |
From [email protected] on August 29, 2013 13:13:12 Added lots of javadoc. Starting work on the wiki page. |
From teichsta on September 01, 2013 06:10:18 added my (german) review comments below (noticed that i didn't add them to this issue) ############################ Hi Theo, anbei meine Kommentare zu Deinem Binding: generell
TinkerforgeBindingProvider
TinkerforgeGenericBindingProvider
TinkerforgeGenericBindingProvider.TinkerforgeBindingConfig
LoggerConstants
TinkerforgeBinding
MBrickdImpl
So, dass war es erstmal von meiner Seite. Insgesamt macht das Binding für mich einen guten Eindruck. Dennoch stecken in TinkerforgeBinding noch eine Menge CodeDubletten, die ich gerne entfernen würde. Bist Du mit der Wiki-Seite klargekommen? Denkst Du, Du kann die Anmerkungen noch vor Deinem Urlaub einarbeiten? Gruß, Thomas E.-E. |
From teichsta on September 01, 2013 06:36:30 Merged into default branch (see http://code.google.com/p/openhab/source/detail?r=59e9d0f5dbd8a9c2b7e94a1a251bedfda1282b09 ). Thanks Theo for this contribution! Status: Implemented |
From [email protected] on September 01, 2013 15:56:02 Got a maven warning while compiling default. It seems that there is no version specified for org.vafer in pom.xml. Was this intended? [WARNING] |
From [email protected] on September 13, 2013 12:12:32 Thomas fixed it in revision: 95babee94aaa |
From [email protected] on September 13, 2013 12:14:54 Hi Thomas, can you tell me on which revision of my clone the checkin to the default branch is based? Regards, |
From [email protected] on September 13, 2013 13:00:41 #39 I figured it out. No known bugs for 1.3.1 until now. |
From teichsta on September 13, 2013 13:01:48 cool, good news :-) |
From [email protected] on November 16, 2013 13:03:44 An update for things I've been working on the last weeks:
I'm preparing a pull request, but I've to figure out how this works :-(((. Regards, |
From [email protected] on November 16, 2013 13:25:17 updated Tinkerforge API to 2.0.12 |
From [email protected] on March 11, 2013 22:11:08
There are higher level modules for temperature and humidity measurement, a barometer and an ambient light module.
Besides this lower level modules for measuring voltages and current flow, switching relays and controlling digital input/output are available.
Modules for driving different kinds of motors also exist.
There is a java api (GPL v2+) for getting and setting the state of the tinkerforge modules.
The api communicates to a controlling daemon (brickd), running on a computer with tinkerforge modules attached by usb or directly to a module (master brick) with an attached wifi module.
In a first step it would be nice to get the state of the higher level modules available for openhab.
A second step could be setting the state of lower level modules like the relay. 2. Example Use Case Reading the temperature from a tinkerforge module.
I would like to work on this binding. I have temperature and humidity sensor, a master and a servo brick and one wifi extension.
I have some experience in eclipse rcp development, but are new to osgi services and openhab.
Regards,
Theo Weiss
Original issue: http://code.google.com/p/openhab/issues/detail?id=207
The text was updated successfully, but these errors were encountered: