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
Query current networkQMC (no index)Returns the actual MCC of the current cellular network, not a configured value
ResponseRMCaabbbConfirmation

Parameters

ParameterDescriptionValues
aaTrigger index00 to 07 (8 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}<

Query the current network’s MCC (no index)

>QMC< >RMC722< // Actual MCC of the current cellular network (Argentina), independent of any configured index

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 - 07
Conditional usage✅ YES
Edges+ Entry, - Exit

Compatibility

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

See Also

Last updated