psmsmets / samsung_mdc

Python3 implementation of the Samsung Multiple Display Control Protocol via TCP/IP based on the Smart Signage User Manual (Common Use)
GNU General Public License v3.0
6 stars 1 forks source link

Get control command yields socket timeout #1

Open psmsmets opened 3 years ago

psmsmets commented 3 years ago

Have a look at socket.recv() implementation.

ChuckMash commented 3 years ago

Hi @psmsmets I don't think it's an issue in the recv implementation, if you set a specific ID instead of defaulting to 254, then the socket will get the return data it expects.

From the MDC protocol specifications: "- If you want to control every mechanism connected with Serial Cable regardless of its ID, set ID part to "0xFE" and send commands. At the time, each SET will follow commands but it will not respond with ACK."

The lack of response will cause the socket to timeout.