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

appliance.applianceType.read() not working #4

Open
rudybrian opened this issue Oct 8, 2014 · 4 comments
Open

appliance.applianceType.read() not working #4

rudybrian opened this issue Oct 8, 2014 · 4 comments

Comments

@rudybrian
Copy link

Hi folks,

I tried out examples/display-info.js with my laundry pair and couldn't get it to output anything. After doing some digging, it appears that the culprit is appliance.applianceType.read() as all the other read() functions appear to be working.

Here is my sample re-written version of examples/display-info.js without the nested functions:

var gea = require("gea-sdk");
var adapter = require("gea-adapter-usb");

var app = gea.configure({
    //address: 0xcb
    address: 0xe4
});

app.bind(adapter, function (bus) {
    bus.once("appliance", function (appliance) {
        appliance.applianceType.read(function (applianceType) {
                console.log("type:", applianceType);
        });
        appliance.modelNumber.read(function (modelNumber) {
                console.log("model:", modelNumber.trim());
        });
        appliance.serialNumber.read(function (serialNumber) {
                console.log("serial:", serialNumber.trim());
        });
        console.log("address:", appliance.address);
        console.log("version:", appliance.version.join("."));
    });
});

Output from my washing machine:

address: 37
version: 0.1.1.46.1.91.1.1.3
model: GFWR4805F0MC
serial: ZxxxxxxxG

Note the conspicuously missing type. The way examples/display-info.js is written, not getting a result from appliance.applianceType.read() causes it to not descend into the inner functions resulting in no output.

@Hixie
Copy link

Hixie commented Jul 29, 2016

For what it's worth, with my GE GDF570SGFWW dishwasher, I only get address and version. Model, serial, and type all just don't return anything. In fact none of the fields listed here:
https://github.com/GEMakers/gea-sdk#table-of-contents
...(from modelNumber to soundLevel) do anything on this dishwasher.

@johnnysako
Copy link

Many of the appliances supported the ability to communicate before we had fully designed more of the cross-appliance data (i.e. appliance type).

Items missing (modelNumber, soundLevel, etc) have been added over time as the software has been updated for other reasons (new models/features).

@rudybrian
Copy link
Author

@johnnysako is there a published list somewhere with this info? Not knowing which appliance models/software versions do/do not support certain items makes it a bit difficult to author software intended to provide universal support.

@rbultman
Copy link
Contributor

rbultman commented May 8, 2017

@rudybrian this list is the latest official list, but it is a bit dated.

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

4 participants