Update: with „stty -F /dev/rfcomm1“ I was able to figure out that with the termios commands I am addressing only the rfcomm1 port, but not the speed of communications between the HC05 and the Tic. Seems like the HC-05 does not care about the baud rate setting on the reception side. However baud rate settings „outbound“ of the HC-05 need to match the Tic. Outbound settings of the HC-05 can be easily changed via minicom tool.
In principle all fine, the new driver is up and running. Via the client, I can move the stepper motor, via Bluetooth (I have connected a HC-05 BT module to the serial pads of the Tic (as described in my previous posts).
I have set the baudrate of the Tic (using the TICGUI) and the HC-05 module to 115200. All fine.
Now…running your code example in the user guide, I can change the baud rate as much as I like, but is has no impact, I can still move the stepper motor. I do not understand the logic.
I wonder what I am actually changing with termios library commands, if anything at all. Would I affect the BT transmission, or the output from the HC-05, or the baud rate setting of the Tic? (Which I doubt)
Would you have any idea?