Sharp Aquos TV Driver

You da man.......things are looking good, not sure what the one error is in the log, maybe I'm hitting the volume button too fast.

Summary

dev:7752019-12-08 01:51:43.637 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:51:43.528 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 01:51:43.519 am debugSharpAquos parse - response '340D4F4B0D4F4B0D'

dev:7752019-12-08 01:51:43.450 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 01:51:43.432 am debugSharpAquos parse - response '340D'

dev:7752019-12-08 01:51:43.408 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:43.387 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:43.379 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:51:43.363 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:51:43.329 am errorjava.lang.NumberFormatException: For input string: "OK" on line 164 (parse)

dev:7752019-12-08 01:51:43.275 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:43.234 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:43.190 am debugSharpAquos parseVolume - response 'OK'

dev:7752019-12-08 01:51:43.182 am debugSharpAquos parse - command response '[OK, OK]' - handler [parseVolume]

dev:7752019-12-08 01:51:43.170 am debugSharpAquos parse - response '4F4B0D4F4B0D'

dev:7752019-12-08 01:51:43.014 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 01:51:43.010 am debugSharpAquos parse - response '320D'

dev:7752019-12-08 01:51:43.006 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:42.992 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:51:42.972 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:42.960 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:51:42.935 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:42.897 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 01:51:42.883 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 01:51:42.674 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:42.660 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:51:40.746 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 01:51:40.742 am debugSharpAquos parse - response '310D'

dev:7752019-12-08 01:51:40.638 am debugSharpAquos parse - command response '[OK]' - handler [parsePower]

dev:7752019-12-08 01:51:40.630 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 01:51:40.588 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:40.331 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 01:51:40.274 am debugSharpAquos - volumeUp()

dev:7752019-12-08 01:50:15.528 am debugSharpAquos parse - command response '[OK]' - handler [parsePower]

dev:7752019-12-08 01:50:15.520 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 01:50:15.315 am debugSharpAquos - rawSocket request = [POWR0 ] to 192.168.254.205:10002

dev:7752019-12-08 01:50:15.306 am debugSharpAquos - Turn off TV

dev:7752019-12-08 01:50:12.974 am debugSharpAquos parse - command response '[OK]' - handler [parsePower]

dev:7752019-12-08 01:50:12.963 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 01:50:12.747 am debugSharpAquos - rawSocket request = [POWR1 ] to 192.168.254.205:10002

dev:7752019-12-08 01:50:12.738 am debugSharpAquos - Turn on TV

dev:7752019-12-08 01:49:45.758 am debugSharpAquos parse - command response '[OK]' - handler [parsePower]

dev:7752019-12-08 01:49:45.754 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 01:49:45.749 am debugSharpAquos - rawSocket request = [POWR0 ] to 192.168.254.205:10002

dev:7752019-12-08 01:49:45.732 am debugSharpAquos - Turn off TV

Error log this morning......hit initialize and I could control volume again.

Summary

dev:7752019-12-08 06:59:23.138 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:59:23.134 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:59:23.031 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 06:59:23.018 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:59:23.007 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:59:22.761 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:59:22.751 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:58:41.716 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_SharpAquos_Sharp_Aquos_TV_612.getStatus() is applicable for argument types: () values: [] Possible solutions: getState(), getClass(), socketStatus(java.lang.String), getAt(java.lang.String) (getStatus)

dev:7752019-12-08 06:57:24.621 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:24.616 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:57:24.503 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:24.303 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 06:57:24.287 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:57:24.244 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:24.226 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:57:24.143 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:24.138 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:57:24.083 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:24.009 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 06:57:23.992 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:57:23.855 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:23.850 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:57:23.822 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:23.812 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:57:23.786 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 06:57:23.763 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:57:23.753 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:23.542 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:23.538 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:57:23.498 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:23.485 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:57:23.172 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:23.078 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 06:57:23.064 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:57:22.915 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:22.905 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:57:22.491 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:22.487 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:57:22.375 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:22.353 am debugSharpAquos parse - command response '[OK]' - handler [parseInput]

dev:7752019-12-08 06:57:22.338 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:57:22.118 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:22.108 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:57:05.820 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:05.816 am debugSharpAquos parse - response '310D'

dev:7752019-12-08 06:57:05.742 am debugSharpAquos - rawSocket request = [IAVD? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:05.665 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:05.661 am debugSharpAquos parse - response '32350D'

dev:7752019-12-08 06:57:05.486 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:05.397 am debugSharpAquos parse - command response 'ERR'

dev:7752019-12-08 06:57:05.393 am debugSharpAquos parse - response '310D320D'

dev:7752019-12-08 06:57:05.229 am debugSharpAquos - rawSocket request = [MUTE? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:05.135 am debugSharpAquos parse - command response '[OK]' - handler [parseVolume]

dev:7752019-12-08 06:57:05.106 am debugSharpAquos parse - response '4F4B0D'

dev:7752019-12-08 06:57:04.968 am debugSharpAquos - rawSocket request = [POWR? ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:04.963 am debugSharpAquos - getState()

dev:7752019-12-08 06:57:04.836 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_SharpAquos_Sharp_Aquos_TV_612.getStatus() is applicable for argument types: () values: [] Possible solutions: getState(), getClass(), socketStatus(java.lang.String), getAt(java.lang.String) (getStatus)

dev:7752019-12-08 06:57:04.695 am debugSharpAquos - rawSocket request = [RSPW2 ] to 192.168.254.205:10002

dev:7752019-12-08 06:57:04.682 am debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:7752019-12-08 06:57:03.406 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 06:57:03.026 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 06:57:02.674 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 06:57:02.658 am debugSharpAquos - initialize - Driver v0.10

dev:7752019-12-08 06:56:56.497 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 06:56:56.446 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:56:56.220 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 06:56:56.178 am debugSharpAquos - rawSocket request = [RCKY32 ] to 192.168.254.205:10002

dev:7752019-12-08 06:56:56.163 am debugSharpAquos - volumeDown()

dev:7752019-12-08 06:56:53.923 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 06:56:53.845 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 06:56:53.656 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 06:56:53.537 am debugSharpAquos - rawSocket request = [RCKY33 ] to 192.168.254.205:10002

dev:7752019-12-08 06:56:53.517 am debugSharpAquos - volumeUp()

dev:7752019-12-08 06:52:03.855 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_SharpAquos_Sharp_Aquos_TV_612.getStatus() is applicable for argument types: () values: [] Possible solutions: getState(), getClass(), socketStatus(java.lang.String), getAt(java.lang.String) (getStatus)

dev:7752019-12-08 06:47:03.748 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_SharpAquos_Sharp_Aquos_TV_612.getStatus() is applicable for argument types: () values: [] Possible solutions: getState(), getClass(), socketStatus(java.lang.String), getAt(java.lang.String) (getStatus)

dev:7752019-12-08 06:42:03.741 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_SharpAquos_Sharp_Aquos_TV_612.getStatus() is applicable for argument types: () values: [] Possible solutions: getState(), getClass(), socketStatus(java.lang.String), getAt(java.lang.String) (getStatus)

This version should take care of the MissingMethodException error.

The NumberFormatException is due to commands being sent to the TV too quickly. The new command is being sent (from a new thread) before the previous response is received from the TV... I'm looking into a queuing method...

[Old version removed]

When I hit initialize, it seems to go on and on in kinda like a loop.

Summary

dev:7752019-12-08 08:07:28.906 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.867 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.804 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.783 am debugSharpAquos - rawSocket request = [IAVD? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:28.779 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.728 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: Connections could not be acquired from the underlying database! on line 93 (socketStatus)

dev:7752019-12-08 08:07:28.678 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.604 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:28.570 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.448 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.324 am debugSharpAquos - rawSocket request = [IAVD? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:28.319 am errororg.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 100 (socketStatus)

dev:7752019-12-08 08:07:28.254 am errorjava.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. (socketStatus)

dev:7752019-12-08 08:07:28.205 am errorjava.sql.SQLException: Connections could not be acquired from the underlying database! (socketStatus)

dev:7752019-12-08 08:07:28.162 am debugSharpAquos - rawSocket request = [MUTE? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:28.136 am errorjava.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 80 (socketStatus)

dev:7752019-12-08 08:07:28.032 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:28.026 am errorjava.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down. on line 70 (socketStatus)

dev:7752019-12-08 08:07:28.003 am debugSharpAquos - Initialize error. TV IP Address not set

dev:7752019-12-08 08:07:27.988 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:27.985 am debugSharpAquos - socketStatus - UNHANDLED socket status [send error: Socket closed]

dev:7752019-12-08 08:07:27.961 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:27.929 am debugSharpAquos - rawSocket request = [POWR? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.910 am debugSharpAquos - socketStatus - received [send error: Socket closed]

dev:7752019-12-08 08:07:27.873 am debugSharpAquos - getDeviceState()

dev:7752019-12-08 08:07:27.769 am debugSharpAquos - rawSocket request = [MUTE? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.753 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:27.742 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:27.737 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:27.710 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:27.696 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:27.692 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 08:07:27.617 am debugSharpAquos - rawSocket request = [RSPW2 ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.613 am debugSharpAquos - Initialize error. TV IP Address not set

dev:7752019-12-08 08:07:27.609 am debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:7752019-12-08 08:07:27.603 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:27.600 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 08:07:27.586 am debugSharpAquos - rawSocket request = [IAVD? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.550 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:27.511 am debugSharpAquos - rawSocket request = [POWR? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.505 am debugSharpAquos - getDeviceState()

dev:7752019-12-08 08:07:27.424 am debugSharpAquos - rawSocket request = [IAVD? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.399 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:27.391 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:27.384 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:27.315 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.261 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:27.248 am debugSharpAquos - rawSocket request = [RSPW2 ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.243 am debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:7752019-12-08 08:07:27.218 am debugSharpAquos - socketStatus - UNHANDLED socket status [send error: Socket closed]

dev:7752019-12-08 08:07:27.213 am debugSharpAquos - socketStatus - received [send error: Socket closed]

dev:7752019-12-08 08:07:27.170 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:27.164 am debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.120 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:27.111 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:27.107 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:27.062 am debugSharpAquos - rawSocket request = [MUTE? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:27.057 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:26.998 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:26.992 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:26.975 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:26.971 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 08:07:26.967 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:26.962 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:26.945 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:26.911 am debugSharpAquos - rawSocket request = [MUTE? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:26.907 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:26.797 am debugSharpAquos - rawSocket request = [POWR? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:26.791 am debugSharpAquos - getDeviceState()

dev:7752019-12-08 08:07:26.718 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:26.707 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:26.700 am debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:7752019-12-08 08:07:26.673 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:26.649 am debugSharpAquos - rawSocket request = [POWR? ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:26.642 am debugSharpAquos - getDeviceState()

dev:7752019-12-08 08:07:26.633 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:26.616 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:26.612 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:26.535 am debugSharpAquos - rawSocket request = [RSPW2 ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:26.529 am debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:7752019-12-08 08:07:26.391 am debugSharpAquos - rawSocket request = [RSPW2 ] to 192.168.254.205:10002

dev:7752019-12-08 08:07:26.383 am debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:7752019-12-08 08:07:26.132 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:26.122 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:26.118 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:26.109 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:26.023 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:26.013 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:25.992 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:25.987 am debugSharpAquos - socketStatus - UNHANDLED socket status [send error: Socket closed]

dev:7752019-12-08 08:07:25.984 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:25.980 am debugSharpAquos - socketStatus - received [send error: Socket closed]

dev:7752019-12-08 08:07:25.976 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:25.963 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:25.955 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:25.951 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:25.914 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:25.664 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:7752019-12-08 08:07:25.627 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:25.620 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:25.616 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:25.591 am debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:7752019-12-08 08:07:25.581 am debugSharpAquos - initialize - Driver v0.11

dev:7752019-12-08 08:07:25.577 am debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:7752019-12-08 08:07:25.463 am debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

and a lot lot more......

opps that pretty much locked up the hub, made it almost unresponsive, the above log just kept going continuously, had to reboot the hub to get it to quit.

It looks like that loop was caused by updating the code while the socket was closed and throwing exceptions...

For the time being, i've reversed the auto reconnect and started a state machine for the socket.

[Old version removed]

This version should be virtually feature complete...

I have solved all of the issues caused by thread concurrency, and have implemented all of the documented functions of the interface...

[Old version removed]

1 Like

I will give it a try.....thank you so much!!! You are great!!!

Excited to try this today!

Seem to take forever to save the virtual device with the drive, in fact it just spins and I don't think it saves. I hit initialize and this is what I see.

Summary

dev:8042019-12-08 09:27:13.456 pm debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:8042019-12-08 09:27:13.327 pm debugsharpAquos openSocket: Socket opened.

dev:8042019-12-08 09:27:12.259 pm debugSharpAquos - initialize - Set DNI = [9CC7D1ED5F5F]

dev:8042019-12-08 09:27:10.954 pm debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:8042019-12-08 09:27:09.560 pm errororg.h2.jdbc.JdbcSQLException: IO Exception: "nio:/data/hub/hubitatdb.mv.db"; SQL statement: UPDATE DEVICE D SET D.STATE = ? WHERE D.ID = ? [90028-197] (socketStatus)

dev:8042019-12-08 09:27:09.557 pm errororg.h2.jdbc.JdbcSQLException: IO Exception: "nio:/data/hub/hubitatdb.mv.db"; SQL statement: UPDATE DEVICE D SET D.STATE = ? WHERE D.ID = ? [90028-197] (socketStatus)

dev:8042019-12-08 09:27:09.507 pm debugSharpAquos - socketStatus - received [receive error: Stream closed.]

dev:8042019-12-08 09:27:09.469 pm debugSharpAquos - socketStatus - received [send error: Socket closed]

dev:8042019-12-08 09:27:09.448 pm debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:8042019-12-08 09:27:09.421 pm debugSharpAquos - initialize - Driver v0.15

Seems to have locked up my hub again, gave me error clicking on almost everything....so I had to reboot.

After the reboot, recreated the virtual device saved it the the drive and it saved. It won't do anything now, here are the logs.

Summary

dev:8332019-12-08 10:39:05.648 pm debugSharpAquos - initialize - Driver v0.15

dev:8332019-12-08 10:39:00.523 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 5 seconds.

dev:8332019-12-08 10:39:00.511 pm debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:8332019-12-08 10:38:58.986 pm debugSharpAquos - initialize - Driver v0.15

dev:8332019-12-08 10:38:53.949 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 5 seconds.

dev:8332019-12-08 10:38:53.924 pm debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:8332019-12-08 10:38:52.383 pm debugSharpAquos - initialize - Driver v0.15

dev:8332019-12-08 10:38:52.380 pm debugSharpAquos - updated - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null

Just repeats this over and over...

This is a fix for the "TV mac address not yet available" issue. If the MAC address is not available, it will use the TV IP address.

[Old version removed]

Oops... A bug slipped into the last version... This version should solve it.

[Old version removed]

Looking good so far.....

Yikes, seems to still lock up my hub, giving me and error when I click on anything, will try again later.

What error????

Sorry, when I click on anything on the Hubitat menu, Dashboards, Deviced, Apps, it would spin for a long time then give me an error screen. I got into setting and rebooted. After the reboot this is what ran automatically in the logs.

dev:8352019-12-09 04:57:52.625 pm debugSharpAquos - getDeviceState()

dev:8352019-12-09 04:51:57.866 pm debugSharpAquos - getDeviceState()

dev:8352019-12-09 04:46:57.374 pm debugSharpAquos - socketStatus - received [send error: Broken pipe (Write failed)]

dev:8352019-12-09 04:46:57.349 pm debugSharpAquos - rawSocket request = [MUTE? ] to 192.168.254.205:10002

dev:8352019-12-09 04:46:57.077 pm debugSharpAquos - rawSocket request = [POWR? ] to 192.168.254.205:10002

dev:8352019-12-09 04:46:57.066 pm debugSharpAquos - getDeviceState()

I hit initialize and get this.

Summary

dev:8352019-12-09 05:03:40.631 pm debugSharpAquos - initialize - Poll Rate set to every 5 minutes

dev:8352019-12-09 05:03:40.468 pm debugsharpAquos openSocket: Socket opened.

dev:8352019-12-09 05:03:39.346 pm debugSharpAquos - initialize - Set DNI = [C0A8FECD]

dev:8352019-12-09 05:03:38.258 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 1 second.

dev:8352019-12-09 05:03:37.256 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 1 second.

dev:8352019-12-09 05:03:36.258 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 1 second.

dev:8352019-12-09 05:03:35.242 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 1 second.

dev:8352019-12-09 05:03:34.229 pm debugSharpAquos - initialize - TV mac address not yet available. Retry in 1 second.

dev:8352019-12-09 05:03:34.224 pm debugSharpAquos - initialize - IP: 192.168.254.205 PORT: 10002 USER: null PASS: null Poll Rate: 5

dev:8352019-12-09 05:03:32.843 pm errorjava.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException (socketStatus)

dev:8352019-12-09 05:03:32.700 pm debugSharpAquos - rawSocket request = [VOLM? ] to 192.168.254.205:10002

dev:8352019-12-09 05:03:32.500 pm debugSharpAquos - initialize - Driver v0.17

I hit volume up 3 times and see this in the logs but nothing happens on the tv.

dev:8352019-12-09 05:04:54.261 pm debugSharpAquos - volumeUp()

dev:8352019-12-09 05:04:53.854 pm debugSharpAquos - volumeUp()

dev:8352019-12-09 05:04:50.837 pm debugSharpAquos - volumeUp()