background image

 

 

CMi6140 

User’s Manual English 

 

 

 

 

 

 

 

 

 

 

 

 

CMi6140 

User’s Manual English 

page | 27 (38) 

[2022-09] 

 

V1.2 

 

 

 

 

Example and Data Size 

Below is a break-down of the number of bytes used for the different parts described above. 
 

1

                                                                 : size (bytes) 

98 18                       # 24 item array                     : 2 (fixed) 

3

   A3                        # Map with length 3                 : 1 (fixed) 

4

     21                      # Key 1 = -2 = Base name            : 1 (fixed) 

5

     68                      # Value 1 = String array, length 8  : 1 (fixed) 

6

        3132333435363738     # meter specific encoding           : 8 (fixed, depends on meter) 

7

     22                      # Key 2 = -3 = Base time            : 1 (fixed) 

8

     1A 5DE02740             # Value 2 = 1574971200 =            : 5 (fixed) 

9

                             #   Time "2019-11-28T20:00Z" 

10

     08                     # Key 3 = 8 = Data value            : 1 (fixed) 

11

     58 21                  # Value 3 = Byte array, length 33   : 2 (payload1 < 256 bytes) 

12

                            #                                            or 

13

                            #                                     3 (payload1 > 255) 

14

        04064E61BC000415 

15

        07870000022B9413                                                     

16

        023BD400025A2303 

17

        025E1A0202FD1712 

18

        40                                                      : variable 

19

                                                            Sum : 22 + (1) + payload1 bytes 

20

 

21

                 ** Record for defining encoder and version ** 

22

              

23

   A2                       # Map with length 2                 : 1 (fixed) 

24

     00                     # Key 1 = "0" name                  : 1 (fixed) 

25

       61 56                # Value 1 = string => "V" = version : 2 (fixed) 

26

     02                     # Key 2 =  integer value            : 1 (fixed) 

27

       00                   # Value 2 UINT16  

28

                            # 0x0000 => enc=0, ver=0            : 3 (max) 

29

                                                            Sum : 8 bytes (max) 

30

                 ** Follows X items of same size ** 

31

 

32

   A2                       # Map with length 2                 : 1 (fixed) 

33

     06                     # Key 1 = 6 = Time                  : 1 (fixed) 

34

     39 0E0F                # Value 1 = -3600 =                 : 3 (fixed) 

35

                            #   Time "2019-11-28T19:00Z"   

 

 

 

 

36

     08                     # Key 2 = 8 = Data value            : 1 (fixed) 

37

     46                     # Value 2 = Byte array, length 6    : 1 (payload < 24) 

38

        0406F24FBC00        #   M-bus record with one DIB:      : variable 

39

                            #     Energy = 12341,234 MWh        

40

                                                      Sum : X * (7 + (1) + payload2 size) 

41

 

42

                 Total: 22 + (1) + payload 1 + 8 + X * (7 + (1) + payload2 size) 

 
Given the fixed sizes above using M-Bus and assuming payload is < 256 bytes for the first record and < 
24 for the subsequent records, the total size is: 
 
29 + pa 6 + X * (7 + payload2) 
 
Some example sizes: 
 

payload1

 

payload2

 

Total 
#records

 

Total 
size

 

33 

24 

367 

33 

33 

12 

508 

36 

32 

24 

968 

 
 

Validators 

http://cbor.me/  - Validator for CBOR, does not understand SenML or M-Bus 

 
Noted a small bug in the hex interpretation of negative numbers, the diagnostic window seems 
correct though.  
 

Summary of Contents for 1100441

Page 1: ...CMi6140 User s Manual English CMi6140 User s Manual English V1 2...

Page 2: ...1 Start up and LED indications 9 5 3 2 Switch off reboot module 11 6 INTEGRATION GUIDE 12 6 1 PURPOSE 12 6 2 INTRODUCTION 12 6 3 STATUS AND CONFIGURATION PARAMETERS 12 6 3 1 Kamstrup MC403 MC603 MC80...

Page 3: ...CMi6140 User s Manual English CMi6140 User s Manual English page 3 38 2022 09 V1 2 10 1 VERSIONS 37 11 REFERENCES 38 11 1 TERMS AND ABBREVIATIONS 38 11 2 NUMBER REPRESENTATION 38...

Page 4: ...tion and product are provided on an as is basis only and may contain deficiencies or inadequacies Elvaco AB takes no responsibility for damages liabilities or other losses by using this product 1 1 Co...

Page 5: ...energy while switched on Remember that interference can occur if the product is used close to TV sets radios computers or inadequately shielded equipment Follow any special regulations and always swi...

Page 6: ...d information in other languages please visit https www elvaco com 3 3 Symbols The following symbols are used throughout the manual to emphasize important information and useful tips The Note symbol i...

Page 7: ...dy As soon as the meter connectivity module has been mounted and started up it will automatically initiate transmission of meter data without any manual steps needed The CMi6140 is prepared for seamle...

Page 8: ...s chapter provides instructions on how to get started with the CMi6140 After reading and carefully following each step of this chapter the MCM will be mounted and deployed 5 2 Product overview CMi6140...

Page 9: ...which means that no messages will be transmitted from the module Please make sure a SIM card size Nano has been mounted before activating the module There are two ways to activate the module 1 By usin...

Page 10: ...e 1 0 31 Module type Show module type and config 1 1 70 Network status Show the status of the network connection 1 2 71 Bootstrap status Show the status of the LwM2M Bootstrap connection 1 3 72 DM sta...

Page 11: ...Successfully registered to the DM server Table 5 DM Status Number Meaning 0 Device is inactive network is not used 1 Device is configured to not use separate MDM connection 2 Attempting to register to...

Page 12: ...mitted between DM server and module The module will thereafter connect to the MQTT SN gateway and perform a DTLS handshake to generate the sessions keys used to encrypt the session key used to encrypt...

Page 13: ...e Firmware Version 3 0 3 String Firmware version E Device Reboot 3 0 4 Reboot R Device Available Power Sources 3 0 6 0 Integer 0 7 Power source 1 Internal battery 2 External battery 6 AC Mains power R...

Page 14: ...SM Timer 10 0 4 Integer NB IoT T3412 R LwM2M Cellular Connectivity Active Timer 10 0 5 Integer NB IoT T3324 R LwM2M Cellular Connectivity eDRX parameters for NB S1 mode 10 0 9 Opaque 8 bit NB IoT eDRX...

Page 15: ...906 0 2 Integer CMi6140 42 Standard 43 Extended RW Elvaco MCM Config NFC Enabled 33906 0 4 Boolean R Elvaco MCM Config NFC Config locked 33906 0 5 Boolean W Elvaco MCM Config Adjust time 33906 0 6 Int...

Page 16: ...0 1 Integer R Elvaco Meter Info Comm status 33908 0 2 Integer 0 OK 1 No meter detected 2 Error R Elvaco Meter Info Error flags 33908 0 3 Opaque Meter Error flags R Elvaco NB IoT Info IMSI 33909 0 0 I...

Page 17: ...ork there is a rollback functionality in place when changing the APN To change APN write the APN to the resource 10 1 1 and set APN mode to manual in 10 1 2 Once done stage the changes by executing 33...

Page 18: ...he module can be adjusted to be sent in UTC by specifying the UTC offset configuration parameter The UTC offset will be subtracted from the timestamp prior to transmission If the meter is in Sweden wh...

Page 19: ...mission can be done by FIFO or LIFO Rules for retransmissions include maximum age of data order of data number of retransmitted data transmission interval Example 1 A device is configured the followin...

Page 20: ...missions CMi6140 sends meter data messages according to it s transmit interval settings Meter read out is always related to meter s clock at time 00 00 00 Transmission time is randomized between read...

Page 21: ...format ID 67 Field Description Date and Time see Note 1 6 INT32 Date and Time Type F e g 046Dxxxxxxxx M Bus Format F for Date Time Meter ID see Note 1 see Note 2 6 BCD8 According to M Bus EN13757 3 id...

Page 22: ...des 7 INT32 Error and warning flags Example 04FD17xxxx Note that this field is always 32 bits even when using MultiCal 403 which only reports 16 bits Kamstrup MCxx3 Heat Meters Info Codes Date and Tim...

Page 23: ...MultiCal 403 which only reports 16 bits Table 12 Meter register Pulse message JSON Example when In A measure volume VA and UA and In B measure Energy EB and UB TS 2021 12 02T13 14 15Z ID 12345678 E 1...

Page 24: ...Tariff 3 Energy T3 Tariff 3 Energy unit U2 Missing time MT Missing time unit MU Table 13 Payload JSON encoded message Only included in the extended message Example payload JSON TS 2019 11 28T20 39Z ID...

Page 25: ...aka array of readout values records encoded using CBOR Each record is a map of key value pairs using SenML Each product that uses the SenML CBOR format shall follow the requirements below In addition...

Page 26: ...ons for the contents of the measurement field Encoder Type Versioning The following table defines allowed encoder types and versions The information is sent in a special record Encoder Version field T...

Page 27: ...1 fixed 24 00 Key 1 0 name 1 fixed 25 61 56 Value 1 string V version 2 fixed 26 02 Key 2 integer value 1 fixed 27 00 Value 2 UINT16 28 0x0000 enc 0 ver 0 3 max 29 Sum 8 bytes max 30 Follows X items of...

Page 28: ...end the data It is for the user to define a configuration that gives a reasonable tradeoff between power consumption send fewer telegrams and functional requirements much data is sent If a device is c...

Page 29: ...140 Parameter Description Configurable values Default value battery Device access Locked device correct PAK or open device Device access No PAK Meter ID Meter identification secondary ID for Kamstrup...

Page 30: ...Writeable Readable DTLS max timeout The last timeout in seconds used when transmitting packets via DTLS for LWM2M 90 Readable Writeable Readable Communicati on retry count Number of connection attempt...

Page 31: ...able Writeable Readable Power saving mode Setting for power save mode Disabled eDRX PSM eDRX PSM eDRX PS M Readable Writeable Readable T3324 timer LTE Active Timer This setting controls how long in se...

Page 32: ...SenML CBOR SenML CB OR Readable Writeable Readable Readout interval Number of minutes between each meter data readout 5 1440 60 Readable Writeable Readable Report interval Number of minutes between ea...

Page 33: ...ons available in CMi6140 Parameter Description Configurable values Default value battery Device access Locked device correct PAK or open device Device access No PAK Communicati on timeout MQTT SN time...

Page 34: ...DC Power consumption max 300 mA Power consumption sleep mode 8 A Environmental specifications Operating temperature 5 to 55 C Operating humidity 0 93 RH No condensation Operating altitude 2000 m Pollu...

Page 35: ...35 38 2022 09 V1 2 via LwM2M Elvaco Evo DM system or third party DM system Preconfig on delivery General Supported Protocols LwM2M MQTT SN both over UDP Security DTLS 1 2 Data storage examples Meter...

Page 36: ...CMi6140 User s Manual English CMi6140 User s Manual English page 36 38 2022 09 V1 2 9 Approvals CMi6140 is designed to comply with the followed directives and standard listed below...

Page 37: ...ish page 37 38 2022 09 V1 2 10 Document history 10 1 Versions Version Date Description V0 1 2021 02 Evaluation samples V0 2 2021 06 LVD Basis V1 0 2022 03 Updated release document V1 1 2022 06 Updated...

Page 38: ...e MCM Meter Connectivity Module MD Meter Data MQTT MQ Telemetry Transport MQTT SN MQTT for Sensor Networks NB IoT Narrowband Internet of Things OSCORE Object Security Constrained RESTful Environments...

Reviews: