4343WWCD2 WIFI+BT&BLE 问题

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Eric_wang
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

我在18年6月份下载的WICED6.2.1.2中把bt_dualmode_server例程合并到ble_bt_wifi_introducer例程,以实现WIFI+BT&BLE,测试过程中WIFI(STA模式)一直无法连接路由器。但是BT&BLE可以使用。

今天下载18年8月份更新的WICED6.2.1.2后,WIFI可以连接到路由器。但是BT&BLE部分无法完成初始化,log如图所示:log_picture.png

源码已经放入附件,请帮忙协助分析下原因!

谢谢!

0 点赞
1 解答
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

FreeRTOS 也是可以的, 请看如下log:

Starting WICED vWiced_006.002.001.0002

Platform CYW94343WWCD1_EVB initialised

Started FreeRTOS v9.0.0

Initialising LwIP v2.0.3

Initialising LwIP

DHCP CLIENT hostname WICED IP

WLAN MAC Address : 00:A0:50:11:22:33

WLAN Firmware    : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWID 01-283fcdb9

WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-04-11 22:31:21

WiFi Introducer Sensor Start

1 wiced_network_is_up =0

Joining : mesh

Successfully joined : mesh

Setting IPv6 link-local address

Obtaining IPv4 address via DHCP

IPv6 Network ready IP: FE80::2A0:50FF:FE4A:BAA7

IPv4 Network ready IP: 192.168.1.10

4 wiced_network_is_up =0

00:00:07.165000 GKI_create_task func=0x801fd0d  id=1  name=BTU  stack=0x0  stackSize=6144

00:00:07.173000 GKI_create_task func=0x8026a11  id=0  name=HCISU  stack=0x0  stackSize=4096

join thread Start

Bluetooth Management Event: 0x15

Bluetooth Management Event: 0x0

Bluetooth enabled (success)

Local Bluetooth Address: [12:34:56:12:1F:AC]

WICED DCT BT ADDR 0x11:0x22:0x33:0x44:0x55:0x66

Bluetooth Management Event: 0x17

---->>> New ADV state: 3

Waiting for proximity monitor to connect...

rfcomm create_connection result:0

Waiting for RFCOMM connection (scn=1)...

Bluetooth Management Event: 0x14

Bluetooth Management Event: 0x14

Bluetooth Management Event: 0x21

  Unhandled Bluetooth Management Event: 0x21

在原帖中查看解决方案

0 点赞
4 回复数
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hi Eric:

      我这边使用的是CYW94343WWCD1_EVB 的板子, 直接使用的是你上传的代码,可以成功join AP, 而且蓝牙也可以跑起来。 区别在我用的是threadX,NetX_Duo, 你也可以试下看看区别。

Starting WICED vWiced_006.002.001.0002

Platform CYW94343WWCD1_EVB initialised

Started ThreadX v5.8

Initialising NetX_Duo v5.10_sp3

Creating Packet pools

WLAN MAC Address : 00:A0:50:11:22:33

WLAN Firmware    : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWID 01-283fcdb9

WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-04-11 22:31:21

WiFi Introducer Sensor Start

1 wiced_network_is_up =0

Joining : mesh

Successfully joined : mesh

Obtaining IPv4 address via DHCP

DHCP CLIENT hostname WICED IP

nx_ip_status_check time  is  10000

IPv4 network ready IP: 192.168.1.10

4 wiced_network_is_up =0

00:00:15.905000 GKI_create_task func=0x8020bfd  id=1  name=BTU  stack=0x0  stackSize=6144

00:00:15.913000 GKI_create_task func=0x80278fd  id=0  name=HCISU  stack=0x0  stackSize=4096

join thread Start

Bluetooth Management Event: 0x15

Bluetooth Management Event: 0x0

Bluetooth enabled (success)

Local Bluetooth Address: [12:34:56:12:1F:AC]

WICED DCT BT ADDR 0x11:0x22:0x33:0x44:0x55:0x66

Bluetooth Management Event: 0x17

---->>> New ADV state: 3

Waiting for proximity monitor to connect...

rfcomm create_connection result:0

Waiting for RFCOMM connection (scn=1)...

Bluetooth Management Event: 0x14

Bluetooth Management Event: 0x14

Bluetooth Management Event: 0x21

Unhandled Bluetooth Management Event: 0x21

0 点赞
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

FreeRTOS 也是可以的, 请看如下log:

Starting WICED vWiced_006.002.001.0002

Platform CYW94343WWCD1_EVB initialised

Started FreeRTOS v9.0.0

Initialising LwIP v2.0.3

Initialising LwIP

DHCP CLIENT hostname WICED IP

WLAN MAC Address : 00:A0:50:11:22:33

WLAN Firmware    : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWID 01-283fcdb9

WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-04-11 22:31:21

WiFi Introducer Sensor Start

1 wiced_network_is_up =0

Joining : mesh

Successfully joined : mesh

Setting IPv6 link-local address

Obtaining IPv4 address via DHCP

IPv6 Network ready IP: FE80::2A0:50FF:FE4A:BAA7

IPv4 Network ready IP: 192.168.1.10

4 wiced_network_is_up =0

00:00:07.165000 GKI_create_task func=0x801fd0d  id=1  name=BTU  stack=0x0  stackSize=6144

00:00:07.173000 GKI_create_task func=0x8026a11  id=0  name=HCISU  stack=0x0  stackSize=4096

join thread Start

Bluetooth Management Event: 0x15

Bluetooth Management Event: 0x0

Bluetooth enabled (success)

Local Bluetooth Address: [12:34:56:12:1F:AC]

WICED DCT BT ADDR 0x11:0x22:0x33:0x44:0x55:0x66

Bluetooth Management Event: 0x17

---->>> New ADV state: 3

Waiting for proximity monitor to connect...

rfcomm create_connection result:0

Waiting for RFCOMM connection (scn=1)...

Bluetooth Management Event: 0x14

Bluetooth Management Event: 0x14

Bluetooth Management Event: 0x21

  Unhandled Bluetooth Management Event: 0x21

0 点赞

好的,非常感谢!

CYW94343WWCD1_EVB 和 CYW94343WWCD2之间除了MCU不同,WICED配置上有什么区别吗?

0 点赞
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

combo chip是一个片子, 主要的不同就在MCU , lib 库都是一样的, 可以到platform下面去找一下不同。

0 点赞