Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A2 SIM7600 with Tuya GPRS not work
#1
Hi.
If I activate
connect by gprs (for board have gprs)
will stop working
Please help[Image: readmsg?id=17518412601715379389;0;1&mode...cte=binary]
Code:
I (83387) web socket: Handshake done, the new connection was opened
I (85490) main: [APP] Free memory: 93520 bytes
I (88665) SIM7600: gprs tuya online
I (90490) main: [APP] Free memory: 93520 bytes
E (93671) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR

I (95490) main: [APP] Free memory: 93520 bytes
E (98677) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR

I (100490) main: [APP] Free memory: 93520 bytes
E (103683) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR

I (105490) main: [APP] Free memory: 93520 bytes
E (108689) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR

If I connect LAN and disable " connect by gprs" - its work
 
[Image: readmsg?id=17518412601715379389;0;2&mode...cte=binary]

Code:
Boot log with connect by gprs (for board have gprs) deactivated and Lan connected

I (786) cpu_start: Application information:
I (791) cpu_start: Project name:     kc868-a-serial
I (796) cpu_start: App version:      v2.2.11-dirty
I (802) cpu_start: Compile time:     Feb  6 2025 21:47:45
I (808) cpu_start: ELF file SHA256:  810cb7cb959696dd...
I (814) cpu_start: ESP-IDF:          v4.4.7-dirty
I (819) cpu_start: Min chip rev:     v0.0
I (824) cpu_start: Max chip rev:     v3.99
I (829) cpu_start: Chip rev:         v3.1
I (834) heap_init: Initializing. RAM available for dynamic allocation:
I (841) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (847) heap_init: At 3FFC72C8 len 00018D38 (99 KiB): DRAM
I (853) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (859) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (866) heap_init: At 4008F6B4 len 0001094C (66 KiB): IRAM
I (873) spi_flash: detected chip: generic
I (876) spi_flash: flash io: dio
I (881) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (896) main: [APP] Startup..
I (899) main: [APP] Free memory: 215304 bytes
I (904) main: [APP] IDF version: v4.4.7-dirty
I (1178) NVS: init nvs finish.
I (1181) system_api: Base MAC address is not set
I (1181) system_api: read default base MAC address from EFUSE
I (1203) esp_eth.netif.netif_glue: f4:65:0b:e4:14:13
I (1203) esp_eth.netif.netif_glue: ethernet attached to netif
I (2704) eth: Ethernet Started
I (2705) eth: Ethernet init
I (2705) wifi station: ESP_WIFI_INIT
I (2706) eth: Ethernet Link Up
I (2709) eth: Ethernet HW Addr f4:65:0b:e4:14:13
I (2716) wifi:wifi driver task: 3ffd44d4, prio:23, stack:6656, core=0
I (2729) wifi:wifi firmware version: 1fd20f4
I (2730) wifi:wifi certification version: v7.0
I (2730) wifi:config NVS flash: enabled
I (2732) wifi:config nano formating: disabled
I (2736) wifi:Init data frame dynamic rx buffer num: 32
I (2741) wifi:Init static rx mgmt buffer num: 5
I (2745) wifi:Init management short buffer num: 32
I (2750) wifi:Init dynamic tx buffer num: 32
I (2754) wifi:Init static rx buffer size: 1600
I (2758) wifi:Init static rx buffer num: 10
I (2762) wifi:Init dynamic rx buffer num: 32
I (2767) wifi_init: rx ba win: 6
I (2770) wifi_init: tcpip mbox: 32
I (2774) wifi_init: udp mbox: 6
I (2777) wifi_init: tcp mbox: 6
I (2781) wifi_init: tcp tx win: 5744
I (2786) wifi_init: tcp rx win: 5744
I (2790) wifi_init: tcp mss: 1440
I (2799) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06
I (2885) wifi:mode : softAP (f4:65:0b:e4:14:11)
I (2886) wifi:Total power save buffer number: 16
I (2887) wifi:Init max length of beacon: 752/752
I (2888) wifi:Init max length of beacon: 752/752
I (2893) web_server: Starting HTTP Server on port: '80'
I (2900) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0
I (2907) tuya: start tuya task.
I (2907) ntp: tz:UTC+0
I (2914) tuya: property topic tylink/269d6520ff81b6a74ebev3/thing/property/report .
I (2925) tuya: Other event id:7
I (2925) UDP SERVER: Socket created
E (2927) esp-tls: couldn't get hostname for :m1.tuyaeu.com: getaddrinfo() returns 202, addrinfo=0x0
I (2931) UDP SERVER: Socket bound, port 4001
E (2940) esp-tls: Failed to open new connection
E (2950) TRANSPORT_BASE: Failed to open a new connection
E (2956) MQTT_CLIENT: Error transport connect
I (2961) tuya: MQTT_EVENT_ERROR
E (2965) tuya: Last error reported from esp-tls: 0x8001
I (2971) tuya: Last errno string (Success)
I (2975) tuya: MQTT_EVENT_DISCONNECTED
E (2940) uart: uart_set_pin(689): tx_io_num error
I (2986) uart: queue free spaces: 20
I (2990) gprs: gprs init success.
I (2994) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (3003) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (3012) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3022) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3031) direct_io: direct io init.
I (3032) MQTT_CLIENT: Publishing skipped: client is not connected
I (3043) MQTT_CLIENT: Publishing skipped: client is not connected
I (3044) gpio: GPIO[33]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 0| Pulldown: 0| Intr:0
I (3058) gpio: GPIO[14]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 0| Pulldown: 0| Intr:0
I (3067) main: [APP] Free memory: 83620 bytes
I (3706) esp_netif_handlers: eth ip: 192.168.2.138, mask: 255.255.255.0, gw: 192.168.2.202
I (3707) eth: Ethernet Got IP Address
I (3709) eth: ~~~~~~~~~~~
I (3713) eth: ETHIP:192.168.2.138
I (3716) eth: ETHMASK:255.255.255.0
I (3721) eth: ETHGW:192.168.2.202
I (3724) eth: ~~~~~~~~~~~
I (3907) ifttt: start ifttt task
I (5987) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (5988) wifi:station: a8:96:09:42:ae:ec join, AID=1, bgn, 40U
I (5991) wifi station: station a8:96:09:42:ae:ec join, AID=1
I (6072) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (8072) main: [APP] Free memory: 86204 bytes
I (9337) wifi:<ba-add>idx:2 (ifx:1, a8:96:09:42:ae:ec), tid:0, ssn:64, winSize:64I (9338) web_server: close() fd (52) success.

I (12617) gprs: uart rx break
I (12980) tuya: Other event id:7
I (13072) main: [APP] Free memory: 84552 bytes
I (14365) tuya: MQTT_EVENT_CONNECTED
I (14368) tuya: subscribe tylink/269d6520ff81b6a74ebev3/thing/property/report_response .
I (14371) tuya: subscribe tylink/269d6520ff81b6a74ebev3/thing/property/set .
I (14377) tuya: subscribe tylink/269d6520ff81b6a74ebev3/thing/event/trigger_response .
I (14385) tuya: subscribe tylink/269d6520ff81b6a74ebev3/thing/action/execute .
Reply
#2
you can download KCS firmware, easy to use SIM7600 by SMS or CALL.
sorry, we can't see your TEXT and image in your thread.
Reply
#3
(07-07-2025, 10:58 AM)admin Wrote: you can download KCS firmware, easy to use SIM7600 by SMS or CALL.
sorry, we can't see your TEXT and image in your thread.

I use  KCS firmware 2.2.14

If I activate in Tyua config
"connect by gprs (for board have gprs)"
will stop working
Tuya:  disconnected
GPRS:  connected

PCB A2 v2.4
In log
I (522385) web_handles: restart
I (522888) wifiConfusedtation: a8:96:09:42:ae:ec leave, AID = 1, bss_flags is 134243,                                                                                      bss:0x3ffc88f0
I (522890) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (522894) wifi:<ba-del>idx
I (522897) wifi station: station a8:96:09:42:ae:ec leave, AID=1
I (523096) wifi:flush txq
I (523096) wifiConfusedtop sw txq
I (523097) wifi:lmac stop hw txq
I (13) boot: ESP-IDF v4.4.7 2nd stage bootloader
I (13) boot: compile time 07:35:02
I (13) boot: Multicore bootloader
I (15) boot: chip revision: v3.1
I (19) boot.esp32: SPI Speed      : 40MHz
I (23) boot.esp32: SPI Mode      : DIO
I (28) boot.esp32: SPI Flash Size : 4MB
I (32) boot: Enabling RNG early entropy source...
I (38) boot: Partition Table:
I (41) boot: ## Label            Usage          Type ST Offset  Length
I (49) boot:  0 nvs              WiFi data        01 02 00009000 00026000
I (56) boot:  1 phy_init        RF data          01 01 0003f000 00001000
I (64) boot:  2 factory          factory app      00 00 00040000 003b0000
I (71) boot: End of partition table
I (75) esp_image: segment 0: paddr=00040020 vaddr=3f400020 size=1018f0h (1054960                                                                                      ) map
I (466) esp_image: segment 1: paddr=00141918 vaddr=3ffb0000 size=03514h ( 13588)                                                                                      load
I (471) esp_image: segment 2: paddr=00144e34 vaddr=40080000 size=0b1e4h ( 45540)                                                                                      load
I (490) esp_image: segment 3: paddr=00150020 vaddr=400d0020 size=a78c4h (686276)                                                                                      map
I (739) esp_image: segment 4: paddr=001f78ec vaddr=4008b1e4 size=044d0h ( 17616)                                                                                      load
I (754) boot: Loaded app from partition at offset 0x40000
I (754) boot: Disabling RNG early entropy source...
I (766) cpu_start: Multicore app
I (766) cpu_start: Pro cpu up.
I (766) cpu_start: Starting app cpu, entry point is 0x40081240
I (764) cpu_start: App cpu up.
I (786) cpu_start: Pro cpu start user code
I (786) cpu_start: cpu freq: 240000000
I (786) cpu_start: Application information:
I (791) cpu_start: Project name:    KC868_A2
I (796) cpu_start: App version:      v2.2.14
I (801) cpu_start: Compile time:    Jun 26 2025 07:34:56
I (807) cpu_start: ELF file SHA256:  313e44b3f8c173e2...
I (813) cpu_start: ESP-IDF:          v4.4.7
I (818) cpu_start: Min chip rev:    v0.0
I (822) cpu_start: Max chip rev:    v3.99
I (827) cpu_start: Chip rev:        v3.1
I (832) heap_init: Initializing. RAM available for dynamic allocation:
I (839) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (845) heap_init: At 3FFC72C8 len 00018D38 (99 KiB): DRAM
I (851) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (858) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (864) heap_init: At 4008F6B4 len 0001094C (66 KiB): IRAM
I (871) spi_flash: detected chip: generic
I (875) spi_flash: flash io: dio
I (880) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (895) main: [APP] Startup..
I (898) main: [APP] Free memory: 215304 bytes
I (903) main: [APP] IDF version: v4.4.7
I (1176) NVS: init nvs finish.
I (1190) system_api: Base MAC address is not set
I (1190) system_api: read default base MAC address from EFUSE
I (1211) esp_eth.netif.netif_glue: f4:65:0b:e4:14:13
I (1211) esp_eth.netif.netif_glue: ethernet attached to netif
I (5212) eth: Ethernet init
I (5212) wifi station: ESP_WIFI_INIT
I (5212) eth: Ethernet Started
I (5215) wifi:wifi driver task: 3ffd4488, prio:23, stack:6656, core=0
I (5228) wifi:wifi firmware version: 1fd20f4
I (5228) wifi:wifi certification version: v7.0
I (5229) wifi:config NVS flash: enabled
I (5231) wifi:config nano formating: disabled
I (5235) wifi:Init data frame dynamic rx buffer num: 32
I (5240) wifi:Init static rx mgmt buffer num: 5
I (5244) wifi:Init management short buffer num: 32
I (5248) wifi:Init dynamic tx buffer num: 32
I (5253) wifi:Init static rx buffer size: 1600
I (5257) wifi:Init static rx buffer num: 10
I (5260) wifi:Init dynamic rx buffer num: 32
I (5265) wifi_init: rx ba win: 6
I (5268) wifi_init: tcpip mbox: 32
I (5272) wifi_init: udp mbox: 6
I (5276) wifi_init: tcp mbox: 6
I (5280) wifi_init: tcp tx win: 5744
I (5284) wifi_init: tcp rx win: 5744
I (5288) wifi_init: tcp mss: 1440
I (5298) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06
I (5371) wifi:mode : softAP (f4:65:0b:e4:14:11)
I (5373) wifi:Total power save buffer number: 16
I (5373) wifi:Init max length of beacon: 752/752
I (5374) wifi:Init max length of beacon: 752/752
I (5379) web_server: Starting HTTP Server on port: '80'
I (5386) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0
I (5393) tuya: start tuya task.
I (5394) ntp: tz:UTC-3
I (5400) tuya: property topic tylink/**************/thing/property/report .
I (5410) UDP SERVER: Socket created
I (5413) UDP SERVER: Socket bound, port 4001
E (5410) uart: uart_set_pin(689): tx_io_num error
I (5424) uart: queue free spaces: 20
I (5427) gprs: gprs init success.
I (5431) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (5440) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (5450) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (5459) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (5469) direct_io: direct io init.
I (5473) gpio: GPIO[33]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 0| Pulldown: 0| Intr:0
I (5483) gpio: GPIO[14]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 0| Pulldown: 0| Intr:0
I (7870) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (7871) wifiConfusedtation: a8:96:09:42:ae:ec join, AID=1, bgn, 40U
I (7873) wifi station: station a8:96:09:42:ae:ec join, AID=1
I (7958) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (11099) wifi:<ba-add>idx:2 (ifx:1, a8:96:09:42:ae:ec), tid:0, ssn:80, winSize:64
I (11101) web_server: close() fd (52) success.
I (14992) gprs: uart rx break
I (15393) ifttt: start ifttt task
I (33494) web socket: Handshake done, the new connection was opened
I (88672) SIM7600: gprs tuya online
E (93678) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR

E (98684) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR

I (99545) web_server: close() fd (53) success.
E (103690) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR
Reply
#4
do you have filled tuya license information?
Reply
#5
(07-07-2025, 11:42 AM)admin Wrote: do you have filled tuya license information?

Да, конечно. Лицензия внесена. При подключнии по LAN все работает (выключив GPRS).
Yes, sure. The license is introduced. When connecting via LAN, everything works (turning off GPRS).
Переведено с Google (Russian → English)

I also noticed that there is no time synchronization, i.e. There is no Internet accessщт GPRS, although SMS and Call tests pass

Board Time
1970-01-01 03:00:51
Time Zone
UTC+3
Reply
#6
if you enabled 4G, after save the setting, you MUST need power off--> power on of your board.
can you take a video of your problem, send to whatsapp number: +86-15381188302
Reply
#7
(07-07-2025, 10:53 PM)admin Wrote: if you enabled 4G, after save the setting, you MUST need power off--> power on of your board.
can you take a video of your problem, send to whatsapp number: +86-15381188302



Yes, I SAVE settings after activate GPRS, power on/off, from web reboot - not wokr

Send video
Reply
#8
under testing, if have bug, will make a new firmware for you to test.
Reply
#9
(07-08-2025, 07:01 AM)admin Wrote: under testing, if have bug, will make a new firmware for you to test.

Я попробовал версии 2.2.10 / 2.2.12 /2.2.13 и последнюю 2.2.14 - везде одинаково.
При подключении SIM7600 кабелем к ПК у меня появлется несколько устройств, в том числе работает доступ в интернет.
Здесь же, хоть и долго загорается "GPRS : connected" ощущение, что доступ в интернет не работает (судя по тому, что время не синхронизируется, Tuya : not connected

Также прошу обратить внимание на ошибку, которую я вижу на COM порту
E (93798) SIM7600: ==> ./components/gprs/sim7600.c 865
+CMQTTTOPIC: 0,14

ERROR
I tried version 2.2.10 / 2.2.12 /2.2.13 and the last 2.2.14 - everywhere the same.
When connecting the SIM7600 cable to the PC, I will have several devices, including Internet access.
Here, although "GPRS: Connected" the feeling that Internet access does not work (judging by the fact that time is not synchronized, Tuya: Not Connected

I also ask you to pay attention to the mistake that I see on the port of the port
E (93798) SIM7600: ==> ./components/gPrs/sim7600.c 865
+CMQTTTOPIC: 0.14

Error
Переведено с Google (Russian → English)
Reply
#10
Hello. I confirm that the problem exists. Tuya does not work, there are gprs and ethernet enabled at the same time. I tested on KCS firmware 2.2.12 and on the latest 2.2.14. I left the ethernet connection and turned off gprs.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)