Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSM Manager No Modem found #2

Open
Eivy1987 opened this issue Oct 4, 2022 · 7 comments
Open

GSM Manager No Modem found #2

Eivy1987 opened this issue Oct 4, 2022 · 7 comments

Comments

@Eivy1987
Copy link

Eivy1987 commented Oct 4, 2022

Hi together,
I really like your project. Thank you already

I organized with your documentation link, a Lily Go Board on AliExpress (EU Version).
After arrival, I went after your documentation video to configure the device via USB-C and Windows (worked all like in your video).
The device after configuration is connected to Wi-Fi, and it's pingable as well. Sim Card is inside. Under logs and & console

I have the following issue:

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[ 32][I][ImprovSerial.cpp:26] setup(): [improv_serial] Settings ssid=wifi-vg-4th-floor, password=*****ens2020, slack=https://hooks.slack.com/services/T01E7********P/B0423N53ZRB/TgzYrF06yC3dlzqGIRFEZCXn
[ 184][W][WiFiGeneric.cpp:950] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[ 587][I][SystemManager.cpp:32] gotIP(): [SystemManager] IP: 192.168.52.143
[ 1593][I][GSMManager.cpp:38] loop(): [GSMManager] No modem found
[ 2520][I][GSMManager.cpp:38] loop(): [GSMManager] No modem found
[ 3447][I][GSMManager.cpp:38] loop(): [GSMManager] No modem found
[ 4374][I][GSMManager.cpp:38] loop(): [GSMManager] No modem found
[ 5301][I][GSMManager.cpp:38] loop(): [GSMManager] No modem found
[ 6228][I][GSMManager.cpp:38] loop(): [GSMManager] No modem found

Googling this issue is leading to no results, and I really don't know how to solve that. Is there an additional step which is missing?
My board has also two USB connections, once USB-C(which I configured the device) and another USB Micro (maybe for the Modem)

Attached are two pictures of how everything is connected.
https://ibb.co/d4d5vVg
https://ibb.co/fxyxJT1

I hope you can help me to get it running (That modem gets found).
PS: I wanted to buy your configured device, but it was not available:-)

Regards Eddy

@dz0ny
Copy link
Member

dz0ny commented Oct 5, 2022

Hi, currently firmware support only older version of the board which used different pins for serial port. You can change the serial pins config, so that they match your board in https://github.com/ParetoSecurity/sms-slack-v3/blob/main/platformio.ini and then compile and flash it using platformio.

-   DSMS_RX='16'
-   DSMS_TX='17'
+   DSMS_RX='26'
+   DSMS_TX='27'

If the change works, please report back so that we can add it to the config.

@godstone
Copy link

Hi, I had the same issue as Eivy1987.
I cloned the repo and made those pin-changes. Flashing with platformio was not possible, so I did that manually with the esphomeflasher. After flashing it starts up correctly and logs the signal-strength and IMEI. But I still receive no SMS which I sent from my mobile to it.

Furthermore I see that it should log the operator-name as well but it doesn't.
gsmAt.GetOperatorName(ops); ESP_LOGI(TAG, "Operator: %s", ops.c_str());
Just the two lines for signal and IMEI repeating.

Any hints how I can resolve this? :)

@godstone
Copy link

After flashing it again with the new rx, tx numbers, it's back to square one and repeating "No Modem found"

@dz0ny
Copy link
Member

dz0ny commented Oct 14, 2022

Make sure you don't have SIM locked. Also which variant of modem do you have? You can try disabling LTE mode (https://github.com/ParetoSecurity/sms-slack-v3/blob/main/src/GSMManager.cpp#L48), because it might not be supported on specific band. Whole LTE is such a mess and these modules heavily depend on tower and provider.

@godstone
Copy link

SIM is unlocked :)
I've got the v1.1 2022-2-28 XY--A7670E
I've flashed it now with disabled LTE. It looks a bit different but stillnot completely right. 😄 Also enabled the DEBUG mode

Showing logs:
[17:44:55][[17:44:55][    18][E][Preferences.cpp:483] getString(): nvs_get_str len fail: pass NOT_FOUND
[17:44:55][    22][E][Preferences.cpp:483] getString(): nvs_get_str len fail: slack NOT_FOUND
[17:44:55][    29][I][ImprovSerial.cpp:26] setup(): [improv_serial] Settings ssid=awl, password=xyzxyzxyz, slack=https://hooks.slack.com/services/DELETED/DELETEDoutOfPrivacy
[17:44:55][    56][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
[17:44:55][   220][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
[17:44:55][   221][E][Preferences.cpp:483] getString(): nvs_get_str len fail: ssid NOT_FOUND
[17:44:55][   224][E][Preferences.cpp:483] getString(): nvs_get_str len fail: pass NOT_FOUND
[17:44:56][  1201][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[17:44:56][  1247][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[17:44:56][  1247][D][WiFiGeneric.cpp:991] _eventCallback(): STA IP: 10.10.11.39, MASK: 255.255.254.0, GW: 10.10.10.10
[17:44:56][  1252][I][SystemManager.cpp:32] gotIP(): [SystemManager] IP: 10.10.11.39
[17:45:01][  5878][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 4
[17:45:01][  5878][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 
[17:45:01][  5878][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:02][  7386][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:03][  7813][I][GSMManager.cpp:39] loop(): [GSMManager] No modem found
[17:45:07][ 12386][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:08][ 13218][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 99
[17:45:08][ 13219][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:08][ 13219][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:08][ 13233][I][GSMManager.cpp:57] loop(): [GSMManager] Status: Unknown
[17:45:08][ 13239][I][GSMManager.cpp:62] loop(): [GSMManager] Operator: 
[17:45:08][ 13248][I][GSMManager.cpp:68] loop(): [GSMManager] SMS: 0
[17:45:09][ 13887][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:09][ 14044][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 31
[17:45:09][ 14044][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:09][ 14045][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:09][ 14059][I][GSMManager.cpp:57] loop(): [GSMManager] Status: Unknown
[17:45:09][ 14065][I][GSMManager.cpp:62] loop(): [GSMManager] Operator: 
[17:45:09][ 14074][I][GSMManager.cpp:68] loop(): [GSMManager] SMS: 0
[17:45:10][ 15388][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:10][ 15546][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 31
[17:45:10][ 15546][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:10][ 15547][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:10][ 15561][I][GSMManager.cpp:57] loop(): [GSMManager] Status: Unknown
[17:45:10][ 15567][I][GSMManager.cpp:62] loop(): [GSMManager] Operator: 
[17:45:10][ 15576][I][GSMManager.cpp:68] loop(): [GSMManager] SMS: 0
[17:45:12][ 16889][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:12][ 17047][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 24
[17:45:12][ 17047][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:12][ 17048][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:12][ 17062][I][GSMManager.cpp:57] loop(): [GSMManager] Status: Unknown
[17:45:12][ 17068][I][GSMManager.cpp:62] loop(): [GSMManager] Operator: 
[17:45:12][ 17077][I][GSMManager.cpp:68] loop(): [GSMManager] SMS: 0
[17:45:13][ 18390][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:13][ 18552][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 24
[17:45:13][ 18552][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:13][ 18553][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:13][ 18566][I][GSMManager.cpp:57] loop(): [GSMManager] Status: Unknown
[17:45:13][ 18572][I][GSMManager.cpp:62] loop(): [GSMManager] Operator: 
[17:45:13][ 18581][I][GSMManager.cpp:68] loop(): [GSMManager] SMS: 0
[17:45:15][ 19891][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:15][ 20049][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 24
[17:45:15][ 20050][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:15][ 20051][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:15][ 20064][I][GSMManager.cpp:57] loop(): [GSMManager] Status: Unknown
[17:45:15][ 20070][I][GSMManager.cpp:62] loop(): [GSMManager] Operator: 
[17:45:15][ 20079][I][GSMManager.cpp:68] loop(): [GSMManager] SMS: 0
[17:45:16][ 21392][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:17][ 22027][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:17][ 22027][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:17][ 22028][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:17][ 22042][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:17][ 22210][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:17][ 22210][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:17][ 22211][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:17][ 22225][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:17][ 22518][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:17][ 22519][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:17][ 22519][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:17][ 22544][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:18][ 22709][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:18][ 22709][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:18][ 22710][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:18][ 22724][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:18][ 22895][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:18][ 22895][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:18][ 22896][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:18][ 22915][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:18][ 23079][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:18][ 23079][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:18][ 23080][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:18][ 23094][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39
[17:45:18][ 23255][I][GSMManager.cpp:52] loop(): [GSMManager] Signal: 21
[17:45:18][ 23256][I][GSMManager.cpp:53] loop(): [GSMManager] IMEI: 8622050528xxxxx
[17:45:18][ 23256][I][GSMManager.cpp:54] loop(): [GSMManager] Reg-Status before Success: Unknown
[17:45:18][ 23295][I][SystemManager.cpp:107] loop(): [SystemManager] IP: 10.10.11.39

@godstone
Copy link

Flashed it again and 5 test-message came into slack. After that it goes back into that loop above an no new messages come in.

@dz0ny
Copy link
Member

dz0ny commented Oct 14, 2022

Looks like it's not supported by your provider. If you have other SIMs try them to see if they allow registration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants