feat: GSM SIM7600E-H — real hardware mode + admin UI#541
Merged
Conversation
Switch GSM service from forced mock mode to auto-detection of real hardware. Add new AT commands for SIM7600E-H: PDU SMS with UCS2 (Cyrillic), AT+CHUP for hangup, AT+CNMP=14 (force 2G/3G for SMS/voice), DTMF tones, network mode detection, SIM SMS read/delete. Backend: - gsm_service.py: new methods — read_sms, read_all_sms, delete_sms, delete_all_sms, send_dtmf, get_network_mode + NETWORK_MODES dict - orchestrator.py: remove mock_mode=True, auto-detect hardware - router.py: new endpoints POST /admin/gsm/dtmf, POST /admin/gsm/sms/read-modem, POST /admin/gsm/sms/clear-modem; add network_mode to status response Frontend: - gsm.ts: new API methods readModemSMS, clearModemSMS, sendDTMF; add mock_mode + network_mode to GSMStatus type - GSMView.vue: MOCK badge, network mode display, AT port card, "Read from SIM" button, Cyrillic-aware SMS char counter (70/UCS2 vs 160/GSM7) ## NEWS 📡 **GSM-модем SIM7600E-H — реальное железо вместо заглушки** GSM-модуль теперь автоматически определяет подключённый модем и работает с реальным железом. Поддержка SMS на русском языке через PDU/UCS2, определение типа сети (2G/3G/LTE), чтение SMS с SIM-карты прямо из админки, отправка DTMF-тонов. В UI появились бейдж режима (MOCK/железо), показ типа сети, кнопка «С SIM» и счётчик символов с учётом кириллицы. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mock_mode=Trueto auto-detection of real hardwaregsm_service.py:read_sms,read_all_sms,delete_sms,delete_all_sms,send_dtmf,get_network_modewithNETWORK_MODESdictnetwork_modefield to GSM status (GSM/HSDPA/LTE)POST /admin/gsm/dtmf,POST /admin/gsm/sms/read-modem,POST /admin/gsm/sms/clear-modemNEWS
📡 GSM-модем SIM7600E-H — реальное железо вместо заглушки
GSM-модуль теперь автоматически определяет подключённый модем и работает с реальным железом. Поддержка SMS на русском языке через PDU/UCS2, определение типа сети (2G/3G/LTE), чтение SMS с SIM-карты прямо из админки, отправка DTMF-тонов. В UI появились бейдж режима (MOCK/железо), показ типа сети, кнопка «С SIM» и счётчик символов с учётом кириллицы.
Test plan
./start_gpu.sh— GSM service initializes in hardware mode (not mock)curl http://localhost:8002/admin/gsm/status— showsmock_mode: false, signal, network_modecd admin && npm run build— no type errors🤖 Generated with Claude Code