buttplugio / buttplug

Rust Implementation of the Buttplug Sex Toy Control Protocol
https://buttplug.io
Other
882 stars 64 forks source link

JoyHub Mariner Support #633

Closed Bobafet231 closed 4 months ago

Bobafet231 commented 5 months ago

Feature Description

Would it be possible for someone to add the support of the Mariner device from JoyHub (J-Mariner) that has succion and rotation ? and its bluetooth

blackspherefollower commented 5 months ago

@Bobafet231 Do you have a link to the device?

Bobafet231 commented 5 months ago

@blackspherefollower this is where i bought it https://www.amazon.fr/Masturbeuse-Masturbateurs-daspiration-Masturbateur-Automatique/dp/B09QG58SML/ref=sr_1_8?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=3I7SGJP40NR48&dib=eyJ2IjoiMSJ9.D9wJ6iGz8lcBQk6uDvaOr7swHmHOdjfNJ7AVejAMlGiB2jKsfrmNyvJOxN8HiFS2lOsZsvBDLr2wjhR8IXLvnne7G85r6QyVtu8l1voMITTlLgwHPzOu82aTVgxeuSSL3OtA0ZSSjbFdLflhh2z1SNJy0lLhuhx1iwuKLW5_nbcxxYzIqRoH2PzUw3P9yHWjG_t1Rg5uUm6FWEF8mYFPSzwKTNNCWKXrNyXs1LRtmBmF9SczreWGQpnghiCxMYrbFOOVQ-9RfDZd8c-fzAi1mWRbisM_Q8OOcqmDXbLqhwU.z-lySx1bcDYN_tshnlEGAMCE1tRjObbkwwK4j2lj0pU&dib_tag=se&keywords=sextoy+homme&qid=1713965675&sprefix=sextoy+homme%2Caps%2C65&sr=8-8

Bobafet231 commented 5 months ago

its not rly documented, on amazon there isnt even any mention of any sort of app but once i got it i got a little notice explaining how to connect it to JoyHub Its Bluetooth name is "J-Mariner"

blackspherefollower commented 5 months ago

The JoyHub devices are often not advertised as such: it makes them hard to find.

I'll write up steps for testing which variant of the protocol this device uses tomorrow.

Bobafet231 commented 5 months ago

okay thanks @blackspherefollower you can ask me some technical thing if you want i have some coding skills (some)

Bobafet231 commented 5 months ago

@blackspherefollower am ready to test the protocol variant if you want i only need to go in a few hours

Bobafet231 commented 5 months ago

ah yeah i already have it installed il do it now

blackspherefollower commented 5 months ago

Good timing, I'm just about done with my dayjob stuff for today.

On your phone, install "nRF Connect": this will let you scan for BT4 devices, connect and send and receive data on their characteristics. Scan for the Mariner and hit connect. Find and select the 0xffa0 service and you should see the Characteristic 0xffa1; they'll be a little up arrow icon on the right on the characteristic to open the send packet dialog

So I'll need you to send:

a003ff000000aa
a00300ff0000aa
a0030000ff00aa
a00300000000aa
and tell me what happens after you send each one
Bobafet231 commented 5 months ago

[a003ff000000aa] -> enables rotation [a00300ff0000aa] -> stops rotation [a0030000ff00aa] -> does nothing [a00300000000aa] -> does nothing

@blackspherefollower @NickPoole

Bobafet231 commented 5 months ago

i sent them in the up to down order

blackspherefollower commented 5 months ago

Which features did you say the Mariner had? Maybe a screenshot of the DIY mode in the app would be good?

Bobafet231 commented 5 months ago

Screenshot_20240503_152203_Joyhub @blackspherefollower

blackspherefollower commented 5 months ago

Ok, lets try a00d000007ff and a00d000000ff

Bobafet231 commented 5 months ago

nothing happens for thoses 2 @blackspherefollower

blackspherefollower commented 5 months ago

Ok, lets try a007010007ff and a007000000ff

Bobafet231 commented 5 months ago

a007010007ff -> enables succion a007000000ff -> stops succion

Bobafet231 commented 5 months ago

but in diy mode for rotation its a rotation speed slider and for succion its like "modes" it kinda changes the fréquency soo a007010007ff is one of the succion modes

blackspherefollower commented 5 months ago

Ah, so this looks like the same suction system as the vortex tongue. Do 1-3 feel constant but increasing intensity?

Bobafet231 commented 5 months ago

not rleally the frequency is increasing

blackspherefollower commented 5 months ago

I think that's as close as it gets to increase intensity. At 4 does it start following some other pattern?

Bobafet231 commented 5 months ago

https://github.com/buttplugio/buttplug/assets/168737684/93adb05a-a6cc-4053-9d4f-d808e9eb7c2b

@blackspherefollower

Bobafet231 commented 5 months ago

i hope this helps note (i said 7 at the end but looks like between 6 and 7 there is no difference)

blackspherefollower commented 5 months ago

Perfect. 3 sounds like the first pattern, so we'll set the step count to 2.

Bobafet231 commented 5 months ago

okay, am happy that this helped

Bobafet231 commented 5 months ago

oh nice soo now i just need to wait for an update of the repo and also from Intiface right ?

blackspherefollower commented 5 months ago

If you're on a desktop platform, you could take the device config JSON file and replace your local copy. On Windows you'd find that in C:\Users\<username>\AppData\Roaming\com.nonpolynomial\intiface_central\config

Bobafet231 commented 5 months ago

oh thank you its only config changes thats cool

Bobafet231 commented 5 months ago

yep works big thanks, theres only the rotation that is a bit wierd (not really reactive) sometimes when i set the slider to a value nothing happens and when i set it to 0 it never stops i need to lower it manually until it stops but maybe its just a bug with iniface and using it with games it will be fine i dont know

blackspherefollower commented 5 months ago

That's a bit odd, but it's really hard to tell what could cause that. I've ordered one, so hopefully if there's any protocol bugs, I'll be able to find them in a week or so.