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

Connecting does not work anymore. Event Emitter ready never fires #16

Open
relief-melone opened this issue Jan 20, 2020 · 0 comments
Open

Comments

@relief-melone
Copy link

relief-melone commented Jan 20, 2020

In the past I used ether-port alot to use johnny five with my ESP8266 chips. But now with the newer versions I tried everything and I just cannot get it to work. Even with the most simple setting. This is the code

// I've also tried classical require just to be sure. Same result
import five from 'johnny-five';
import { EtherPortClient } from 'etherport-client';

const board = new five.Board({
  port: new EtherPort({ host: '192.168.xxx.xxx', port: 3030 }),
  repl: false,
  timeout: 1e5
});
board.on('ready', () => {
  console.log('Board Ready');
});

This setting used to work just fine. However the ready emitter never fires and the connection times out. Now I am still using the firmata from http://firmatabuilder.com as I have in the past (could this be a possible issue). Apart from that I checked everything.

  1. The ESP8266 is properly connected to wifi
  2. I scanned the ports and my 3030 is open.
  3. Tested everyhthing with 3 different ESP8266 boards. Same result

I also checked the comms with WireShark and PC and Board are communicating. But not really much and I can't make anything out of it. Here's the data I logged (it's always fired 6 times with this data)

PORT OPEN
<Buffer f9>
<Buffer 02 06 f0 79 02 0a 4d 00 75 00 65 00 6e 00 63 00 68 00 65 00 6e 00 5f 00 41 00 57 00 53 00 31 00 2e 00 69 00 6e 00 6f 00 f7>
<Buffer f0>
<Buffer 6c 00 01 0b 01 7f 00 01 0b 01 7f 00 01 0b 01 7f 00 01 0b 01 7f 00 01 0b 01 7f 00 01 0b 01 7f 7f 7f 7f 7f 7f 7f 00 01 0b 01 7f 00 01 0b 01 7f
00 01 0b ... 14 more bytes>
<Buffer f0>
<Buffer 71 55 00 6e 00 68 00 61 00 6e 00 64 00 6c 00 65 00 64 00 20 00 73 00 79 00 73 00 65 00 78 00 20 00 63 00 6f 00 6d 00 6d 00 61 00 6e 00 64 00
f7>
25 secs over. Closing...

I am completely out of ideas. Here are my currently installed versions

etherport-client: 0.1.4
johnny-five: 1.4.0
serialport: 8.0.6

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

1 participant