I'm trying to do screen tty.Bluetooth-Incoming-Port 9600 on my mac, but I'm not sure about my baud rate. How can I determine this? It's just giving me a "Cannot open line" error.
I'm trying to view output from an Xbox controller.
What baud rate should I set when using screen tty for Bluetooth?
Baud rate isn't dependent on how you connect to a serial console whether it be via bluetooth or hardwire. It has to do with how fast the host (in this case the XBox controller) is sending bits through the UART (Universal Asynchronous Receiver Trasmitter)
What matters here is that you match the two UART settings with the XBox controller. Those settings are:
Baud is the speed at which you're going to transfer data. Common values are 9,600, 28.8K, 56K, or 115.2K (or more commonly as known 115,200). Your XBox console will likely be either 9600 or 115200.
The Serial Port Parameters (or "Configuration") defines how each block of data is to be send/received. This must match or you will get garbled info. Common values are:
To launch screen
and set your communication parameters, use the following syntax:
$ screen <device> [speed],[config]
(You can get the device name by listing the contents of /dev/cu.*
after you plug in the Bluetooth serial adapter)
So, in your case, assuming 9600 baud and 8N1 configuration, use the command:
$ screen /dev/cu.usbserialdevice 9600,cs8
I suggest you download Bluetooth Explorer as part of the 'Additional Tools for Xcode' package that's available (registration required) at
https://developer.apple.com/download/more/
Go to that link, then search for 'Additional', and find the Additional Tools package for the latest version of Xcode (you don't actually need Xcode installed to use the Bluetooth Explorer app!).
That will allow you more in depth BT analysis and information.
ls /dev/cu.*
this will tell you if your driver is working