Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
7 Відповіді
15369 Переглядів
I'm setting up a POS PC for a shop and we bought a digital weighing scale (GRAM ZFOC 30 RS).
It have RS232 usb interface and I can read the output through gtkterm and change the transfer protocol on the scale but I can't make it work with Odoo 10 POS. I don't know the values Odoo is listening and how to set them in the weigh scale (or if it is listening the wheighing scale at all).
Can you please guide me to the solution?
Аватар
Відмінити
Автор Найкраща відповідь

If someone arrives here finding a solution, I made it work by editing addons/hw_scale/controller/main.py and coding my own solution to communicate with the scale using pyserial.


EDIT:


You can get my addons/hw_scale/controller/main.py here:

https://drive.google.com/open?id=0Bw9UGY8yb0B0dWdPQ0NTOFJYNVQ4d19YamI1WTlyeUZMN1JR


You can see the main modification at custom_read_scale() and the scale definition above.


I just edited the code and restarted Odoo. I use Odoo 10. Set the weighing scale to pasive mode to make it work with my code. Maybe your scale have a diferent baudrate and it is located on the computer at a diferent place, mine is at /dev/ttyUSB0 (RS232 to USB interface).


Sorry for the delay and good luck,


Carlos

Edit 2: you must download the dev version not the posbox image.


You can use this code as you wish. Changing the values on the scale definition should make it work with any digital scale that works in passive mode.

Аватар
Відмінити

Hi, I'm trying to create a list of compatible scales. I would like to add your code, but there is no license. Could you clarify that ? thanks

Найкраща відповідь

Hi, Carlos.

Did you modify addons/hw_scale/controller/main.py file on Posbox img? I've modify  that file to adapt it to my scale but I can't write it on Posbox image.

Regards,

David Q

Аватар
Відмінити
Найкраща відповідь

Hi Carlos, I'm from Chile, I try to connect a DIGI ds-782 Scale, but the port it's COM1, I took your code and modified, but does not work. Can you help me? share emails and talk in spanish?.

Аватар
Відмінити
Найкраща відповідь

Hi Carlos,

I'm interested in configuring another weighing scale as well (Ohaus RV-4211) with protocol Sharp (Dialog 02/04). I'm a beginner in editing Odoo, could you please be a little more precise. Did you just edited the main.py and restarted Odoo? Did you have to recompile the module? or did you create a new module?

Thank you.


Аватар
Відмінити
Найкраща відповідь

Hola Carlos !!! tenemos una balanza GRAM S3-30RS y quería preguntarte si te sigue funcionando odoo en las versiones 11 o 12 con tu balanza Gram con los cambios del archivo main.py ?

Muchas Gracias de antemano, compañero !!

Saludos

Аватар
Відмінити
Найкраща відповідь

Can you share the details? because I'm trying to connect my digital scale (PS 60 Mettler-Toledo) by USB port

Аватар
Відмінити
Найкраща відповідь

Hi Carlos,

Would you mind sharing what solution you worked out using PySerial? I am stuck with the same issue, but with ODOO v8.

Regards,

Jayant.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
черв. 17
4339
Picking station Weight Вирішено
1
вер. 24
1333
1
черв. 24
1027
3
квіт. 18
7597
2
лип. 25
4776