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

cross mob
jeco
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello

I'm working with an old program to update certificates from Azure IoT Hub.
I try to use azure iot hub but it doesn't work.
I have this message from log :  Did you configure you broker IP address after using amqp connect.

I try also to use this tutorials to find a solution but I don't find device explorer twin.
https://community.infineon.com/t5/Knowledge-Base-Articles/MQTT-with-Microsoft-Azure/ta-p/246276
https://community.infineon.com/t5/Knowledge-Base-Articles/Posting-a-Message-to-Azure-IoT-Hub/ta-p/24...

I understand that wiced is not a good idea for new dev but I try to update a real product on the market so I have no choice....
Can you help me ?

0 Likes
5 Replies
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hello,

Could you provide info on which WLAN device, SDK version that you're using? Are you tring to update certificates on the WLAN device? Are you using some code example to do the same? If so, please let me know the CE that you're using.

Thanks

0 Likes
jeco
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello,
I am using SDK 6.6.1 with the azure_iot_hub demo to perform connection tests on an STM32F415.
I had a functional demo program on SDK 6.1 back then, but I attempted to transfer it to 6.6.1 without success.

I'm trying to update files on resources/apps/azure_iot_hub

For the WLAN version, where I can find this info. on the sdk ?

0 Likes
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

WLAN device is the onboard WiFi chip. Is it CYW4343W or CYW43455 etc?  What platform (HW board) in WICED are you using? 

Also, where is the following log observed "Did you configure you broker IP address after using amqp connect"? Does this get printed on the serial terminal from your STM HW board?

Thanks

0 Likes
jeco
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello,

I'm using my own platform (it's a copy of BCM943364WCD1)
I tested two version  

 

WLAN_CHIP := 43340
WLAN_CHIP_REVISION := B0
WLAN_CHIP_FAMILY := 4334x
HOST_MCU_FAMILY := STM32F4xx
HOST_MCU_VARIANT := STM32F415
HOST_MCU_PART_NUMBER := STM32F415RGT6
BT_CHIP := 43340
BT_CHIP_REVISION := B0
BT_MODE ?= HCI


WLAN_CHIP := 43341
WLAN_CHIP_REVISION := B0
WLAN_CHIP_FAMILY := 4334x
HOST_MCU_FAMILY := STM32F4xx
HOST_MCU_VARIANT := STM32F415
HOST_MCU_PART_NUMBER := STM32F415RGT6
BT_CHIP := 43341
BT_CHIP_REVISION := B0
BT_MODE ?= HCI



Log came from WICED log of AMQP

[AMQP] sending connection header ...<\r><\r><\n>
[ Maximum fragment length is 16384 ]<\r><\n>
[ Application Layer Protocol is (none) ]<\r><\n>
[AMQP LIB ] : Success in sending protocol header = [0]<\r><\r><\n>
[ AMQP LIB ERROR ] : Received protocol header size is not matching and size = 0<\r><\r><\n>
[ AMQP LIB ] : Parsing Amqp protocol header<\r><\r><\n>
[ AMQP LIB ]list of supported SASL server mechanisms :<\r><\r><\n>
<9>EXTERNAL<\r><\r><\n>
<9>MSSBCBS<\r><\r><\n>
<9>ANONYMOUS<\r><\r><\n>
<9>PLAIN<\r><\r><\n>
[AMQP LIB : ] Server is supporting Client SASL mechanism(SASL_METHOD_PLAIN)<\r><\r><\n>
[ AMQP LIB ] : Success in sending sasl init = [0]<\r><\r><\n>
[AMQP LIB : ] SASL outcome status failed error code : 2<\r><\r><\n>
ERROR (Did you configure you broker IP address?<\r><\n>
)<\r><\n>
<\r><\n>
[AMQP] Deinit connection...OK

0 Likes
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hello, 

Regarding device explorer twin, It could be renamed or removed by Azure. Could you please check out the below link and see if it helps?

https://learn.microsoft.com/en-us/azure/iot/howto-use-iot-explorer

Also, since the error is pointing to broker IP address, could you please double check if the AMQP_BROKER_IP_ADDRESS macro in CE is correctly assigned the Host name of your IoT Hub?

Thanks

0 Likes