Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP Connection crashes if the sensor does not reply during connect #1

Open
PatrickBaus opened this issue Jan 22, 2021 · 0 comments
Open

Comments

@PatrickBaus
Copy link
Owner

sensor_daemon | Exception in thread Callback-Processor:
sensor_daemon | Traceback (most recent call last):
sensor_daemon | File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
sensor_daemon | self.run()
sensor_daemon | File "/usr/lib/python3.8/threading.py", line 870, in run
sensor_daemon | self._target(*self._args, **self._kwargs)
sensor_daemon | File "/sensorDaemon/sensors/tinkerforge/ip_connection.py", line 1134, in callback_loop
sensor_daemon | self.dispatch_packet(data)
sensor_daemon | File "/sensorDaemon/sensors/tinkerforge/ip_connection.py", line 1046, in dispatch_packet
sensor_daemon | cb(uid, connected_uid, position, hardware_version,
sensor_daemon | File "/sensorDaemon/sensors/sensorHost.py", line 216, in enumerate_callback
sensor_daemon | self.__connect_sensor(PTCSensorV2, uid, connected_uid, position, self.host_name, enumeration_type)
sensor_daemon | File "/sensorDaemon/sensors/sensorHost.py", line 130, in __connect_sensor
sensor_daemon | self.append_sensor(sensor_class(uid, self, self.sensor_callback, callback_period))
sensor_daemon | File "/sensorDaemon/sensors/ptc_v2.py", line 97, in init
sensor_daemon | self.set_callback()
sensor_daemon | File "/sensorDaemon/sensors/ptc_v2.py", line 75, in set_callback
sensor_daemon | self.bricklet.set_temperature_callback_configuration(period=self.callback_period, value_has_to_change=True, option="x", min=0, max=0)
sensor_daemon | File "/sensorDaemon/sensors/tinkerforge/bricklet_ptc_v2.py", line 184, in set_temperature_callback_configuration
sensor_daemon | self.ipcon.send_request(self, BrickletPTCV2.FUNCTION_SET_TEMPERATURE_CALLBACK_CONFIGURATION, (period, value_has_to_change, option, min, max), 'I ! c i i', '')
sensor_daemon | File "/sensorDaemon/sensors/tinkerforge/ip_connection.py", line 1220, in send_request
sensor_daemon | raise Error(Error.TIMEOUT, msg, suppress_context=True)
sensor_daemon | sensors.tinkerforge.ip_connection.Error: Did not receive response for function 2 in time (-1)

@PatrickBaus PatrickBaus reopened this Jan 22, 2021
@PatrickBaus PatrickBaus changed the title IP Connection crashed if the sensor does not reply during connect IP Connection crashes if the sensor does not reply during connect Jun 14, 2021
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

No branches or pull requests

1 participant