samyk / myo-osc

OSC bridge for the Thalmic Myo gesture control armband (cross-platform)
80 stars 31 forks source link

Multiple Myos? #7

Open Sindel opened 8 years ago

Sindel commented 8 years ago

Hey, is it possible to use two myos with Myo-osc?

jaimovier commented 8 years ago

yes, I'm currently using two myos with Myo-osc on windows

Sindel commented 8 years ago

Thanks, and how do you differentiate between the two? There's no mac address anymore, as far as I know. I don't own two myos yet, but soon I will. I wanted to be sure it will be kinda easy to use them both.

jaimovier commented 8 years ago

they have a unique ID when connected, so you can differentiate them in the OSC packet. Unfortunately, this changes every time you restart de application.

Sindel commented 8 years ago

I have two myos now and if I connect both and then start the myo-osc application it receives both the devices, but it transmits every value without differentiating between each other in the ID. Maybe I'm doing something wrong. How do you use it?

jaimovier commented 8 years ago

The OSC message starts with the Myo ID.. you can use that to parse each Myo. The only problem is that it changes the Id number every time you restart the application.


Javier Jaimovich javier.jaimovich.cl

On 12 August 2016 at 09:24, Sindel notifications@github.com wrote:

I have two myos now and if I connect both and then start the myo-osc application it receives both the devices, but it transmits every value without differentiating between each other in the ID. Maybe I'm doing something wrong. How do you use it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samyk/myo-osc/issues/7#issuecomment-239432483, or mute the thread https://github.com/notifications/unsubscribe-auth/AIZiFIl7wqz3dfaGhZ70WeTdDB4v3Z4-ks5qfGX3gaJpZM4JG22Y .

Sindel commented 8 years ago

But the MAC address is blank. This is a typical message I receive from the myo: OSC Message Received: time: 2480.222142325 address: a NetAddr(127.0.0.1, 62618) recvPort: 7001 msg: [ /myo/gyro, 00:00:00:00:00:00, 2.0625, 0, 1 ]

jaimovier commented 8 years ago

The message I receive has the myo ID at the beginning.. it should be a 8 or 10 digit number.


Javier Jaimovich javier.jaimovich.cl

On 15 August 2016 at 13:40, Sindel notifications@github.com wrote:

But the MAC address is blank. This is a typical message I receive from the myo: OSC Message Received: time: 2480.222142325 address: a NetAddr(127.0.0.1, 62618) recvPort: 7001 msg: [ /myo/gyro, 00:00:00:00:00:00, 2.0625, 0, 1 ]

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samyk/myo-osc/issues/7#issuecomment-239854807, or mute the thread https://github.com/notifications/unsubscribe-auth/AIZiFFgi6G1aJ1OB6vplD-1HSGjAiUQuks5qgJZ1gaJpZM4JG22Y .

Sindel commented 8 years ago

Well the version that is posted here gives only a blank MAC address. I've modified the code to return a different ID for each myo connected, following another example on the SDK. If anybody wants I can send it. Edit: my version of myo-osc that handles two myos and outputs also emg data can be reached at https://github.com/Sindel/myo-osc