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

finish simulation mode for atlas temp sensor #192

Open
jakerye opened this issue Nov 27, 2018 · 0 comments
Open

finish simulation mode for atlas temp sensor #192

jakerye opened this issue Nov 27, 2018 · 0 comments
Labels
ARCHIVE These are out of date. enhancement New feature or request

Comments

@jakerye
Copy link
Contributor

jakerye commented Nov 27, 2018

see traceback for write bytes, get response bytes by using run script on real hardware:

Traceback (most recent call last):
  File "/home/jake/projects/openag-device-software/device/peripherals/classes/atlas/driver.py", line 100, in process_command
    self.i2c.write(bytes(byte_array), retry=retry)
  File "/home/jake/projects/openag-device-software/device/utilities/functiontools.py", line 75, in f_retry
    return f(*args, **kwargs)
  File "/home/jake/projects/openag-device-software/device/utilities/communication/i2c/main.py", line 108, in write
    self.io.write(self.address, bytes_)
  File "/home/jake/projects/openag-device-software/device/utilities/communication/i2c/peripheral_simulator.py", line 135, in write
    raise WriteError("Unknown write bytes: {}".format(byte_str(bytes_)))
device.utilities.communication.i2c.exceptions.WriteError: Unknown write bytes: [0x53, 0x2C, 0x63, 0x00]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jake/projects/openag-device-software/device/peripherals/modules/atlas_temp/driver.py", line 117, in set_temperature_scale_celcius
    self.process_command("S,c", process_seconds=0.3, retry=retry)
  File "/home/jake/projects/openag-device-software/device/peripherals/classes/atlas/driver.py", line 110, in process_command
    raise exceptions.ProcessCommandError(logger=self.logger) from e
device.peripherals.classes.atlas.exceptions.ProcessCommandError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jake/projects/openag-device-software/device/peripherals/modules/atlas_temp/driver.py", line 66, in setup
    self.set_temperature_scale_celcius(retry=retry)
  File "/home/jake/projects/openag-device-software/device/peripherals/modules/atlas_temp/driver.py", line 119, in set_temperature_scale_celcius
    raise exceptions.SetTemperatureScaleCelciusError(logger=self.logger) from e
device.peripherals.modules.atlas_temp.exceptions.SetTemperatureScaleCelciusError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jake/projects/openag-device-software/device/peripherals/modules/atlas_temp/manager.py", line 76, in setup_peripheral
    self.driver.setup()
  File "/home/jake/projects/openag-device-software/device/peripherals/modules/atlas_temp/driver.py", line 69, in setup
    raise exceptions.SetupError(logger=self.logger) from e
@jakerye jakerye added the enhancement New feature or request label Jan 30, 2019
@jakerye jakerye added this to the Infrastructure milestone Jan 30, 2019
@srmoore srmoore added the ARCHIVE These are out of date. label Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARCHIVE These are out of date. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants