You are not logged in.

#151 2018-11-23 19:40:52

lumacäke
Member
Registered: 2018-11-23
Posts: 5

Re: Touch screen for NanoDLP

rob wrote:
rob wrote:

I'm stuck with the same problem on a RPi2B and a Nextion Basic 3.5". I'm running v2. I think I tried all solution I saw online, but I can't find the issue.

I initially thought it was a permission/serial port issue, but after some checking I just realized  it's should not.

I did find the problem. I just did not realized you need to change the url in config.json when using non-standard web interface port.  roll

{
  "url":"http://localhost",
  ....

to

{
  "url":"http://localhost:PORT",
  ...

where PORT equals to your port number.
I am writing back in case someone else could find the same problem.
It might be nice to add this info in the README for other users, just in case. Or otherwise any kind of debug info when program cannot connect to the interface. I had been messing around a lot with the serial settings, thinking it was a pi serial configuration problem. Killing node process and running it from console with

DEBUG=* node /home/pi/nextion/bin/index.js

I could notice that program hang after successfully sending the first commands (sleep=0,bkcmd=3,etc) but there was no debug info like "cannot connect to url". It might be helpful to debug configuration.
PS: Thanks again for the great work! smile

Hi there, i´m using a Pi2B just like rob. I can´t make it past the "connecting to printer" screen. I was able to connect to my pi an the screen threw WinSCP and i changed the config.json file. That dind´t work so far. I tried to get die .log from the nextion but this file doesn´t show up in Win SCP. Has anyone an idea what i´ve got to do to get that said file?
Would be great if someone got a hint for me.

Offline

#152 2018-11-30 17:05:06

lumacäke
Member
Registered: 2018-11-23
Posts: 5

Re: Touch screen for NanoDLP

I Think i´ve found the problem with my screen. It´s probaply the node js server. When i install it by following the instructions on githup, i get the following messages:


2018-11-29 14:54:09 (260 KB/s) - ‘node-v6.4.0-linux-armv6l.tar.gz’ saved [12746855/12746855]

unlink: cannot unlink '/usr/bin/node': No such file or directory
unlink: cannot unlink '/usr/sbin/node': No such file or directory
unlink: cannot unlink '/sbin/node': No such file or directory
unlink: cannot unlink '/usr/local/bin/node': No such file or directory
unlink: cannot unlink '/usr/bin/npm': No such file or directory
unlink: cannot unlink '/usr/sbin/npm': No such file or directory
unlink: cannot unlink '/sbin/npm': No such file or directory
unlink: cannot unlink '/usr/local/bin/npm': No such file or directory
pi@raspberrypi:~/nextion $

Does anyone have an idea how i can solve these problems?

Offline

#153 2018-12-14 20:09:44

reddo
Member
Registered: 2018-12-14
Posts: 1

Re: Touch screen for NanoDLP

Hi all,

First, thanks to everyone contributing to this, I'm not a software guy and with lots of trail and error have a few PI's running in in the house with several applications (volumio, domoticz, monititoring of power and solar) and also have a few 3d printers designed anf build, runnig Marlin software. (and made a racing sim wheel using a few arduino's and a nextion screen)

now building the TOS dlp printer and busy making the parts. Meanwhile, doing the Nextion and PI setup but followig the TS git page, not much luck... Is there a definitive guide for setting up the nextion to the PI3B ?? Had it working and setup the nanodlp + nextion showing all but under plates, all was undefined. Now trying to set it up again (fresh install) but... no go, nextion keeps saying it's connecting...



EDIT : Fresh install now, screen is live again but not showing the IP adress (just TCP/IP) and buttons are unresponsive (they show you push them but no action).. control of nanodlp over IP works from PC. Mistery, mistery....

EDIT 2 : solved ! (from the tubus git issue list)

@ jmtru, found out the solution below:
first see the errorlog(sudo cd /home/pi/nextion, sudo ls -al, you will see that errorlog in list ) in nextion, if it is below error:
missing API key for pushbullet
{ Error: Cannot find module 'ip'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Home._callee$ (/home/pi/nextion/bin/plugins/nextion/pages/home.js:54:22)
at tryCatch (/home/pi/nextion/node_modules/regenerator-runtime/runtime.js:65:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/home/pi/nextion/node_modules/regenera$
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/pi/nextion/$
at step (/home/pi/nextion/bin/plugins/nextion/pages/home.js:16:191)
at /home/pi/nextion/bin/plugins/nextion/pages/home.js:16:361 code: 'MODULE_NOT_FOUND' }

The new dependencies (ip, drivelist, child_process) are missing in release v 0.3
sudo cd /home/pi/nextion
sudo npm i ip
sudo npm i drivelist
sudo npm i child_process
sudo shutdown -r now
after reboot the IP/TCP WILL have address, all the set icon can be work.



Thanks

Redmer

Last edited by reddo (2018-12-18 16:47:36)

Offline

#154 2018-12-20 07:37:20

ocioso
Member
Registered: 2018-12-20
Posts: 1

Re: Touch screen for NanoDLP

hello good guys
I need help, I have a nextion of 2.4 "inches but when trying to follow the git https:// github.com /Tibus/TouchScreen-For-NanoDLP
I can not make it work, the printer design I'm following is from @ToS.
If anyone could give me a tutorial to make it work, I would be very grateful

Offline

#155 2019-04-05 16:58:13

lord0815
Member
Registered: 2019-04-04
Posts: 10

Re: Touch screen for NanoDLP

In the latest NanoDLP version there is an internal support (machine settings page) for Nextion.

If someone still has an older version or cannot use the internal support; the following solution is working for me (tried 3.2" and 5"):

1) Do everything according to the installation description on GitHub (https://github.com/Tibus/TouchScreen-For-NanoDLP)

2) SSH to Raspi (I use PUTTY) and copy/paste following commands:

wget https://nodejs.org/dist/v10.0.0/node-v1 … v7l.tar.xz
xz -d node-v10.0.0-linux-armv7l.tar.xz
tar -xavf node-v10.0.0-linux-armv7l.tar
sudo ln -s /usr/local/node/bin/node /usr/bin/node
sudo ln -s /usr/local/node/bin/npm /usr/bin/npm

(Optional) - You can check if available/installed:

node --version
npm --version

(both versions should be displayed)

sudo npm i ip sudo npm i drivelist
sudo npm i child_process
sudo shutdown -r now

sudo systemctl disable hciuart
sudo reboot

-> For me this is working on all my NextIon screens...

Offline

Board footer

Powered by FluxBB