How to connect M-Bus device to 2N® SmartCOM PRO ETH?

tested with M-Bus electricity (Inepro PRO380-Mb) and 2N® SmartCOM PRO ETH with firmware SCE_1.12.0.12.24 supporting AMS features.

  • check whether is AMS enabled, if not enter command AT^SCAMS="ENABLE",1

AT^SCAMS?

^SCAMS: "ENABLE",1

^SCAMS: "RETRY",0

^SCAMS: NO DEVICE

  • A) use AT command for detecting connected M-Bus devices

AT^SCAMSADD=<PORT>,<PROTOCOL>,<BAUDRATE>,<INTERVAL>,<NUMBER_OF_EXPECTED_DEVICES>

AT^SCAMSADD=2,"MBUS",2400,"1M",1

^SCAMSADD: 65286,1,"1,15020416"


2N® SmartCOM PRO ETH detected 1 meter with secondary address 15020416 and add this device to the table

AT^SCAMS?

^SCAMS: "ENABLE",1

^SCAMS: "RETRY",0

^SCAMS: "DEV_CNT",1

^SCAMS: 1> 2,"MBUS","*15020416@2400","1M"


  • B) use SMS for detecting connected M-Bus devices

SC AMSADD PWD=<password> QTY=<n> PORT=<port> PROTOCOL=<protocol> INT=<interval> [BAUDRATE=<baudrate>]     BAUDRATE is optional


2N® SmartCOM PRO ETH detected 1 meter with secondary address 15020416 and add this device to the table


  • result are stored in 2N® SmartCOM PRO ETH internal memory

AT^SCDATA="GET_OLDEST",3

^SCDATA: "AMS",1467365701,10506,"MBUS",1,0,"","684B4B680801721604021592B00102090000000C04790200008C1004790200008C2004000000001C04660300009C1004660300009C2004000000002C0487000000AC100487000000AC2004000000008016"

^SCDATA: "AMS",1467365762,10508,"MBUS",1,0,"","684B4B680801721604021592B001020A0000000C04790200008C1004790200008C2004000000001C04660300009C1004660300009C2004000000002C0487000000AC100487000000AC2004000000008116"

^SCDATA: "AMS",1467365822,10509,"MBUS",1,0,"","684B4B680801721604021592B001020B0000000C04790200008C1004790200008C2004000000001C04660300009C1004660300009C2004000000002C0487000000AC100487000000AC2004000000008216"