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

MQTT connection problem #85

Closed
iprak opened this issue May 17, 2022 · 3 comments
Closed

MQTT connection problem #85

iprak opened this issue May 17, 2022 · 3 comments

Comments

@iprak
Copy link
Contributor

iprak commented May 17, 2022

I recently flashed a couple BK7231T WB2S devices (same devices) with the latest OpenBK7231T_UA_1.0.20.bin image. I had a hard time getting BKwriter to work but was able to make it work in the first attempt using hid_download_py.

The problem I am running into is with MQTT connection. I ahve noticed that if I leave user/password empty then MQTT is 0 in the log but if I enter something random e.g. user/password then connection succeeds. My MQTT server does not require authentication. Any suggestions for further debugging?

@openshwprojects
Copy link
Owner

This is something new, I have never tested it with MQTT server with no auth required.

Can you check how the send packets looks like in Wireshark?

The original MQTT library did not support auth, but I added a support for that:
openshwprojects/OpenBK7231N@172f101
that was required for both N and T platforms, but right now I can't see anything wrong in that code.

@alex3594
Copy link

FYI, I checked that with tcpdump and can confirm when no user and password set, device is not sending any packets to the MQTT.

@openshwprojects
Copy link
Owner

should be fixed
openshwprojects/OpenBK7231T@2c3af1f

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