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

OpenNeptune and display_connector not working #25

Open
dsrdakota opened this issue Nov 4, 2024 · 4 comments
Open

OpenNeptune and display_connector not working #25

dsrdakota opened this issue Nov 4, 2024 · 4 comments

Comments

@dsrdakota
Copy link

So far I have the latest version of everything installed.
OpenNeptune - latest
display_connector - latest (had modified a few files to get pillow working, ie. some python wheels and modules had to be updated)
display_firmware - latest (tried running display_connector service with stock/oem screen firmware and ON custom firmware)

I am running the latest versions of klipper, moonraker and fluidd. I have the Neptune 4 Pro.
Here is a sample log with custom firmware.

`2024-11-04 01:00:09,568 - INFO - Loading config
2024-11-04 01:00:10,650 - INFO - Connecting to Moonraker at /home/mks/printer_data/comms/moonraker.sock
2024-11-04 01:00:10,652 - INFO - Connected to Moonraker
2024-11-04 01:00:10,660 - INFO - Software Version: v0.12.0-317
2024-11-04 01:00:10,670 - DEBUG - Client Identified With Moonraker: 281473499544600
2024-11-04 01:00:10,730 - INFO - Display Type: OpenNeptune4DisplayCommunicator
2024-11-04 01:00:10,731 - INFO - Printer Model: Neptune 4 Pro
2024-11-04 01:00:10,751 - INFO - Status Update: standby
2024-11-04 01:00:10,957 - DEBUG - Navigating to main
2024-11-04 01:00:11,001 - INFO - Machine Size: 235x235x268

Exception in callback SerialTransport._read_ready()
handle: <Handle SerialTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/home/mks/display_connector/venv/lib/python3.7/site-packages/serial_asyncio/init.py", line 120, in _read_ready
self._protocol.data_received(data)
File "/home/mks/display_connector/src/tjc.py", line 56, in data_received
message, was_keyboard_input = self._extract_packet()
File "/home/mks/display_connector/src/tjc.py", line 74, in _extract_packet
return self._extract_fixed_length_packet(expected_length)
File "/home/mks/display_connector/src/tjc.py", line 105, in _extract_fixed_length_packet
self.dropped_buffer += message + self.EOL
TypeError: can only concatenate tuple (not "bytes") to tuple
2024-11-04 01:06:45,681 - ERROR - Failed to write to display: Variable name invalid for command: adjusttemp_pro.out_bedtemp.txt="21.8°C"
Task exception was never retrieved
future: <Task finished coro=<DisplayCommunicator.update_data() done, defined at /home/mks/display_connector/src/communicator.py:86> exception=CommandFailed('Variable name invalid for command: adjusttemp_pro.out_bedtemp.txt="21.8°C"')>
Traceback (most recent call last):
File "/home/mks/display_connector/src/communicator.py", line 94, in update_data
await self._update_data_recursive(new_data, data_mapping, current_data)
File "/home/mks/display_connector/src/communicator.py", line 106, in _update_data_recursive
await self._update_data_recursive(value, mapping_value, mapping_current)
File "/home/mks/display_connector/src/communicator.py", line 108, in _update_data_recursive
await self._update_data_leaf(value, mapping_value)
File "/home/mks/display_connector/src/communicator.py", line 119, in _update_data_leaf
await self.write(command)
File "/home/mks/display_connector/src/communicator.py", line 52, in write
await self.display.command(data, timeout if timeout is not None else self.timeout)
File "/home/mks/display_connector/venv/lib/python3.7/site-packages/nextion/client.py", line 331, in command
return await self._command(command, timeout=timeout, attempts=attempts)
File "/home/mks/display_connector/venv/lib/python3.7/site-packages/nextion/client.py", line 294, in _command
raise CommandFailed(command, response_code)
nextion.exceptions.CommandFailed: Variable name invalid for command: adjusttemp_pro.out_bedtemp.txt="21.8°C"
Exception in callback SerialTransport._read_ready()
handle: <Handle SerialTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/home/mks/display_connector/venv/lib/python3.7/site-packages/serial_asyncio/init.py", line 120, in _read_ready
self._protocol.data_received(data)
File "/home/mks/display_connector/src/tjc.py", line 56, in data_received
message, was_keyboard_input = self._extract_packet()
File "/home/mks/display_connector/src/tjc.py", line 74, in _extract_packet
return self._extract_fixed_length_packet(expected_length)
File "/home/mks/display_connector/src/tjc.py", line 105, in _extract_fixed_length_packet
self.dropped_buffer += message + self.EOL
TypeError: can only concatenate tuple (not "bytes") to tuple
Exception in callback SerialTransport._read_ready()
handle: <Handle SerialTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/home/mks/display_connector/venv/lib/python3.7/site-packages/serial_asyncio/init.py", line 120, in _read_ready
self._protocol.data_received(data)
File "/home/mks/display_connector/src/tjc.py", line 56, in data_received
message, was_keyboard_input = self._extract_packet()
File "/home/mks/display_connector/src/tjc.py", line 74, in _extract_packet
return self._extract_fixed_length_packet(expected_length)
File "/home/mks/display_connector/src/tjc.py", line 105, in _extract_fixed_length_packet
self.dropped_buffer += message + self.EOL
TypeError: can only concatenate tuple (not "bytes") to tuple
^CTraceback (most recent call last):
File "/home/mks/display_connector/display.py", line 1441, in
loop.run_forever()
File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
self._run_once()
File "/usr/lib/python3.7/asyncio/base_events.py", line 1739, in _run_once
event_list = self._selector.select(timeout)
File "/usr/lib/python3.7/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)`

@Damon20r
Copy link

I updated several......modules? and am now also having issues with my display not working. It shows a continuous loading Elegoo logo. I am NOT by any stretch of anybody's imagination a dev or programmer. I am getting moonraker warnings of an invalid path along with three unparsed warnings that I assume are related to the file it can't find.

image

Not sure where else to go to look for advice. Thanks in advance.

@jimmycr
Copy link

jimmycr commented Nov 19, 2024

Had the same problem after klipper / moonraker update today. This resolved my problem:

  • SSH into the printer
  • go to directory: /home/mks/display_connector
  • run script: ./display-service-installer.sh
  • enjoy ;-)

@Damon20r
Copy link

Thank you! I'll give that a try.

@Damon20r
Copy link

It worked like a charm. Thanks a million! I just need to stop updating it because every time I do it seems like something screws up. That's the reason why I am now using a P1S.

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

3 participants