Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SoftwareAG/cumulocity-agents-netcomm
Cumulocity NetComm Agent is a dedicated agent software for connecting the NetComm router to Cumulocity.
https://github.com/SoftwareAG/cumulocity-agents-netcomm
agent cumulocity-agent cumulocity-iot iot-analytics
Last synced: 3 months ago
JSON representation
Cumulocity NetComm Agent is a dedicated agent software for connecting the NetComm router to Cumulocity.
- Host: GitHub
- URL: https://github.com/SoftwareAG/cumulocity-agents-netcomm
- Owner: SoftwareAG
- Created: 2021-06-23T11:46:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-19T11:20:54.000Z (about 2 years ago)
- Last Synced: 2024-04-12T16:15:57.325Z (7 months ago)
- Topics: agent, cumulocity-agent, cumulocity-iot, iot-analytics
- Language: C++
- Homepage:
- Size: 345 KB
- Stars: 1
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-softwareag - cumulocity-agents-netcomm - The Cumulocity NetComm Agent is a dedicated agent software for connecting the NetComm router to Cumulocity IoT. (IoT & Analytics / ![cumulocity_64x64](https://user-images.githubusercontent.com/23717841/230378694-959dcc10-00ef-4e6a-ad4b-d1a13cec5f6d.png) Cumulocity IoT)
README
# Cumulocity Netcomm Agent #
Cumulocity NetComm Agent is a dedicated agent software for connecting the NetComm router to Cumulocity.
### Supported NetComm Device ###
NTC-220 seriesFor NTC-6200 and NTC-140W, move to [our NTC-6200 branch](https://github.com/SoftwareAG/cumulocity-agents-netcomm/tree/NTC-6200).
### How to build the agent? ###
* Download the agent source code:
```
#!bashgit clone [email protected]:SoftwareAG/cumulocity-agents-netcomm.git
```* Build the [Cumulocity C++ library](https://github.com/SoftwareAG/cumulocity-sdk-c) with the provided *init.mk* from the repo.
* Copy the compiled library files to the *lib/* directory under the agent root directory.```
#!bashcp -rP $C8Y_LIB_PATH/lib $C8Y_LIB_PATH/bin .
```* Export the Cumulocity C++ library and NetComm SDK path (add the following code to your ~/.bashrc for permanence):
```
#!bashexport C8Y_LIB_PATH=/library/root/path
export NTC_SDK_PATH=/netcomm/sdk/path
```* Generate a package key pair:
```
#!bashmake signature
```* Build the cumulocity-ntc-agent:
```
#!bash# build in debug mode and logs to stdout.
make
# build in release mode and logs to file
make release
```
The cumulocity-ntc-agent will contain agent binary, cloud remote access binary, CA root certificate (and a public key for package signature if you generated a key pair beforehand)### FAQ ###
* Installation of IPK file failed because of missing the package sigunature. How can I fix it?
1) Disable the package signature check on your NetComm device by navigating to System > System Configuration > Firmware signature.
2) (**Recommended**) Prepare a signature key pair and build a signed package with the following instruction.
First, let's generate a public/private key pair.
```
#!bashmake signature
```
Note: you need to disable Firmware signature on your NetComm device when you install any package for the first time.Then, add signature (paired-private key) to cumulocity-ntc-agent package. In the root directory, for example, if you want to add signature to `cumulocity-ntc-agent_1.0.0_arm.ipk`, run:
```
#!bash./tools/mk-signed-ipk.sh build/cumulocity-ntc-agent_1.0.0_arm.ipk
```
Then, you have just created `cumulocity-ntc-agent_1.0.0_arm-signed.ipk` in build directory. You can install the signed packages even if Firmware signature is enabled as long as the corresponded paired public key exists on your NetComm device.* How can I query the current package version?
```
#!bash./version.sh ask
```* How can I change the cumulocity-ntc-agent version number?
```
#!bash./version.sh update
```* How do I get the latest CA certificate for verifying server TLS certificate?
In the root directory, run:
```bash
./tools/mk-ca-cumulocity.sh update
```This will retrieve the Mozilla certificate from [https://curl.haxx.se](https://curl.haxx.se). For more information about the `mk-ca-cumulocity.sh` script, please check its usage by directly running the command without any arguments.
* My server's certificate is not issued by a root CA that's included in the Mozilla bundle, how can I add it?
Copy your root CA certificate to directory `./misc/certs/cacert.d`, then run the above `mk-ca-cumulocity.sh` command. This will append your root CA certificate to the Mozilla bundle.
*Note*: your root CA certificate must be .pem format.