You are not logged in.

#76 2017-11-20 10:17:52

riguardino
Member
Registered: 2017-11-20
Posts: 3

Re: Touch screen for NanoDLP

Thanks you all for information,

I have a 5" display and it's now working, but with a lot of bugs, such us:
wrong image size on preview
when a printing start from browser it don't display the current printing process
etc...

have some one fixed the bugs?
I'm not expert but maybe I can fix by myself, can someone show me where I can do this?

thanks a lot

Offline

#77 2017-11-21 13:42:12

rob
Member
Registered: 2017-09-28
Posts: 54

Re: Touch screen for NanoDLP

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

Offline

#78 2017-11-26 01:29:27

mickymax75
Member
Registered: 2017-10-31
Posts: 29

Re: Touch screen for NanoDLP

Hi Julien
I reinstall the V2 but  It stays on "connecting Printer..." now
any idea?
thanks

Offline

#79 2017-11-26 17:20:56

mickymax75
Member
Registered: 2017-10-31
Posts: 29

Re: Touch screen for NanoDLP

Hi Julien....
another strange things is that after installation of new v.2 nanodlp doesn't work..... sad
I have to reinstall image on sdcard

Offline

#80 2017-11-26 19:48:46

mickymax75
Member
Registered: 2017-10-31
Posts: 29

Re: Touch screen for NanoDLP

Please, could somebody put a sequentialy list of the step to install nextion sw and work it with nanodlp?
After upgrade installation...I can't use it.....after all I got Always "connecting to printer..." and nothing else.....
sad

Offline

#81 2017-11-26 23:13:56

mickymax75
Member
Registered: 2017-10-31
Posts: 29

Re: Touch screen for NanoDLP

Hi All
So at the end I got it!
Julienne I think there is another bug to resolve:
if I put a password on nano....lcd doesn't work.
If do you click on "plate" button...you got all "undefined" plate....and other functions are KO.
I think with a software password....nextion can't access to nano data.....
smile

Offline

#82 2017-11-28 21:24:06

mickymax75
Member
Registered: 2017-10-31
Posts: 29

Re: Touch screen for NanoDLP

Hi
In the printing mode....still there no preview image on the display....any solution???
?

Offline

#83 2017-12-01 12:20:44

mickymax75
Member
Registered: 2017-10-31
Posts: 29

Re: Touch screen for NanoDLP

Hi
Any update?

Offline

#84 2017-12-02 17:09:29

Thiengod
Member
Registered: 2016-11-20
Posts: 15

Re: Touch screen for NanoDLP

Hi juliendelnatte,

I added the Dual-state button id23 in Z axis screen to Enable or Disable motor but i don't known how to code or set up any other objects to make it work.

Thank in advance,

Offline

#85 2017-12-10 20:52:59

toni
Member
Registered: 2017-06-17
Posts: 14

Re: Touch screen for NanoDLP

juliendelnatte wrote:

Yes, every nextion screen is compatible!


where i can find  .tft file for 7''  inch screen?

Offline

#86 2018-01-08 07:07:29

uups
Member
Registered: 2018-01-08
Posts: 33

Re: Touch screen for NanoDLP

I would like to upload files.
How do I run the commands in node.js to upload to the nanodlp.db db?

I want to know the code to be uploaded when the submit button on the add-usb page is clicked.

Or are there sites or links to reference?

Offline

#87 2018-01-08 07:42:39

juliendelnatte
Member
Registered: 2017-06-07
Posts: 84

Re: Touch screen for NanoDLP

The code to upload a zip or something else look like this : (where buffer is the file content)

let result = await request({
        uri: `${this.serverURL}/plate/add`,
        formData: {
          'ZipFile': {
            value: buffer,
            options: {
              filename: 'exportFromMockaSlicer.zip'
            }
          },
          'Path': "exportFromMockaSlicer.zip",
          'ProfileID': 1
        },
        method: "POST",
      });

Offline

#88 2018-01-09 12:07:43

uups
Member
Registered: 2018-01-08
Posts: 33

Re: Touch screen for NanoDLP

juliendelnatte wrote:

The code to upload a zip or something else look like this : (where buffer is the file content)

let result = await request({
        uri: `${this.serverURL}/plate/add`,
        formData: {
          'ZipFile': {
            value: buffer,
            options: {
              filename: 'exportFromMockaSlicer.zip'
            }
          },
          'Path': "exportFromMockaSlicer.zip",
          'ProfileID': 1
        },
        method: "POST",
      });

The await command is known to work with the node js 7.x version.
Thanks for the answer.
My Raspberry Phonode js version is 6.4.
If you check the version with node -v after updating the latest version, 6.4
If you check with nodejs -v, you will see 8.9 (8.x version installed).
I still can not upload files ^^;

Offline

#89 2018-01-09 12:10:03

juliendelnatte
Member
Registered: 2017-06-07
Posts: 84

Re: Touch screen for NanoDLP

File in bin folder are transformed from src by gulp, and gulp will transform "await" instruction in promise,...

Offline

#90 2018-01-10 13:46:42

uups
Member
Registered: 2018-01-08
Posts: 33

Re: Touch screen for NanoDLP

juliendelnatte wrote:

File in bin folder are transformed from src by gulp, and gulp will transform "await" instruction in promise,...



return (0, _requestPromiseNative2.default)({
                  uri: '${this.serverURL}/plate/add-usb'
                  formData : {
                    ZipFile : {
                      value: '/media/usb0/test123.stl',
                      options :{
                        filename : 'test123.stl'
                      }
                    },
                    Path : "test123",
                    ProfileID : 2
                  },
                  enctype: 'multipart/form-data',
                  method : "POST",
                  timeout: 10000
                });



The result is like this: Please help me

Promise {
  _c: [],
  _a: undefined,
  _s: 0,
  _d: false,
  _v: undefined,
  _h: 0,
  _n: false }

Last edited by uups (2018-01-10 13:48:43)

Offline

#91 2018-01-16 05:47:50

renza
Member
Registered: 2018-01-16
Posts: 1

Re: Touch screen for NanoDLP

My touch screen connected to the printer, but I can't control the z axis or projector, just nothing happen when touch screen and plates is undefined.
What is wrong?

Problem is solved.

Last edited by renza (2018-01-16 22:14:23)

Offline

#92 2018-01-19 14:13:51

uups
Member
Registered: 2018-01-08
Posts: 33

Re: Touch screen for NanoDLP

upload result : Promise {
  _c: [],
  _a: undefined,
  _s: 1,
  _d: true,
  _v:
   Request {
     domain: null,
     _events:
      { error: [Function: bound ],
        complete: [Function: bound ],
        pipe: [Function] },
     _eventsCount: 3,
     _maxListeners: undefined,
     method: 'POST',
     formData: { USBFile: [Object], Path: 'a8', ProfileID: 3 },
     callback: [Function],
     readable: true,
     writable: true,
     explicitMethod: true,
     _qs:
      Querystring {
        request: [Circular],
        lib: [Object],
        useQuerystring: undefined,
        parseOptions: {},
        stringifyOptions: {} },
     _auth:
      Auth {
        request: [Circular],
        hasAuth: false,
        sentAuth: false,
        bearerToken: null,
        user: null,
        pass: null },
     _oauth: OAuth { request: [Circular], params: null },
     _multipart:
      Multipart {
        request: [Circular],
        boundary: '3fee7ce8-3093-477c-9426-b1cb70f4c0d2',
        chunked: false,
        body: null },
     _redirect:
      Redirect {
        request: [Circular],
        followRedirect: true,
        followRedirects: true,
        followAllRedirects: false,
        followOriginalHttpMethod: false,
        allowRedirect: [Function],
        maxRedirects: 10,
        redirects: [],
        redirectsFollowed: 0,
        removeRefererHeader: false },
     _tunnel:
      Tunnel {
        request: [Circular],
        proxyHeaderWhiteList: [Object],
        proxyHeaderExclusiveList: [] },
     headers: { host: 'localhost' },
     setHeader: [Function],
     hasHeader: [Function],
     getHeader: [Function],
     removeHeader: [Function],
     localAddress: undefined,
     pool: {},
     dests: [],
     __isRequestRequest: true,
     _callback: [Function],
     uri:
      Url {
        protocol: 'http:',
        slashes: true,
        auth: null,
        host: 'localhost',
        port: 80,
        hostname: 'localhost',
        hash: null,
        search: null,
        query: null,
        pathname: '/plate/add-usb',
        path: '/plate/add-usb',
        href: 'http://localhost/plate/add-usb' },
     proxy: null,
     tunnel: false,
     setHost: true,
     originalCookieHeader: undefined,
     _disableCookies: true,
     _jar: undefined,
     port: 80,
     host: 'localhost',
     _form:
      FormData {
        _overheadLength: 367,
        _valueLength: 3,
        _valuesToMeasure: [Object],
        writable: false,
        readable: true,
        dataSize: 0,
        maxDataSize: 2097152,
        pauseStreams: true,
        _released: false,
        _streams: [Object],
        _currentStream: null,
        _events: [Object],
        _eventsCount: 1,
        _boundary: '--------------------------675221275423995844651992' },
     path: '/plate/add-usb',
     httpModule:
      { IncomingMessage: [Object],
        METHODS: [Object],
        OutgoingMessage: [Object],
        ServerResponse: [Object],
        STATUS_CODES: [Object],
        Agent: [Object],
        globalAgent: [Object],
        ClientRequest: [Object],
        request: [Function],
        get: [Function],
        _connectionListener: [Function: connectionListener],
        Server: [Object],
        createServer: [Function],
        Client: [Function: deprecated],
        createClient: [Function: deprecated] },
     agentClass: { [Function: Agent] super_: [Object], defaultMaxSockets: Infinity },
     agent:
      Agent {
        domain: null,
        _events: [Object],
        _eventsCount: 1,
        _maxListeners: undefined,
        defaultPort: 80,
        protocol: 'http:',
        options: [Object],
        requests: {},
        sockets: {},
        freeSockets: {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: 256 } },
  _h: 0,
  _n: true }
RESPONSED :  IncomingMessage {
  _readableState:
   ReadableState {
     objectMode: false,
     highWaterMark: 16384,
     buffer: BufferList { head: null, tail: null, length: 0 },
     length: 0,
     pipes: null,
     pipesCount: 0,
     flowing: true,
     ended: true,
     endEmitted: true,
     reading: false,
     sync: true,
     needReadable: false,
     emittedReadable: false,
     readableListening: false,
     resumeScheduled: false,
     defaultEncoding: 'utf8',
     ranOut: false,
     awaitDrain: 0,
     readingMore: false,
     decoder: null,
     encoding: null },
  readable: false,
  domain: null,
  _events:
   { end: [ [Function: responseOnEnd], [Function] ],
     close: [ [Function], [Function] ],
     data: [Function],
     error: [Function] },
  _eventsCount: 4,
  _maxListeners: undefined,
  socket:
   Socket {
     connecting: false,
     _hadError: false,
     _handle: null,
     _parent: null,
     _host: 'localhost',
     _readableState:
      ReadableState {
        objectMode: false,
        highWaterMark: 16384,
        buffer: [Object],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: true,
        ended: false,
        endEmitted: false,
        reading: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        resumeScheduled: false,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: false,
     domain: null,
     _events:
      { end: [Object],
        finish: [Function: onSocketFinish],
        _socketEnd: [Function: onSocketEnd],
        free: [Function: onFree],
        close: [Object],
        agentRemove: [Function: onRemove],
        drain: [Function: ondrain],
        error: [Function: socketErrorListener] },
     _eventsCount: 8,
     _maxListeners: undefined,
     _writableState:
      WritableState {
        objectMode: false,
        highWaterMark: 16384,
        needDrain: false,
        ending: true,
        ended: true,
        finished: true,
        decodeStrings: false,
        defaultEncoding: 'utf8',
        length: 0,
        writing: false,
        corked: 0,
        sync: false,
        bufferProcessing: false,
        onwrite: [Function],
        writecb: null,
        writelen: 0,
        bufferedRequest: null,
        lastBufferedRequest: null,
        pendingcb: 0,
        prefinished: true,
        errorEmitted: false,
        bufferedRequestCount: 0,
        corkedRequestsFree: [Object] },
     writable: false,
     allowHalfOpen: false,
     destroyed: true,
     _bytesDispatched: 27475,
     _sockname: null,
     _pendingData: null,
     _pendingEncoding: '',
     server: null,
     _server: null,
     parser: null,
     _httpMessage:
      ClientRequest {
        domain: null,
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: true,
        sendDate: false,
        _removedHeader: [Object],
        _contentLength: null,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [Circular],
        connection: [Circular],
        _header: 'POST /plate/add-usb HTTP/1.1\r\nhost: localhost\r\ncontent-type: multipart/form-data; boundary=--------------------------675221275423995844651992\r\ncontent-length: 27288\r\nConnection: close\r\n\r\n',
        _headers: [Object],
        _headerNames: [Object],
        _onPendingData: null,
        agent: [Object],
        socketPath: undefined,
        method: 'POST',
        path: '/plate/add-usb',
        _ended: true,
        parser: null,
        res: [Circular] },
     read: [Function],
     _consuming: true,
     _idleNext: null,
     _idlePrev: null,
     _idleTimeout: -1 },
  connection:
   Socket {
     connecting: false,
     _hadError: false,
     _handle: null,
     _parent: null,
     _host: 'localhost',
     _readableState:
      ReadableState {
        objectMode: false,
        highWaterMark: 16384,
        buffer: [Object],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: true,
        ended: false,
        endEmitted: false,
        reading: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        resumeScheduled: false,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: false,
     domain: null,
     _events:
      { end: [Object],
        finish: [Function: onSocketFinish],
        _socketEnd: [Function: onSocketEnd],
        free: [Function: onFree],
        close: [Object],
        agentRemove: [Function: onRemove],
        drain: [Function: ondrain],
        error: [Function: socketErrorListener] },
     _eventsCount: 8,
     _maxListeners: undefined,
     _writableState:
      WritableState {
        objectMode: false,
        highWaterMark: 16384,
        needDrain: false,
        ending: true,
        ended: true,
        finished: true,
        decodeStrings: false,
        defaultEncoding: 'utf8',
        length: 0,
        writing: false,
        corked: 0,
        sync: false,
        bufferProcessing: false,
        onwrite: [Function],
        writecb: null,
        writelen: 0,
        bufferedRequest: null,
        lastBufferedRequest: null,
        pendingcb: 0,
        prefinished: true,
        errorEmitted: false,
        bufferedRequestCount: 0,
        corkedRequestsFree: [Object] },
     writable: false,
     allowHalfOpen: false,
     destroyed: true,
     _bytesDispatched: 27475,
     _sockname: null,
     _pendingData: null,
     _pendingEncoding: '',
     server: null,
     _server: null,
     parser: null,
     _httpMessage:
      ClientRequest {
        domain: null,
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: true,
        sendDate: false,
        _removedHeader: [Object],
        _contentLength: null,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [Circular],
        connection: [Circular],
        _header: 'POST /plate/add-usb HTTP/1.1\r\nhost: localhost\r\ncontent-type: multipart/form-data; boundary=--------------------------675221275423995844651992\r\ncontent-length: 27288\r\nConnection: close\r\n\r\n',
        _headers: [Object],
        _headerNames: [Object],
        _onPendingData: null,
        agent: [Object],
        socketPath: undefined,
        method: 'POST',
        path: '/plate/add-usb',
        _ended: true,
        parser: null,
        res: [Circular] },
     read: [Function],
     _consuming: true,
     _idleNext: null,
     _idlePrev: null,
     _idleTimeout: -1 },
  httpVersionMajor: 1,
  httpVersionMinor: 1,
  httpVersion: '1.1',
  complete: true,
  headers:
   { location: '/plates',
     date: 'Fri, 19 Jan 2018 13:50:25 GMT',
     'content-length': '0',
     'content-type': 'text/plain; charset=utf-8',
     connection: 'close' },
  rawHeaders:
   [ 'Location',
     '/plates',
     'Date',
     'Fri, 19 Jan 2018 13:50:25 GMT',
     'Content-Length',
     '0',
     'Content-Type',
     'text/plain; charset=utf-8',
     'Connection',
     'close' ],
  trailers: {},
  rawTrailers: [],
  upgrade: false,
  url: '',
  method: null,
  statusCode: 302,
  statusMessage: 'Found',
  client:
   Socket {
     connecting: false,
     _hadError: false,
     _handle: null,
     _parent: null,
     _host: 'localhost',
     _readableState:
      ReadableState {
        objectMode: false,
        highWaterMark: 16384,
        buffer: [Object],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: true,
        ended: false,
        endEmitted: false,
        reading: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        resumeScheduled: false,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: false,
     domain: null,
     _events:
      { end: [Object],
        finish: [Function: onSocketFinish],
        _socketEnd: [Function: onSocketEnd],
        free: [Function: onFree],
        close: [Object],
        agentRemove: [Function: onRemove],
        drain: [Function: ondrain],
        error: [Function: socketErrorListener] },
     _eventsCount: 8,
     _maxListeners: undefined,
     _writableState:
      WritableState {
        objectMode: false,
        highWaterMark: 16384,
        needDrain: false,
        ending: true,
        ended: true,
        finished: true,
        decodeStrings: false,
        defaultEncoding: 'utf8',
        length: 0,
        writing: false,
        corked: 0,
        sync: false,
        bufferProcessing: false,
        onwrite: [Function],
        writecb: null,
        writelen: 0,
        bufferedRequest: null,
        lastBufferedRequest: null,
        pendingcb: 0,
        prefinished: true,
        errorEmitted: false,
        bufferedRequestCount: 0,
        corkedRequestsFree: [Object] },
     writable: false,
     allowHalfOpen: false,
     destroyed: true,
     _bytesDispatched: 27475,
     _sockname: null,
     _pendingData: null,
     _pendingEncoding: '',
     server: null,
     _server: null,
     parser: null,
     _httpMessage:
      ClientRequest {
        domain: null,
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: true,
        sendDate: false,
        _removedHeader: [Object],
        _contentLength: null,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [Circular],
        connection: [Circular],
        _header: 'POST /plate/add-usb HTTP/1.1\r\nhost: localhost\r\ncontent-type: multipart/form-data; boundary=--------------------------675221275423995844651992\r\ncontent-length: 27288\r\nConnection: close\r\n\r\n',
        _headers: [Object],
        _headerNames: [Object],
        _onPendingData: null,
        agent: [Object],
        socketPath: undefined,
        method: 'POST',
        path: '/plate/add-usb',
        _ended: true,
        parser: null,
        res: [Circular] },
     read: [Function],
     _consuming: true,
     _idleNext: null,
     _idlePrev: null,
     _idleTimeout: -1 },
  _consuming: true,
  _dumped: false,
  req:
   ClientRequest {
     domain: null,
     _events:
      { socket: [Object],
        response: [Function: bound ],
        error: [Function: bound ],
        drain: [Function],
        prefinish: [Function: requestOnPrefinish] },
     _eventsCount: 5,
     _maxListeners: undefined,
     output: [],
     outputEncodings: [],
     outputCallbacks: [],
     outputSize: 0,
     writable: true,
     _last: true,
     chunkedEncoding: false,
     shouldKeepAlive: false,
     useChunkedEncodingByDefault: true,
     sendDate: false,
     _removedHeader: { 'content-length': false },
     _contentLength: null,
     _hasBody: true,
     _trailer: '',
     finished: true,
     _headerSent: true,
     socket:
      Socket {
        connecting: false,
        _hadError: false,
        _handle: null,
        _parent: null,
        _host: 'localhost',
        _readableState: [Object],
        readable: false,
        domain: null,
        _events: [Object],
        _eventsCount: 8,
        _maxListeners: undefined,
        _writableState: [Object],
        writable: false,
        allowHalfOpen: false,
        destroyed: true,
        _bytesDispatched: 27475,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: null,
        _server: null,
        parser: null,
        _httpMessage: [Circular],
        read: [Function],
        _consuming: true,
        _idleNext: null,
        _idlePrev: null,
        _idleTimeout: -1 },
     connection:
      Socket {
        connecting: false,
        _hadError: false,
        _handle: null,
        _parent: null,
        _host: 'localhost',
        _readableState: [Object],
        readable: false,
        domain: null,
        _events: [Object],
        _eventsCount: 8,
        _maxListeners: undefined,
        _writableState: [Object],
        writable: false,
        allowHalfOpen: false,
        destroyed: true,
        _bytesDispatched: 27475,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: null,
        _server: null,
        parser: null,
        _httpMessage: [Circular],
        read: [Function],
        _consuming: true,
        _idleNext: null,
        _idlePrev: null,
        _idleTimeout: -1 },
     _header: 'POST /plate/add-usb HTTP/1.1\r\nhost: localhost\r\ncontent-type: multipart/form-data; boundary=--------------------------675221275423995844651992\r\ncontent-length: 27288\r\nConnection: close\r\n\r\n',
     _headers:
      { host: 'localhost',
        'content-type': 'multipart/form-data; boundary=--------------------------675221275423995844651992',
        'content-length': 27288 },
     _headerNames:
      { host: 'host',
        'content-type': 'content-type',
        'content-length': 'content-length' },
     _onPendingData: null,
     agent:
      Agent {
        domain: null,
        _events: [Object],
        _eventsCount: 1,
        _maxListeners: undefined,
        defaultPort: 80,
        protocol: 'http:',
        options: [Object],
        requests: {},
        sockets: [Object],
        freeSockets: {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: 256 },
     socketPath: undefined,
     method: 'POST',
     path: '/plate/add-usb',
     _ended: true,
     parser: null,
     res: [Circular] },
  request:
   Request {
     domain: null,
     _events:
      { error: [Object],
        complete: [Function: bound ],
        pipe: [Function],
        data: [Function],
        end: [Function] },
     _eventsCount: 5,
     _maxListeners: undefined,
     method: 'POST',
     formData: { USBFile: [Object], Path: 'a8', ProfileID: 3 },
     callback: [Function],
     readable: true,
     writable: true,
     explicitMethod: true,
     _qs:
      Querystring {
        request: [Circular],
        lib: [Object],
        useQuerystring: undefined,
        parseOptions: {},
        stringifyOptions: {} },
     _auth:
      Auth {
        request: [Circular],
        hasAuth: false,
        sentAuth: false,
        bearerToken: null,
        user: null,
        pass: null },
     _oauth: OAuth { request: [Circular], params: null },
     _multipart:
      Multipart {
        request: [Circular],
        boundary: '3fee7ce8-3093-477c-9426-b1cb70f4c0d2',
        chunked: false,
        body: null },
     _redirect:
      Redirect {
        request: [Circular],
        followRedirect: true,
        followRedirects: true,
        followAllRedirects: false,
        followOriginalHttpMethod: false,
        allowRedirect: [Function],
        maxRedirects: 10,
        redirects: [],
        redirectsFollowed: 0,
        removeRefererHeader: false },
     _tunnel:
      Tunnel {
        request: [Circular],
        proxyHeaderWhiteList: [Object],
        proxyHeaderExclusiveList: [] },
     headers:
      { 'content-type': 'multipart/form-data; boundary=--------------------------675221275423995844651992',
        'content-length': 27288 },
     setHeader: [Function],
     hasHeader: [Function],
     getHeader: [Function],
     removeHeader: [Function],
     localAddress: undefined,
     pool: {},
     dests: [],
     __isRequestRequest: true,
     _callback: [Function],
     uri:
      Url {
        protocol: 'http:',
        slashes: true,
        auth: null,
        host: 'localhost',
        port: 80,
        hostname: 'localhost',
        hash: null,
        search: null,
        query: null,
        pathname: '/plate/add-usb',
        path: '/plate/add-usb',
        href: 'http://localhost/plate/add-usb' },
     proxy: null,
     tunnel: false,
     setHost: true,
     originalCookieHeader: undefined,
     _disableCookies: true,
     _jar: undefined,
     port: 80,
     host: 'localhost',
     _form:
      FormData {
        _overheadLength: 367,
        _valueLength: 3,
        _valuesToMeasure: [Object],
        writable: false,
        readable: true,
        dataSize: 0,
        maxDataSize: 2097152,
        pauseStreams: true,
        _released: true,
        _streams: [],
        _currentStream: null,
        _events: [Object],
        _eventsCount: 1,
        _boundary: '--------------------------675221275423995844651992' },
     path: '/plate/add-usb',
     httpModule:
      { IncomingMessage: [Object],
        METHODS: [Object],
        OutgoingMessage: [Object],
        ServerResponse: [Object],
        STATUS_CODES: [Object],
        Agent: [Object],
        globalAgent: [Object],
        ClientRequest: [Object],
        request: [Function],
        get: [Function],
        _connectionListener: [Function: connectionListener],
        Server: [Object],
        createServer: [Function],
        Client: [Function: deprecated],
        createClient: [Function: deprecated] },
     agentClass: { [Function: Agent] super_: [Object], defaultMaxSockets: Infinity },
     agent:
      Agent {
        domain: null,
        _events: [Object],
        _eventsCount: 1,
        _maxListeners: undefined,
        defaultPort: 80,
        protocol: 'http:',
        options: [Object],
        requests: {},
        sockets: [Object],
        freeSockets: {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: 256 },
     ntick: true,
     src:
      FormData {
        _overheadLength: 367,
        _valueLength: 3,
        _valuesToMeasure: [Object],
        writable: false,
        readable: true,
        dataSize: 0,
        maxDataSize: 2097152,
        pauseStreams: true,
        _released: true,
        _streams: [],
        _currentStream: null,
        _events: [Object],
        _eventsCount: 1,
        _boundary: '--------------------------675221275423995844651992' },
     _started: true,
     href: 'http://localhost/plate/add-usb',
     req:
      ClientRequest {
        domain: null,
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: true,
        sendDate: false,
        _removedHeader: [Object],
        _contentLength: null,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [Object],
        connection: [Object],
        _header: 'POST /plate/add-usb HTTP/1.1\r\nhost: localhost\r\ncontent-type: multipart/form-data; boundary=--------------------------675221275423995844651992\r\ncontent-length: 27288\r\nConnection: close\r\n\r\n',
        _headers: [Object],
        _headerNames: [Object],
        _onPendingData: null,
        agent: [Object],
        socketPath: undefined,
        method: 'POST',
        path: '/plate/add-usb',
        _ended: true,
        parser: null,
        res: [Circular] },
     response: [Circular],
     originalHost: 'localhost',
     originalHostHeaderName: 'host',
     responseContent: [Circular],
     _ended: true,
     _callbackCalled: true },
  toJSON: [Function: responseToJSON],
  caseless:
   Caseless {
     dict:
      { location: '/plates',
        date: 'Fri, 19 Jan 2018 13:50:25 GMT',
        'content-length': '0',
        'content-type': 'text/plain; charset=utf-8',
        connection: 'close' } },
  read: [Function],
  body: '' }

The result is like this...

Offline

#93 2018-01-27 16:29:20

JRMP
Member
Registered: 2018-01-27
Posts: 6

Re: Touch screen for NanoDLP

Hello, I am buying the material to make a 3d printer, and one of the most important things is that I want it to be autonomous without any PC, I saw the video on YouTube and I started to set up the system ... but I have a problem and I see in this thread that happens to several users .... First of all apologize because I have never handled anything based on Linux and I use the google translator so it probably complicates a bit the comprehension of the text !.

I'll tell you the steps I've taken:

1º Install nano dlp as indicated on the web downloading the image and install it using Win32DiskImager. I connect by network to see and charge the nanodlp website and no longer touch anything else.

2º download the files from the link of juliendelnatte to install the application on the screen and install the 3.5_enhanced.tft load it restart and you can read: connecting to the printer ...

3º connect the screen to the rx, tx ports and the lcd power to the Pi3 the plug.

4º through putty start session and copy the line of the simple installation for a Pi3 made the installation and restart but never connect ...

Surely the fault is the simplest, but I am more lost ....

I wait for news. Thank you very much, greetings Jose Ramon.

Offline

#94 2018-01-30 09:38:52

JRMP
Member
Registered: 2018-01-27
Posts: 6

Re: Touch screen for NanoDLP

Hello, I have already solved it ... I did a reinstallation a couple of times but I still had the same problem, so I checked the post again ... and I saw that Truby put some steps to follow (these at the beginning do not look at them thinking that were part of the program) I followed all the steps up to 4.1 and 4.2 that I can not do them (these are important?) and already connect with Pi ...
a greeting

Offline

#95 2018-02-05 13:38:49

Mikhail
Member
Registered: 2017-06-25
Posts: 17

Re: Touch screen for NanoDLP

Hello!
I make all by instruction but  on LCD ctill "Connecting to printer..."
I'm not quite understand about this:
#!/bin/sh -e
node /home/pi/nextion/bin/index.js 2> /home/pi/nextion/errorOutput.log > /home/pi/nextion/output.log &
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/bin/bash /home/pi/printer/config/run.sh
exit 0

my home/pi/nextion/output.log

{ nextion: { port: '/dev/ttyAMA0', sleep: 30 },
  pushbullet: { apiKey: null } } { apiKey: null }
connect to port /dev/ttyAMA0
list [ { comName: '/dev/ttyACM0',
    manufacturer: 'Arduino__www.arduino.cc_',
    serialNumber: 'Arduino__www.arduino.cc__0042_8563334323935130C132',
    pnpId: 'usb-Arduino__www.arduino.cc__0042_8563334323935130C132-if00',
    vendorId: '0x2341',
    productId: '0x0042' },
  { comName: '/dev/ttyAMA0',
    manufacturer: undefined,
    serialNumber: undefined,
    pnpId: undefined,
    vendorId: undefined,
    productId: undefined },
  { comName: '/dev/ttyS0',
    manufacturer: undefined,
    serialNumber: undefined,
    pnpId: undefined,
    vendorId: undefined,
    productId: undefined } ]
error opening port  /dev/ttyAMA0 retry in 2 seconds
list [ { comName: '/dev/ttyACM0',
    manufacturer: 'Arduino__www.arduino.cc_',
    serialNumber: 'Arduino__www.arduino.cc__0042_8563334323935130C132',
    pnpId: 'usb-Arduino__www.arduino.cc__0042_8563334323935130C132-if00',
    vendorId: '0x2341',
    productId: '0x0042' },
  { comName: '/dev/ttyAMA0',
    manufacturer: undefined,{ nextion: { port: '/dev/ttyAMA0', sleep: 30 },

what am I do wrong?

Offline

#96 2018-02-05 14:54:00

Mikhail
Member
Registered: 2017-06-25
Posts: 17

Re: Touch screen for NanoDLP

If I make simple instalation (https://github.com/Tibus/TouchScreen-For-NanoDLP)
I see
2018-02-05 14:49:44 (115 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

Offline

#97 2018-02-05 20:18:54

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Touch screen for NanoDLP

Hello dear friends.
I used 4.3" nextion display for my NanoDLP project. it is work but have many bugs
such as some keys not working or preview pictures in wrong location and not preview layer that is printing.

also I want to customize my touch screen LCD but I don't understand its Algorithm(rpi's nextion program Algorithm)

Can you help me;please?

Last edited by Kaveh (2018-02-08 21:24:06)

Offline

#98 2018-03-01 21:45:04

lukeglazebrook
Member
Registered: 2018-03-01
Posts: 1

Re: Touch screen for NanoDLP

This is turning out to be the biggest ball ache/nightmare on earth for anyone who owns a Pi3b/B+ for the love of god is there a kind soul out there that could upload a working .img to dropbox or similar for the benifit of the community.  If someone get me a cop I will host it somehow.

Last edited by lukeglazebrook (2018-03-01 21:49:18)

Offline

#99 2018-03-22 14:36:31

ToS
Member
Registered: 2017-09-18
Posts: 24

Re: Touch screen for NanoDLP

Hi there,

first of all, I appreciate a lot juliendelnatte's efforts to provide an Nextion ui for nanodlp! Thanks for that!

As many others I also struggled with installation resulting in hanging "Connecting to printer..." in first place.
I went through all good recommendations of this thread, but was not able to resolve it until I followed the installation script of the following link:
https://github.com/cuboid3d/nanodlp

A couple of questions:
- are there additional ressources of documentation/ user-groups other than this thread and the readme on GitHub that go more into details (...so to prevent RTFM's)?
- would it be possible to display on the Home-screen the TCP/IP  assigned to the printer to access it via Web-UI (as it still seems to be needed for uploading files)?
- is there already an option on the Nextion-UI (or would it be possible to add....) for initiating shutdown and reboot?

Regards and thanks in advance
ToS

BTW: Im working on a nextion version of that thing:
https://www.thingiverse.com/thing:2749678

Last edited by ToS (2018-03-22 14:37:18)

Offline

#100 2018-03-30 05:42:01

jkreid
Member
Registered: 2018-03-30
Posts: 1

Re: Touch screen for NanoDLP

Hello,

Thanks to everyone's input in the forum. I was able to get past the "Connecting to Printer" stage and control my D7 through the touch screen.

I am running into an issue though.. When I go to the "Z Axis Calibration" page, I cannot back out using the "Home" button.

Does anyone know a fix for this problem?

Thanks!
Jkreid

Offline

Board footer

Powered by FluxBB