wanting to send an ascii code via bluetooth on a button press

508 views
Skip to first unread message

Xpbr2000

unread,
Apr 27, 2013, 8:30:27 PM4/27/13
to tas...@googlegroups.com
I want to create a widget button that can send an ascii code to a bluetooth device. there are 2/3 buttons i want to create. I'm no programmer. so I turn to those better schooled than i to help.

here are the commands

button 1: toggle button (this can be 2 different buttons if this is too much for one button) this os an on/off function
button press 1: sends ascii code "e" to bluetooth device  "bluetoothbee" 
button press 2: Sends ascii code "n" to bluetooth device "bluetoothbee" 

button 2: Momentary button 
button press 1: sends ascii code "g" to bluetooth device "bluetoothbee", waits 1000 mil sec, sends ascii code "p" to bluetooth device "bluetoothbee"


2 questions: Can this be done? i'm sure it can. What do i need to do to program this. I can currently use blueterm to send ascii to the BT device. but i need a button and the timer on button 2.

Thanks
-Dustin

Michael Stevens

unread,
Apr 27, 2013, 8:40:39 PM4/27/13
to tas...@googlegroups.com
Take a look at Joaomgcd Autovoice tasker plugin. I believe it will do as you wish.

Xpbr2000

unread,
Apr 27, 2013, 9:03:23 PM4/27/13
to tas...@googlegroups.com
You will need to explain in a little more detail. I see 4 extra plugins and i tried to use them but I really don't see field to send code to a specific BT device. I'm probably over simplifying it but I don't have a clue on how to tell an app to send ascii period.

Cptnodegard

unread,
Apr 28, 2013, 12:45:51 AM4/28/13
to tas...@googlegroups.com
Michael misunderstood what you were actually asking about. 
I'm aware of no plugin or way to do what you want as that requires the device to be connected as a bluetooth keyboard accessory to the device you want to send commands to, which is not exactly common use for an android device

Cptnodegard

unread,
Apr 28, 2013, 12:51:06 AM4/28/13
to tas...@googlegroups.com
Btw you might want to ask the dev for that blueterm app is there's an intent or something to use it from external apps

Xpbr2000

unread,
Apr 28, 2013, 2:20:20 AM4/28/13
to tas...@googlegroups.com
Thanks, I'll look into that. I've request a programmer friend of mine to look into developing this for me. she's not familiar with android as much but hopefully i'll get something in the mean time to function. i just hoped i could possibly send commands with out the need blueterm and a keyboard press.

Any advice is welcomed.

Michael Stevens

unread,
Apr 28, 2013, 7:17:13 AM4/28/13
to tas...@googlegroups.com
So very true! :-p

hugo folba

unread,
Aug 20, 2014, 8:20:53 PM8/20/14
to tas...@googlegroups.com
I found this old and forgotten topic when I had the same problem. I am guessing that you wanted this for the Lazybone Bluetooth and i am planing on integrating it with tasker. At the end did you get anywhere with the bluetooth dev or something. Did you ever solve this problem? and if yes, How?

Xpbr2000

unread,
Aug 21, 2014, 10:31:20 AM8/21/14
to tas...@googlegroups.com
I use booth tooth serial controller 9 to do what I need. I requested a 9 button landscape version of the devs 26 button app. Irs on the android market. These are mainly designed for arduino devices or other ASCII communication.

I start my car with mine :)

Reply all
Reply to author
Forward
0 new messages