完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我选择4G模块是air780e,
有附上我的模组图片,模组上似乎没有rest控制脚,程序中选择gpio13为复位控制脚,且说是必选的,但是我并没有这个脚。 正常的日志结果和我的似乎不太一样,我的到了I (5875) USB_HCDC: CDC task start就没后续了,是因为没接复位脚吗 这是我的日志 I (0) cpu_start: App cpu up. I (310) cpu_start: Pro cpu start user code I (310) cpu_start: cpu freq: 240000000 Hz I (310) cpu_start: Application information: I (313) cpu_start: Project name: usb_cdc_4g_module I (319) cpu_start: App version: be8a92bd I (324) cpu_start: Compile time: Jun 18 2024 11:38:17 I (330) cpu_start: ELF file SHA256: 3b7e4eafec4fa330... I (336) cpu_start: ESP-IDF: v5.1.3-dirty I (341) cpu_start: Min chip rev: v0.0 I (346) cpu_start: Max chip rev: v0.99 I (351) cpu_start: Chip rev: v0.2 I (355) heap_init: Initializing. RAM available for dynamic allocation: I (363) heap_init: At 3FCA2900 len 00046E10 (283 KiB): DRAM I (369) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM I (375) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (382) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM I (388) spi_flash: detected chip: generic I (393) spi_flash: flash io: qio W (396) spi_flash: Detected size(16384k) larger than the size in the binary image header(4096k). Using the size in the binary image header. I (410) sleep: Configure to isolate all GPIO pins in sleep state I (416) sleep: Enable automatic switching of GPIO sleep configuration I (424) app_start: Starting scheduler on CPU0 I (429) app_start: Starting scheduler on CPU1 I (429) main_task: Started on CPU0 I (439) main_task: Calling app_main() I (443) led_indicator: LED Indicator Version: 0.3.0 I (448) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (457) led_indicator: blink_lists is null, use default blink list W (464) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function I (482) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0xf, is_active_level_high:1, blink_lists:default I (494) led_indicator: LED Indicator Version: 0.3.0 I (500) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (509) led_indicator: blink_lists is null, use default blink list W (516) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function I (534) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x11, is_active_level_high:1, blink_lists:default I (546) led_indicator: LED Indicator Version: 0.3.0 I (552) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (561) led_indicator: blink_lists is null, use default blink list W (568) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function I (586) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x10, is_active_level_high:1, blink_lists:default I (613) 4g_main: ==================================== I (613) 4g_main: ESP 4G Cat.1 Wi-Fi Router I (613) 4g_main: ==================================== I (618) modem_board: iot_usbh_modem, version: 0.2.1 I (624) modem_board: Force reset modem board.... I (629) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (639) modem_board: Resetting modem using io=13, level=0 I (845) modem_board: Waiting for modem initialize ready I (5845) USB_HCDC: iot_usbh_cdc, version: 0.2.2 I (5845) IOT_USBH: iot_usbh, version: 0.2.1 I (5875) IOT_USBH: USB Port=1 init succeed, fifo strategy=0 I (5875) IOT_USBH: USB Processing Start I (5875) IOT_USBH: usb port start succeed I (5875) IOT_USBH: Waiting USB Connection I (5879) USB_HCDC: usbh cdc driver install succeed I (5884) IOT_USBH: Port power: ON Succeed I (5889) USB_HCDC: Waiting CDC Device Connection I (5875) USB_HCDC: CDC task start |
|
相关推荐
1个回答
|
|
要通过修改usb_cdc_4g_module demo实现PPP拨号上网,你需要按照以下步骤操作:
1. **确认硬件连接**:首先确保你的4G模块(air780e)与你的设备正确连接。你提到模组上没有rest控制脚,但是程序中选择gpio13为复位控制脚。这可能是一个问题,因为如果没有正确连接复位控制脚,模块可能无法正常启动。 2. **检查GPIO配置**:在你的代码中,确保GPIO13被正确配置为复位控制脚。如果没有这个引脚,你可能需要修改代码,使用其他可用的GPIO引脚作为复位控制脚。 3. **初始化4G模块**:在代码中,确保4G模块在启动时被正确初始化。这通常涉及到发送AT命令来配置模块,例如设置APN、用户名和密码等。 4. **实现PPP拨号**:要实现PPP拨号,你需要在代码中发送相应的AT命令来建立PPP连接。这通常涉及到发送`AT+CGDCONT=1,"IP","your_apn"`命令来设置PDP上下文,然后发送`AT+CGPPPCFG=1,1,"","",0,0,0,0,0`命令来配置PPP参数。 5. **检查日志输出**:你提供的日志显示在"I (5875) USB_HCDC: CDC task start"之后没有后续输出。这可能是因为4G模块没有正确初始化或者PPP拨号没有成功建立。你需要检查代码中的相关部分,确保所有步骤都正确执行。 6. **调试和测试**:在完成以上步骤后,你需要对代码进行调试和测试,确保PPP拨号能够成功建立并保持连接。你可以通过发送其他AT命令(如`AT+CGATT=1`)来检查网络连接状态。 7. **优化代码**:在测试过程中,你可能需要对代码进行优化,以提高性能和稳定性。这可能包括优化AT命令的发送和接收、处理网络连接的异常情况等。 总之,要实现PPP拨号上网,你需要确保4G模块正确初始化、配置和拨号。同时,你需要检查代码中的GPIO配置,确保复位控制脚正确连接。在调试和测试过程中,你可能需要对代码进行优化,以提高性能和稳定性。 |
|
|
|
只有小组成员才能发言,加入小组>>
1138 浏览 1 评论
576浏览 6评论
477浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
461浏览 5评论
462浏览 4评论
435浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 11:16 , Processed in 0.834837 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号