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
| Operation | Syntax | Description |
|---|---|---|
| Configure | SMCaabbb | Assign MCC to index aa |
| Query | QMCaa | Read MCC from index aa |
| Response | RMCaabbb | Confirmation |
Parameters
| Parameter | Description | Values |
|---|---|---|
aa | Trigger index | 00 to 03 (4 triggers) |
bbb | Country MCC code | 000 = not assigned |
South America MCC Codes
| Country | MCC | Flag |
|---|---|---|
| Argentina | 722 | 🇦🇷 |
| Uruguay | 748 | 🇺🇾 |
| Brazil | 724 | 🇧🇷 |
| Chile | 730 | 🇨🇱 |
| Paraguay | 744 | 🇵🇾 |
| Bolivia | 736 | 🇧🇴 |
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 MC00Country conditional (only report if in Argentina)
// Index 01 = Argentina
>SMC01722<
>SRL50E;TRG=IN00-;CND=MC01;ACC={GCQ00L}<
// └─ Only execute if in ArgentinaMercosur 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
| Usage | Syntax | Description |
|---|---|---|
| Entry trigger | TRG=MCxx+ | When entering the country |
| Exit trigger | TRG=MCxx- | When leaving the country |
| Conditional | CND=MCxx | If in the country |
| Negated conditional | CND=MCxx! | If NOT in the country |
Associated Signals
| Property | Value |
|---|---|
| Signal | MCaa |
| Index | 00 - 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
- Event Engine - Rules configuration
- COPS Command - Carrier selection
Last updated