-
Notifications
You must be signed in to change notification settings - Fork 112
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
Not all membership take off #50
Comments
Hey @shiva02 Can you run again with
Then provide the output here. Your issue with non-members could be due to the timeout (10s) not allowing all of them to register/setup/join. Also I have never seen a local name with RS_A or RS_C ... like ever... can you verify thats the correct names by running
and pasting the output in the comment as well! |
Yep, For the debug how to provide the output ?I'm sorry, I'm a beginner hehe |
No worries about being a beginner (aren't we all anyways?) happy to help out! Best way to provide long files of data is to create a new Gist and paste it in there. You can paste in multiple files to a single "gist". Once you are done pasting in, just copy the URL and paste it in here! Cheers |
Thank you for your response, I try to do a little choreography with drones.. I hope it's ok for you |
For precision, I use a temporal module for execute swarm action with time sequence (like eg/index.js) |
Hello, sorry back to you but I would really like to understand what is happening. Perhaps can be should i do save the drones in blutooth with linux command "hci" specific or simply click on "to trust" for each of the drones in blutooth interface linux? Shiva02 |
@voodootikigod great to see swarm is working :) |
shiva02 did you figure out a solution? I am facing a similar problem with 3 drones. Not all of them are connecting even though it recognises their existence. I played around with the timeout values but still its pretty unpredictable. |
Good evening, I'm travelling, I do not have my development computer. I try to Best regards Le mercredi 18 novembre 2015, aamodh [email protected] a écrit :
|
Oh thanks for your reply. That sounds promising. Not a problem, I'll wait for your updates :). |
Hi there, I am having the same problem reliably connecting to all 3 of my drones. 80% of the time it will connect to only 1. Very rarely 2 but never all 3. My logs look the same as shiva's above. Any thoughts whats up? I'm sending the UUIDs, and forceConnect does not seem to help either. All 3 UUIDs do show up in discover.js however. @voodootikigod Any ideas? |
After digging a little deeper into what's happening, sometimes the drones that don't connect are returning "undefined is not a member" in the assemble() function. I've added code to output the peripheral object and you can see that peripheral.advertisement does not contain a localName or manufacturerData field for the "not a member" drone. See logger output here, key lines tagged with "$$$$$$$$$$$$": This is especially strange because when I dump the peripheral objects in discover.js they contain well formed advertisement objects for all 3 drones. What the heck is going on! Is this problem at the noble level or node-rolling-spider? (Note: there is also 1 drone that appears in discover but is not visible at all in the gist output, but thats another problem) |
Hi Anand
|
Hi @aamodh, |
Further update. I think the problem may well be in the node-rolling-spider swarm.js code. I modified eg/discover.js to include .connectPeripheral() code from swarm.js. code here. And when I do it is able to connect & setup to all 3 drones 100% of the time! logs. Whereas I can't even reliably get 3 peripheral.advertisement.manufacturerData fields in swarm.js So maybe there is some funkiness in how swarm.js is connecting? The code does seem to be pretty involved, having some trouble wrapping my head around it. |
Btw, i got swarms to reliably work communicating with each drone direclty. Not sure what is going on in swarm.js as the code is quite involved but this simple approach works for me. Hope they can fix swarm.js! |
@anandx does the current |
Your fix was really helpful @anandx. The only other thing we had to do was comment out line 223 in drone.js: |
Re,
All the member does not take off.
This is my swarm var :
"var swarm = new Swarm({membership:'RS_A112233,RS_B112233,RS_C112233',timeout: 10});
I can not control all the drones, only one of them takes off and not necessarily the same at each execution. Can you help me again ?
Thanks a lot
Shiva02
The text was updated successfully, but these errors were encountered: