Skip to Content

MC Command — Country Detection (MCC)

Configure triggers that activate when changing country via GSM network.


What is it for?

🌍 Main use cases:

  • 🚗 Detect international border crossings
  • ⚙️ Automatically change configuration by country
  • 📊 Generate country entry/exit reports
  • 🔄 Change SIM according to country operator
  • 💰 Optimize roaming costs

MCC (Mobile Country Code) codes are international standards. Check the complete list of codes .


Commands

OperationSyntaxDescription
ConfigureSMCaabbbAssign MCC to index aa
QueryQMCaaRead MCC from index aa
ResponseRMCaabbbConfirmation

Parameters

ParameterDescriptionValues
aaTrigger index00 to 03 (4 triggers)
bbbCountry MCC code000 = not assigned

South America MCC Codes

CountryMCCFlag
Argentina722🇦🇷
Uruguay748🇺🇾
Brazil724🇧🇷
Chile730🇨🇱
Paraguay744🇵🇾
Bolivia736🇧🇴

Examples

Detection of entry to Uruguay

>SMC00748< // Configure index 00 with Uruguay MCC >SRL24E;TRG=MC00+;ACC={GTX00L;@TRM;TXT=URUGUAY ENTRY DETECTED}< // └─ When detecting entry (+) to country MC00

Country conditional (only report if in Argentina)

// Index 01 = Argentina >SMC01722< >SRL50E;TRG=IN00-;CND=MC01;ACC={GCQ00L}< // └─ Only execute if in Argentina

Mercosur border control system

>SMC00722< // Argentina >SMC01748< // Uruguay >SMC02724< // Brazil >SMC03744< // Paraguay >SRL60E;TRG=MC00+;ACC={GCQ00H;TXT=ARGENTINA ENTRY}< >SRL61E;TRG=MC01+;ACC={GCQ00H;TXT=URUGUAY ENTRY}< >SRL62E;TRG=MC02+;ACC={GCQ00H;TXT=BRAZIL ENTRY}<

Use MC triggers as conditionals in rules to apply different logic depending on the country where the vehicle is located.


Usage in Rules

UsageSyntaxDescription
Entry triggerTRG=MCxx+When entering the country
Exit triggerTRG=MCxx-When leaving the country
ConditionalCND=MCxxIf in the country
Negated conditionalCND=MCxx!If NOT in the country

Associated Signals

PropertyValue
SignalMCaa
Index00 - 03
Conditional usage✅ YES
Edges+ Entry, - Exit

Compatibility

💾Firmware:v1.00.00
SPLegacy
ULLegacy
MTLegacy
C3Legacy
C5Legacy
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated