Skip to content

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

@PatrickBaus

Description

@PatrickBaus

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions