mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-29 19:39:07 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
606bac100a |
@@ -175,6 +175,14 @@ byte* DlmsReader::getBuffer() {
|
|||||||
return buffer + (3 + destinationAddressLength + sourceAddressLength + 2 + 1);
|
return buffer + (3 + destinationAddressLength + sourceAddressLength + 2 + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
byte* DlmsReader::getFullBuffer() {
|
||||||
|
return buffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
int DlmsReader::getFullBufferLength() {
|
||||||
|
return dataLength;
|
||||||
|
}
|
||||||
|
|
||||||
int DlmsReader::GetAddress(int addressPosition, byte* addressBuffer, int start, int length)
|
int DlmsReader::GetAddress(int addressPosition, byte* addressBuffer, int start, int length)
|
||||||
{
|
{
|
||||||
int addressBufferPos = start;
|
int addressBufferPos = start;
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ class DlmsReader
|
|||||||
int GetRawData(byte *buffer, int start, int length);
|
int GetRawData(byte *buffer, int start, int length);
|
||||||
int getBytesRead();
|
int getBytesRead();
|
||||||
byte* getBuffer();
|
byte* getBuffer();
|
||||||
|
byte* getFullBuffer();
|
||||||
|
int getFullBufferLength();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Crc16Class Crc16;
|
Crc16Class Crc16;
|
||||||
|
|||||||
@@ -40,7 +40,10 @@ bool HanReader::read(byte data) {
|
|||||||
if (debugger->isActive(RemoteDebug::INFO)) {
|
if (debugger->isActive(RemoteDebug::INFO)) {
|
||||||
printI("Got valid DLMS data (%d bytes)", bytesRead);
|
printI("Got valid DLMS data (%d bytes)", bytesRead);
|
||||||
if (debugger->isActive(RemoteDebug::DEBUG)) {
|
if (debugger->isActive(RemoteDebug::DEBUG)) {
|
||||||
debugPrint(buffer, 0, bytesRead);
|
byte* full = reader.getFullBuffer();
|
||||||
|
int size = reader.getFullBufferLength();
|
||||||
|
printI("Full DLMS frame (%d bytes)", size);
|
||||||
|
debugPrint(full, 0, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ float DnbCurrParser::getValue() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int DnbCurrParser::available() {
|
int DnbCurrParser::available() {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int DnbCurrParser::read() {
|
int DnbCurrParser::read() {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int DnbCurrParser::peek() {
|
int DnbCurrParser::peek() {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DnbCurrParser::flush() {
|
void DnbCurrParser::flush() {
|
||||||
|
|||||||
@@ -18,15 +18,15 @@ float EntsoeA44Parser::getPoint(uint8_t position) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int EntsoeA44Parser::available() {
|
int EntsoeA44Parser::available() {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EntsoeA44Parser::read() {
|
int EntsoeA44Parser::read() {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EntsoeA44Parser::peek() {
|
int EntsoeA44Parser::peek() {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntsoeA44Parser::flush() {
|
void EntsoeA44Parser::flush() {
|
||||||
|
|||||||
Reference in New Issue
Block a user