Anda di halaman 1dari 4

MDM functionalities

sbgag-at > ssh 10.17.62.3 60881

Connecting to 10.17.62.3 as user 60881

Last login: Sun Jul 28 12:42:46 2019 from 10.17.42.6

[60880@sm-pre-mdm-nb1 ~]$ sudo -i

[root@sm-pre-mdm-nb1 ~]# cd /opt/ericsson/bin

[root@sm-pre-mdm-nb1 bin]#

[root@sm-pre-mdm-nb1 bin]# ./send_mdus13.awk bond.csv

curl -v -u ericsson:123456aB$ -X PUT "https://sm-pre-mdm-nb1.salzburg-


ag.at:7070/api/1/devices/1TST0200002223/communication-module" -H "accept: application/json" -H
"Content-Type: application/json" -d "{ \"value\": \"1TST0900002223\"}"

curl -X POST -u ericsson:123456aB$ --data "grant_type=client_credentials&scope=connector"


"http://10.17.62.6:8086/oauth/token"
curl -v -X POST "http://10.17.62.6:8086/api/1/devices/TST1200200002223-1/events" -H "accept:
application/json" -H "authorization: Bearer 46bef881-2e03-40e0-9947-e1e42517741a" -H "Content-
Type: application/json" -d "[ { \"context\": { \"additionalProp1\": \"string\", \"additionalProp2\":
\"string\", \"additionalProp3\": \"string\" }, \"eventCode\": \"1234\", \"level\": \"OPEN\", \"trigger\":
\"EDGE\", \"when\": \"2019-07-24T13:31:24.740Z\" }]"

for pushing values in MDM

Location of the script:


From PREPROD ADM machine:
Host:
sm-pre-mdm-adm.salzburg-ag.at
IP address:
10.17.62.1
Path:
/home/60302/DNV_create/generate_timeseries/generate_timeseries_v1.
2.sh
Execution:
./generate_timeseries.sh <measurement interval, 900 IME or 86400 IMS> <Meter id> <start
date> <number of values to send from start date> <number of values as gaps to send after
the measurements> <number of values to send after the gap> <Start value> <OBIS_CODE>
Profiles filled up by the script:
For IME:
#OBIS=1-32:1.8.0*255
For IMS:
#OBIS=1-0:1.8.0*255
Expected timestamp in values:
The introduced start date is taken as CET time and translated to UTC in the script.
So 09/01/2019 [CET] sends first value at 08/01/2019 23:00h [UTC] 😊nt as
Example:
./generate_timeseries.sh 900 DNV1030700009999-1 "2019-01-09" 192 0 0 1 "1-
0:1.8.0*255"
Measurement interval = 900 (IME, values every 900 seconds = every 15 minutes)
Meter = DNV1030700009999-1
Start date = 9th of January of 2019
Number of values sent before the gap: 192
Number of values sent as gap = 0. [Symbol] This equals 0 means no GAP
Number of values send after the gap = 0
Start value = 0. Next values: 1000, 2000, 3000, 4000…
= 4000. Next values: 5000, 6000, 7000…
OBIS_CODE =
Not depending on type of meter (IME or IMS). Could be:
"1-0:1.8.0*255"
"1-0:2.8.0*255"
"1-0:3.8.0*255"
"1-0:4.8.0*255"
Note: this example only sends 192 values, no gap and no more values after gap.

MEASUREMENTINTERVAL=$1
SMART_METER_SESSION_ID=$2
STARTDATE=$3
VALUES=$4
GAPS=$5
MOREVALUES=$6
OFFSET=$7
OBIS=$8

IMS :-
./generate_timeseries_v1.2.sh 86400 TST1200200002224-1 "2019-09-21 20:29:59" 4 2 2 32000 "1-
0:1.8.0*255"

./generate_timeseries_v1.2.sh 86400 TST1200200002224-1 "2019-09-21 20:29:59" 4 0 0 32000 "1-


0:2.8.0*255"

./generate_timeseries_v1.2.sh 86400 TST1200200002224-1 "2019-09-21 20:29:59" 4 0 0 32000 "1-


0:3.8.0*255"

./generate_timeseries_v1.2.sh 86400 TST1200200002224-1 "2019-09-21 20:29:59" 4 0 0 32000 "1-


0:4.8.0*255"

IME :-

./generate_timeseries_v1.2.sh 900 TST1200200002223-1 "2019-09-21 00:00:00" 384 0 0 1000 "1-


0:1.8.0*255"

./generate_timeseries_v1.2.sh 900 TST1200200002223-1 "2019-09-21 00:00:00" 384 0 0 1000 "1-


0:2.8.0*255"

./generate_timeseries_v1.2.sh 900 TST1200200002223-1 "2019-09-21 00:00:00" 384 0 0 1000 "1-


0:3.8.0*255"

./generate_timeseries_v1.2.sh 900 TST1200200002223-1 "2019-09-21 00:00:00" 384 0 0 1000 "1-


0:4.8.0*255"

Anda mungkin juga menyukai