{"push_id":1001813891,"size":2,"distinct_size":2,"ref":"refs/heads/8.0-pos-scale-serial-jov","head":"dc4a66d130512cf51fd8c4c983dacce010307526","before":"d0999230d33fee0f92b3fa4c824d7667c7a14363","commits":[{"sha":"3d550d7e35b6d71a3532a6948a3e4c7eda9ab530","author":{"email":"8c699a05c38304827cff61803bc9687ef59fcf8f@odoo.com","name":"Joren Van Onder"},"message":"[IMP] hw_scale: allow third party USB to serial interfaces\n\nWe support the Mettler Toledo scales which have their own built-in USB\nto serial interface. Due to continuing issues with that built-in\ninterface we will also support the scale configured in raw RS-232 mode\nwhich seems to be more reliable.\n\nThis means that in order to connect the scale you'll need a third party\nUSB to serial interface (unless you have built-in serial interfaces, but\nthe POSBox doesn't).\n\nThe main difficulty this poses is that using this approach we cannot use\nthe name of the interface to find the device. When using the built-in\ninterface of the scale the interface would identify with an ID\ncontaining 'mettler' and 'toledo'. When using a third party interface\nthe ID will instead contain information about the third party\ninterface. To fix this we use a probe-based approach, probing every\navailable serial interface until we find one that returns a response to\nour probe. This approach will work with both third party interfaces and\nthe built-in interface of the scale and it is nearly identical to the\none we use in hw_blackbox_be.","distinct":true,"url":"https://api.github.com/repos/odoo-dev/odoo/commits/3d550d7e35b6d71a3532a6948a3e4c7eda9ab530"},{"sha":"dc4a66d130512cf51fd8c4c983dacce010307526","author":{"email":"8c699a05c38304827cff61803bc9687ef59fcf8f@odoo.com","name":"Joren Van Onder"},"message":"[FIX] hw_blackbox_be, hw_scale: don't rely on serial ID to be unique\n\nAfter plugging in multiple identical serial to USB interfaces, only the\nlast one will be available under /dev/serial/by-id/ because they'll have\nidentical IDs. Instead use /dev/serial/by-path/ which does not have this\nissue.","distinct":true,"url":"https://api.github.com/repos/odoo-dev/odoo/commits/dc4a66d130512cf51fd8c4c983dacce010307526"}]}