uArm python buzzer not changing frequency like uArmStudio

Firmware Version: 4.3.2

Operation System: Win 10

uArm Controlling Method: Python
{‘device_type’: ‘SwiftPro’, ‘hardware_version’: ‘3.3.1’, ‘firmware_version’: ‘4.3.2’, ‘api_version’: ‘4.0.3’, ‘device_unique’: ‘’}

catchCount = 0

while catchCount < 8:
    if swift.get_limit_switch():
        catchCount += 1
        curFrequency = 20000/catchCount
        print(curFrequency)
        swift.set_buzzer(frequency=int(curFrequency), duration=0.2, wait=True)
        time.sleep(0.8)
    else:
        catchCount = 0

The buzzer emits a constant noise regardless of the frequency sent to the robot.
output of the print is as expected:

20000.0
10000.0
6666.666666666667
20000.0
10000.0
6666.666666666667
5000.0
4000.0
3333.3333333333335
2857.1428571428573
2500.0

However I know the buzzer is capable of more based on my playing in uArm Studio blocks

Hello? Is the frequency function not supported?

I’m have my doubts about the validity of the provided documentation.

Hi, the frequency you set is too high, please set a lower frequency.

I have experimented with the GCODE version of this software. The number you label as Hz is incorrect. The lower number I put the higher the frequency. Did you perhaps mean period in milliseconds?

Hi, thanks for your feedback, it caused by the firmware 4.x, we will fix that on the next version of firmware 4.x. The buzzer of the firmware 3.2.0 is OK, you may could use the firmware 3.2.0 for the moment. Thnaks

You may also want to update your SDK documentation. The Gcode input isn’t in the unit Hz (1/seconds) because as I increase my input value the sound gets lower, which makes me think the input unit is the period of the sound wave.

We did test on the firmware 3.2.0 with the SDK and the frequency is OK.