de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 E-stim 2B Scripts for Mac
PostPosted: Sat Dec 14, 2019 1:29 am 
Offline
Veteran
User avatar
One of the "Spin the Bottle" players recently mentioned having a Mac and a 2B and using the audio interface for shocks. Ever since I saw that comment, I knew I had to document my method of using a serial port (for my own backup as well).

Why use the serial port? It's much more precise, and also allows the system to use sounds instead of operating in silence. IMHO playing "Guillotine" or "Strip or Die" without the sound effects is much less terrifying, lol.

So, here's what I do:

1) Make sure Python is installed on your Mac (let me know if you need help).

2) Find the serial port your 2B is connected to. With the 2B connected, enter the following into Terminal to see your serial devices:

Code:
ls /dev/tty*


Look for something with usb and serial in the name. For example, mine is "/dev/tty.usbserial-FT9BAM6D"

3) Write a Python script to control the 2B. Mine is SUPER simple. You will need to modify your ttys device name.

Code:
import sys
import serial

# configure the 2B serial connection
ser = serial.Serial(
    port='/dev/tty.usbserial-FT9BAM6D',
    baudrate=9600,
    parity=serial.PARITY_NONE,
    stopbits=serial.STOPBITS_ONE,
    bytesize=serial.EIGHTBITS
)

ser.isOpen()

if (len(sys.argv) == 0) :
    exit()
else:
    ser.write(sys.argv[1] + '\r')
    ser.close()


I name the script "send2b.py"

4) Use the Automator app to run the script (I'll attach a screenshot) My 2BOn.app looks like this:

Code:
/usr/local/bin/python send2b.py B55


and my 2BOff.app looks like this:

Code:
/usr/local/bin/python send2b.py B0


A or B is the channel, and the number is the power level. I usually set my mode to "continuous" before playing.

5) Use your 2BOn.app and 2BOff.app in the SexScripts games. I have all three of the files in the SexScripts folder.

That's it! Let me know if you have any questions. Hope this helps someone!


Attachments:
File comment: Screen shot of my Automator script for 2BOn
2BOn.png
2BOn.png [ 40.26 KiB | Viewed 7270 times ]
Top
 Profile Send private message 
 
 Re: E-stim 2B Scripts for Mac
PostPosted: Sun Jun 07, 2020 6:57 am 
Offline
Addict
User avatar
Very cool!

I'd love to do the same with windows? Any ideas on that OS?

_________________
Just here for laughs ... and grimaces. ;)


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.