Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Communication path from Pythonista to Python on MacBook using Bluetooth
-
Communication from Pythonista on iPad to MacBook via Bluetooth.
My application is a chord/text application I wrote in Pythonista and want to control my softsynths on my Macbook.
Flow would be:
1 Select song in Pythonista
2 send a message to my Macbook,
3 recieve the message in Pyhton
4 Send the correct Midi program change command from python to Mainstage (or other softsynth-host)1 and 4 are working
I tried:
- midi over bluetooth from Pythonista --> not working (too complex and not enought documentation (see my other thread)
- Mulitpeer --> nu support on MacOs for multipeer over Bluetooth ;(
- direct Bluetooth serial --> no success
I don't want to use WIFI, because this is might be used to control my behringer mixer and internet access. So I don't want to switch with this too often and loose access
Any clue what to use for this?
Thanks!
-
I guess I don't understand the reason not to use wifi... You can talk to more than one device on wifi, why would you lose access? Bluetooth communication is really annoying.
-
Wifi will work for sure. with some UDP messages
The setup is not always the same:
- Ip addresses might change depending connection
- sometimes an ad-hoc connection is needed (during gig)
- at home or during rehearsels the IP address might change
- somtimes I need to control my behringer mixer
While BT is just there and will connect automatically.
Perhaps I'm wrong with all the WIFI issues and a uniform way of working can be found.
-
Sounds like you should be using hostname instead of IP address.
-
Or still consider multipeer as it will reconnect and deliver the messages even if the IP changes.
-
Use wifi. Bluetooth is sort of unreliable in pythonista, in my experience. Sometimes things disconnect for no obvious reason. Sometimes peripherals are not detected second time around. etc.
-
Thanks for all the remarks.
I want to disable WIFI during a gig because some synchonisation services (I use iCloud and Google Drive to synchronize my settings, apple update) use WIFI and might cause CPU spikes and so audio spikes.
Perhaps it might not be a problem when this is an ad-hoc connection .Mulitpeer works great in Pythonista, but no library for regular python...
Searched for hours.I might try UDP broadcast just to get the few bytes over to python on my MacBook