UBW32, stickOS Bluetooth

Question, why does running my program, tx ‘hello world’, change everything?

When I power up the ubw32 and the easy bluetooth module, I am able to list the

program from the computer/ubw32 side, and the list will show up on both the

transmit side, and the receiver side, which is a mac terminal window,

running the ‘screen’ program. And if I then type list from the receiver computer,

it will list again on both sides. But not before list on the tx computer.

As per the program, I dim both the tx and rx pins, but I only transmit programatically.

And I have connected tx to rx both ways, ubw32 to BT.

So anyway after I run my ‘hello world’, the KeyboarD on the receiver computer

is unresponsive, but it still will receive transmits from the ubw32, but listing

does not show up on the receiver computer again.

If there’s an easy explanation, I’d love to hear it.

What I’d like to do, is keep both sides able to type, transmit and receive. I’d like to know

what I can do to keep the receiver keyboard working. I guess there is something I

need to do after my transmit, to restore things back, but I don’t know what it is.

A reference to a useful example or some good tips would be great, thanks.

list

10 rem expanded Hello World uart program

20 configure uart 2 for 9600 baud 8 data no parity

30 dim tx as pin rf5 for uart output

40 dim rx as pin rf4 for uart input

50 dim i, msg$[11]

60 let msg$ = “Hello World”

70 gosub transmit msg

80 end

90 rem

100 rem Run through the array with variable tx

110 rem It seems you don’t need a write command

120 rem

130 sub transmit msg

140 for i = 0 to 10

150 let tx = msg
160 next
170 let tx = 13
180 let tx = 10
190 endsub
end