Apollon77/smartmeter-obis

Read secure Apex 100 meter

dhirajthaokar opened this issue · 1 comments

http://securemeters.com/files/9014/7547/5747/apex_100.pdf

i am trying smart meter obis lib but not retrieve any data

var SmartmeterObis = require('smartmeter-obis');
var options = {
'protocol': 'D0Protocol',
'transport': 'SerialRequestResponseTransport',
'transportSerialPort': '/dev/ttyUSB0',
'transportSerialBaudrate': 300,
'transportSerialDataBits':8,
'transportSerialStopBits':1,
'transportSerialParity':'none',
// 'protocolD0BaudrateChangeoverOverwrite':
'protocolD0WakeupCharacters': 40,
//'protocolD0SignOnMessage': '#', // request optional values too
'protocolD0DeviceAddress': '',

'requestInterval': 10,
'obisNameLanguage': 'en',
'obisFallbackMedium': 6,
debug:2,

};

function displayData(obisResult) {

for (var obisId in obisResult) {
    console.log(obisResult[obisId].idToString() + ': ' + SmartmeterObis.ObisNames.resolveObisName(obisResult[obisId], options.obisNameLanguage).obisName + ' = ' + obisResult[obisId].valueToString());
}

}

var smTransport = SmartmeterObis.init(options, displayData);

smTransport.process();
setTimeout(process.exit, 60000);

This is a duplicate to #21 from you ?! Status is still as described there and without any feedback I willclose the issue #21 too