https://github.com/cjhdev/dlms_trouble
A Ruby toolkit for working with DLMS/COSEM
https://github.com/cjhdev/dlms_trouble
Last synced: about 1 year ago
JSON representation
A Ruby toolkit for working with DLMS/COSEM
- Host: GitHub
- URL: https://github.com/cjhdev/dlms_trouble
- Owner: cjhdev
- Created: 2016-06-01T16:08:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T14:28:04.000Z (over 8 years ago)
- Last Synced: 2025-01-21T03:42:35.708Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
DLMS Trouble
============
An ongoing project to produce a Ruby toolkit for working with DLMS.
[](https://travis-ci.org/cjhdev/dlms_trouble)
## Features
### Attribute/Method Data Handling
XDLMS-APDU.Data types map to the following classes:
| XDLMS-APDU.Data | Equivalent Class |
| --------------------------|-----------------------------|
| `null-data` | DType::NullData |
| `boolean` | DType::Boolean |
| `enum` | DType::Enum |
| `bcd` | DType::BCD |
| `unsigned` | DType::Unsigned |
| `long-unsigned` | DType::LongUnsigned |
| `double-long-unsigned` | DType::DoubleLongUnsigned |
| `long64-unsigned` | DType::Long64Unsigned |
| `integer` | DType::Integer |
| `long` | DType::Long |
| `double-long` | DType::DoubleLong |
| `long64` | DType::Long64 |
| `floating-point` | DType::FloatingPoint |
| `float32` | DType::Float32 |
| `float64` | DType::Float64 |
| `bit-string` | DType::BitString |
| `octet-string` | DType::OctetString |
| `visible-string` | DType::VisibleString |
| `utf8-string` | DType::UTF8String |
| `structure` | DType::Structure |
| `array` | DType::Array |
| `compact-array` | DType::CompactArray |
| `dont-care` | DType::DontCare |
| `date-time` | DType::DateTime |
| `date` | DType::Date |
| `time` | DType::Time |
## Examples
- [encoding data](/examples/working_with_data/encode.rb)
- [decoding data](/examples/working_with_data/decode.rb)
## License
DLMS Trouble has an MIT license