Skip to content

Added support for Toledo scale reader MT SICS command set - #156

Open
onuh1 wants to merge 4 commits into
pywebdriver:masterfrom
DaysumOps:master
Open

Added support for Toledo scale reader MT SICS command set#156
onuh1 wants to merge 4 commits into
pywebdriver:masterfrom
DaysumOps:master

Conversation

@onuh1

@onuh1 onuh1 commented Jul 27, 2025

Copy link
Copy Markdown

We have written a protocol toledo_sics to allow sending read command "SI" to scale reader and correctly interpret the scale reader response S S weight unit

Victor and others added 2 commits July 27, 2025 18:53
Comment thread windows/Output/pywebdriver_win64_installer.exe Outdated
Comment thread windows/Output/toledo_sics_simulator.py Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the objective of this file ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file is a python simulator for Toledo scales that supports the MT-SICS
command set. For users who do not have the physical device, they can run
this to simulate it

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very interesting ! could you a little text in the file (or in the readme to explain that point, and how to use it ? thanks ! )

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use a virtual serial com port program like com0com or VSPD to generate two virtual COM port pair and use one in the pywebdriver config and the other in the program by running "python toledo_sics_simulator.py --port COM5" or use socat on linux then run the simulator.

Comment thread windows/requirements.txt
#jcconv
simplejson
Flask<2.3
Flask==2.2.5

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for that change ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@app.before_first_request

@app.before_first_request is deprecated in higher versions of flask. I used this particular file to generate the toledo_sics protocol and i had to use a version of flask that supports the decorator.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but Flask<2.3 does'nt work ?

@onuh1

onuh1 commented Jul 28, 2025 via email

Copy link
Copy Markdown
Author

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.

2 participants