koalazak / dorita980

Unofficial iRobot Roomba and Braava (i7/i7+, 980, 960, 900, e5, 690, 675, m6, etc) node.js library (SDK) to control your robot
MIT License
942 stars 150 forks source link

2 Robots (980) same network #22

Closed steedferns closed 7 years ago

steedferns commented 7 years ago

I created a homebridge (homekit) plugin. It works fine for 1 robot at a time. The second robot returns { ok:null } but never starts . Anyone know why this would happen?

koalazak commented 7 years ago

I dont have 2 robots to try and I dont kwno how homebridge works no idea :/

koalazak commented 7 years ago

If you use the dorita980 example snippet duplicated to send commands to 2 robots. that works?

steedferns commented 7 years ago

Testing dorita980 alone with 2 robots on the same network -

  1. Robot 1 gets { ok: null } response and starts
  2. Robot 2 gets { ok: null } and does nothing
koalazak commented 7 years ago

can you share that code?

steedferns commented 7 years ago

I run the code below for each robot. (Not in the same program!)

They both return ok, but the second does not start.

var dorita980 = require('dorita980');

var myRobotViaLocal = new dorita980.Local('id', 'password', 'ip'); // robot IP address

myRobotViaLocal.on('connect', function () {
// start!
myRobotViaLocal.start().then(() => {
myRobotViaLocal.end(); // disconnect to leave free the channel for the mobile app.
}).catch((err) => {
console.log(err);
});
});
jb-home commented 7 years ago

Are both robots on firmware 2.0.0-34? Sounds like the old cloud api. It still answers like expected but does not trigger the robot.

steedferns commented 7 years ago

Yes, both are the same firmware. I can only get robot 2 to work if the other is "inactive/sleeping"? Its a hit or miss.

The irobot app always works.

koalazak commented 7 years ago

maybe the robots talk with each others when an action is performed? and the channel is occuped. Have you the mobile app offline? Can you send commands at the same time with 2 mobile apps to the robots?

steedferns commented 7 years ago

Yes, I can send commands at the same time using the app.

I will try disconnecting from the internet and using the app for both.

koalazak commented 7 years ago

news?

koalazak commented 7 years ago

reopen if needed

blaster2014 commented 6 years ago

Have two 980 on the same network and when both are running at the same time they both don't complete the job. One will work for an hour and return back to base as complete. In fact only 1/3 of the home has been completed.