Skip to content

Commit

Permalink
Transfer repository to enbility org
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Dec 5, 2022
1 parent a6e383f commit d7cf1fd
Show file tree
Hide file tree
Showing 89 changed files with 182 additions and 184 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
# eebus-go

![Build Status](https://github.com/DerAndereAndi/eebus-go/actions/workflows/default.yml/badge.svg?branch=dev)
![Build Status](https://github.com/enbility/eebus-go/actions/workflows/default.yml/badge.svg?branch=dev)

EEBUS protocol implementation in Go.

The library targets services that needs to communicate via the EEBUS protocol, e.g. energy management systems, charging stations, heat pumps, and more.

This library provides the foundation for implementing EEBUS use cases to enable the desired device category to communicate with other devices via the EEBUS protocol.

You need a basic understanding of the EEBUS concepts SHIP and SPINE to use this library. Please check the corresponding specification on the [EEBUS website](https://eebus.org).
This library provides a complete foundation for implementing [EEBUS][https://eebus.org] use cases. The use cases define various functional scenarios for different device categories, e.g. energy management systems, charging stations, heat pumps, and more.

## Introduction

This repository contains:
The supported functionality contains:

- Support for SHIP 1.0.1
- Support for SPINE 1.1.1
Expand All @@ -22,14 +16,18 @@ This repository contains:
- Connection handling, including reconnection and double connections
- Support for handling pairing of devices

Basic understanding of the EEBUS concepts SHIP and SPINE to use this library is required. Please check the corresponding specifications on the [EEBUS downloads website][https://www.eebus.org/media-downloads/].

An open source SDK written in go providing the foundation to use EEBUS in your projects. Contains support for SHIP and SPINE communication.

## Usage

The included small demo applications do not implement any usecases and thus will end the connection once it reached exchanging usecase information.

Services with implemented use cases will be implemented in different repositories and are also early work in progress:

- [HEMS](https://github.com/DerAndereAndi/eebus-go-cem)
- [EVSE](https://github.com/DerAndereAndi/eebus-go-evse)
- [HEMS](https://github.com/enbility/eebus-go-cem)
- [EVSE](https://github.com/enbility/eebus-go-evse)

### HEMS

Expand Down
4 changes: 2 additions & 2 deletions cmd/evse/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"syscall"
"time"

"github.com/DerAndereAndi/eebus-go/service"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/service"
"github.com/enbility/eebus-go/spine/model"
)

type evse struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/hems/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"syscall"
"time"

"github.com/DerAndereAndi/eebus-go/service"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/service"
"github.com/enbility/eebus-go/spine/model"
)

type hems struct {
Expand Down
6 changes: 3 additions & 3 deletions features/deviceclassification.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type ManufacturerType struct {
Expand Down
6 changes: 3 additions & 3 deletions features/deviceconfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package features
import (
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type DeviceConfigurationType struct {
Expand Down
6 changes: 3 additions & 3 deletions features/devicediagnosis.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type DeviceDiagnosisType struct {
Expand Down
6 changes: 3 additions & 3 deletions features/electricalconnection.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

// Details about the electrical connection
Expand Down
6 changes: 3 additions & 3 deletions features/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package features
import (
"errors"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type Feature interface {
Expand Down
6 changes: 3 additions & 3 deletions features/helper.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/service"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/service"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

// check if the given usecase, actor is supported by the remote device
Expand Down
6 changes: 3 additions & 3 deletions features/identification.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type IdentificationType struct {
Expand Down
6 changes: 3 additions & 3 deletions features/incentivetable.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type IncentiveTable struct {
Expand Down
6 changes: 3 additions & 3 deletions features/loadcontrol.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package features

import (
"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type LoadControlLimitType struct {
Expand Down
6 changes: 3 additions & 3 deletions features/measurement.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package features
import (
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type MeasurementType struct {
Expand Down
6 changes: 3 additions & 3 deletions features/timeseries.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package features
import (
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

type TimeSeriesSlotType struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/DerAndereAndi/eebus-go
module github.com/enbility/eebus-go

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions integration_tests/devicediagnosis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package integrationtests
import (
"testing"

"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/electricalconnection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package integrationtests
import (
"testing"

"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand Down
6 changes: 3 additions & 3 deletions integration_tests/emobility_measurement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package integrationtests
import (
"testing"

"github.com/DerAndereAndi/eebus-go/features"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/features"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sync"
"testing"

"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/measurement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/nodemanagement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package integrationtests
import (
"testing"

"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand Down
10 changes: 5 additions & 5 deletions service/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (
"sync"
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/ship"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/DerAndereAndi/eebus-go/util"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/ship"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
"github.com/enbility/eebus-go/util"
"github.com/gorilla/websocket"
)

Expand Down
2 changes: 1 addition & 1 deletion service/mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync"
"syscall"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/enbility/eebus-go/logging"
"github.com/godbus/dbus/v5"
"github.com/holoplot/go-avahi"
"github.com/libp2p/zeroconf/v2"
Expand Down
6 changes: 3 additions & 3 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"sync"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/spine/model"
)

// interface for receiving data for specific events
Expand Down
2 changes: 1 addition & 1 deletion service/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/tls"
"fmt"

"github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/spine/model"
)

const defaultPort int = 4711
Expand Down
10 changes: 5 additions & 5 deletions ship/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"sync"
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/ship/model"
shipUtil "github.com/DerAndereAndi/eebus-go/ship/util"
"github.com/DerAndereAndi/eebus-go/spine"
"github.com/DerAndereAndi/eebus-go/util"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/ship/model"
shipUtil "github.com/enbility/eebus-go/ship/util"
"github.com/enbility/eebus-go/spine"
"github.com/enbility/eebus-go/util"
)

// implemented by connectionsHub and used by shipConnection
Expand Down
6 changes: 3 additions & 3 deletions ship/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"testing"

"github.com/DerAndereAndi/eebus-go/ship/model"
"github.com/DerAndereAndi/eebus-go/spine"
spineModel "github.com/DerAndereAndi/eebus-go/spine/model"
"github.com/enbility/eebus-go/ship/model"
"github.com/enbility/eebus-go/spine"
spineModel "github.com/enbility/eebus-go/spine/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand Down
4 changes: 2 additions & 2 deletions ship/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/ship/model"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/ship/model"
)

// handle incoming SHIP messages and coordinate Handshake States
Expand Down
2 changes: 1 addition & 1 deletion ship/hs_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/DerAndereAndi/eebus-go/ship/model"
"github.com/enbility/eebus-go/ship/model"
)

// Handshake Access covers the states smeAccess...
Expand Down
6 changes: 3 additions & 3 deletions ship/hs_hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ship
import (
"time"

"github.com/DerAndereAndi/eebus-go/logging"
"github.com/DerAndereAndi/eebus-go/ship/model"
"github.com/DerAndereAndi/eebus-go/util"
"github.com/enbility/eebus-go/logging"
"github.com/enbility/eebus-go/ship/model"
"github.com/enbility/eebus-go/util"
)

// Handshake Hello covers the states smeHello...
Expand Down
Loading

0 comments on commit d7cf1fd

Please sign in to comment.