zweckj / pyacaia_async

Async implementation of pyacaia
GNU General Public License v3.0
1 stars 0 forks source link

Acaia Pearl Scale not working #2

Open marcuscozza opened 2 weeks ago

marcuscozza commented 2 weeks ago

Hi,

I have an Acaia Pearl Scale SN: AP0011401458 (PROCHBT001 00:1C:97:11:C4:0D) and i am trying to use this code to connect to my scale and tare it.

I am currently using windows 10 and trying to run the test.py code (After changing the mac address) initally when i run it, it comes up with an error saying that bleak.exc.BleakCharacteristicNotFoundError: Characteristic 49535343-8841-43f4-a8d4-ecbe34729bb3 was not found! So then i change it to the older style mentioned in the const.py file so it is 00002a80-0000-1000-8000-00805f9b34fb and it works with the following output but doesn't actual effect the scale in any way.

connected Writing id... Writing tare... Writing bytearray(b'\xef\xdd\x04\x00\x00\x00')... Writing startTimer... Writing bytearray(b'\xef\xdd\r\x00\x00\x00\x00')... Writing stopTimer... Writing bytearray(b'\xef\xdd\r\x00\x02\x00\x02')... Writing resetTimer... Writing bytearray(b'\xef\xdd\r\x00\x01\x00\x01')...

Just wondering what I can change to make it work and if you would have any idea what the issue is?

Thanks

zweckj commented 2 weeks ago

I don't own a Pearl, so I have no idea unfortunately... You could try the original pyacaia library this is based on, to see if it make a difference.

marcuscozza commented 2 weeks ago

Thats the thing I have been trying to get the pyacaia to work too but it doesn't and i tried this as you can use bleak on windows while pyacaia uses bluepy which is linux only. Which I did try on linux but get the same results of it not working. Just not sure if this scale is just too old and has a different encoding / decoding. Not sure what else you could recommand to try.