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

multiple transmission of a mqtt message with only one sent #49

Closed
alexmaron81 opened this issue May 16, 2022 · 10 comments
Closed

multiple transmission of a mqtt message with only one sent #49

alexmaron81 opened this issue May 16, 2022 · 10 comments
Assignees

Comments

@alexmaron81
Copy link

I have the problem that when I publish a message, four always arrive?
the next time i send, there are already 8 in the queue
Rabbitmq broker (MQTT)

@RobMeades RobMeades self-assigned this May 16, 2022
@RobMeades
Copy link
Contributor

Hi Alex - what are you setting the QoS to? If you want to guarantee that only one will arrive you should use U_MQTT_QOS_EXACTLY_ONCE.

@alexmaron81
Copy link
Author

image

@RobMeades
Copy link
Contributor

That would seem correct: could you possibly paste into here an AT log of the exact sequence, which I could use to show your problem to our application engineering guys?

@alexmaron81
Copy link
Author

image

@RobMeades
Copy link
Contributor

Great, thanks, let me see what they say...

@RobMeades
Copy link
Contributor

Right, have had a discussion with AE, the AT sequence is fine so we need visibility from another angle. A few options:

  1. Are you able to get at the USB port of the module? Specifically, would it be possible to attach a Windows PC to that USB port only after powering the module up? If so, you could obtain a log from it (I will tell you how). It needs to only be connected after powering the module up as, if the module detects something plugged into the USB port at boot it will switch to only accepting AT commands over the USB port and NOT over the UART port, which would prevent your MCU talking to it.
  2. Are you able to take a log (e.g. Wireshark, or just an MQTT message log) on the broker side at all?
  3. Would you be willing to share log-in details for the broker with us, in which case we could reproduce the problem here?

@alexmaron81
Copy link
Author

I would like to try the first variant.
I just have to figure out how to connect the USB port. Is it a problem if the VCC pin gets the V_SYS voltage and then the RSVD/VUSB_DET is powered by the USB? The circuit board was developed for us, so I don't have much of a clue.
image

@RobMeades
Copy link
Contributor

The critical moment is when PWR_ON is briefly pulled low to effect the power on process. At that point the module boots and checks if the USB is connected (I guess it probably just checks whether 5V is present on the VUSB _DET line).

The ubxlib code will be toggling PWR_ON at your command (either when you call uNetworkAdd() or maybe you are calling uCellPwrOn() directly, I can't recall now). When it does this the USB must NOT be connected. Once it has done that, you can plug in the USB to obtain logs. I will need to get you the stuff for doing that actual log capturing on the Windows PC side of course.

@RobMeades
Copy link
Contributor

Could you possibly send me a direct message so that we can continue there?

@RobMeades
Copy link
Contributor

This was moved to direct comms, closing - please re-open if there are still concerns.

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

2 participants