Skip to content

Conversation

Copy link

Copilot AI commented Oct 13, 2025

Problem

Users reported that AMS Lite position 2 (A2) shows a persistent spinning RFID reading icon, even when no reading operation is active or when using external spools. Investigation revealed this affects AMS units with ID >= 128 (including N3S and some AMS Lite configurations).

Root Cause

The bit checking logic in StatusPanel.cpp was using a single bit position for all trays within an AMS unit when ams_id >= 128:

int check_flag = (1 << (16 + ams_id_int - 128));

This formula meant:

  • Bit 16 controlled ALL 4 trays in AMS ID 128
  • Bit 17 controlled ALL 4 trays in AMS ID 129
  • etc.

When the firmware indicated any tray in an AMS unit was being read, all 4 trays would show the spinning animation simultaneously, rather than just the specific tray being read.

Solution

Updated the bit calculation to check individual tray reading bits, consistent with the pattern used for regular AMS units (ID < 128):

int check_flag = (1 << (16 + (ams_id_int - 128) * 4 + tray_id_int));

This formula now assigns unique bit positions:

  • Bits 16-19 for trays 0-3 in AMS ID 128
  • Bits 20-23 for trays 0-3 in AMS ID 129
  • etc.

Impact

  • ✅ Only the specific tray being read will show the spinning icon
  • ✅ Other trays in the same AMS unit will remain static
  • ✅ Consistent behavior between regular AMS (ID < 128) and extended AMS units (ID >= 128)

Testing Notes

This fix assumes the firmware provides individual tray reading bits at the calculated positions. Hardware testing with A1 printer + AMS Lite is recommended to verify the fix resolves the reported issue.

Fixes #4575 (if issue number exists)

Original prompt

This section details on the original issue you should resolve

<issue_title>AMS Spinning Icon</issue_title>
<issue_description>### Bambu Studio Version

2.2.56

Where is the application from?

Bambu Lab Official website

OS version

Mac 26.0.1 (25A362)

Additional system information

N/A

Printer

A1

How to reproduce

  1. Open App
  2. go to Device info
  3. Look at ams lite position 2
  4. Review video link below to see A2 is spinning. This has been doing this for at least a month now, regardless of what spool is action in use or even when the external spool is in use.
Bambu-AMS-Lite-UI.mov

Actual results

See video

Bambu-AMS-Lite-UI.mov

Expected results

Not sure what's expected. Really a question for Bambu.

Project file & Debug log uploads

N/A not
Not project specific. Happens on EVERY project.

Checklist of files to include

  • Log file
  • Project file</issue_description>

Comments on the Issue (you are @copilot in this section)

@qusheng-bambu > ahh. interesting. Seems like a strange thing to highlight via the UI. I don't understand what that's supposed to be telling me. A spinning icon usually means in use when we consider the context of the AMS啊。有趣。通过 UI 突出显示似乎是一件奇怪的事情。我不明白这应该告诉我什么。当我们考虑 AMS 的上下文时,旋转图标通常表示正在使用

Hello, I haven't reproduced your issue locally. Could you please upload the Studio log so that we can troubleshoot it? Thank you very much for your help. Or you can also try restarting the machine and then reconnecting AMSlite, as this might be the result of the machine's push.
https://wiki.bambulab.com/en/x1/troubleshooting/bambu-studio-log</comment_new>

Fixes #8363


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Changed the bit calculation for AMS Lite (ID >= 128) to include individual tray IDs.
Previously used: 16 + ams_id_int - 128 (one bit per AMS unit)
Now uses: 16 + (ams_id_int - 128) * 4 + tray_id_int (one bit per tray)

This ensures each tray in an AMS Lite unit has its own reading status bit,
preventing all trays from showing the spinning icon when only one is being read.

Co-authored-by: XinZhangBambu <[email protected]>
Copilot AI changed the title [WIP] Fix AMS spinning icon issue in device info Fix AMS spinning icon showing on all trays for AMS units with ID >= 128 Oct 13, 2025
Copilot AI requested a review from XinZhangBambu October 13, 2025 11:51
Copilot finished work on behalf of XinZhangBambu October 13, 2025 11:51
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

Successfully merging this pull request may close these issues.

AMS Spinning Icon Print Cancels for No Reason

2 participants