yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] _crue_:
there is usb serial monitor apk, try it get response

if you get correct data in monitor

uninstall it, replug usb, everything should works.
[Nexus 7 General] Koleuss:
I've installed it. it connects to arduino but nothing happens when I press buttons. Can it be because arduino Leonardo has different atmega chip?
[Nexus 7 General] NoXXX:
You do something wrong. Crue's app works fine with Leonardo.

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 General] _crue_:
there is nothing about chip

it could even :) intel

app used serial usb connection, how and who is sending data it doesn't care

if monitor shows nothing there is issues with connection.

check logcat, maybe some extra error will appears there
[Nexus 7 General] Koleuss:
have u've upploded only button library and crue's sketch? nothing else specific for leonardo?
[Nexus 7 General] NoXXX:
I even didn't use button library. You can just use Serial and everything should work. But there's some kind of magic needed because in the beginning I couldn't get it to work too.

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 General] Koleuss:
And what was ur problem? How u fixed it?
[Nexus 7 General] NoXXX:
I used 115200 when initialized Serial from Arduino. When I changed it to 9600 everything worked.

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 General] _crue_:
Yes :) I'm forget to notify that app init serial for using it with speed 9600

but this is present in sketch.

in next version I will add this in preference.

also as bluetooth support.

right now :) working on it. As I decided that I have to much usb connections I've re designed my arduino for using bluetooth HC-06

new version will be in a few days
[Nexus 7 General] _crue_:
updates:

version 1.1:

added Bluetooth support

changed service implementation

added notification in status bar (not removable)
[Nexus 7 General] Koleuss:
Well, after some investigations I realized what is the problem.

When i conect my Leonardo with Nexus (or any other OTG capable device) it is being recognised as keybord. I have notification of keybord selection as soon as i plug it in. So android sees it as keybord and ignores any serial data. Any idea how it can be avoided? Are u using default serial output through usb or u use second serial port on pin?
[Nexus 7 General] eason86:
Hi, thx for sharing , great work.

I'm using freetronics eleven(same as uno) it seems that your app does not recognize it, it shows plugged in in the usb host setting, but from your app, it says no usb device.

and error when installing 1.1, could not start the install process, says pharse error.
[Nexus 7 General] _crue_:
Give me you vendor id of the boarrd

And yes,looks like I've co pilef it with latest api.

I will uploadfixed version laster today
[Nexus 7 General] eason86:
usb\vid_26ba&pid_0003&rev_0001
[Nexus 7 General] _crue_:
I've uploaded updated 1.1 version.

Compiled with 4.2.2

Added freetronics support (not tested, but as manufacturer wrote on his site, should works :confused: )

So, testing only up to you
[Nexus 7 General] tlk09:
would it be possible to add a "double click" option also?
[Nexus 7 General] eason86:
Confirm, freetronics eleven works. Cheers

I got it installed successfully on my Nexus 5 running stock kitkat 4.4.2,

But i still have three problems:

1, Still can not install it on my Nexus 7 2012 USB ROM, phrasing error same as before

2, Hold function does not work

3, My car got 2 sets resistant buttons ( 3 wires, 1 for earth, 1 for up & down & previous & next, 1 for mode) .

The mode button and previous button both have a resistant value of 1023 shows in your app. How can i solve it?

If i add another wire and use another port on arduino to read it and then add some value before serial print, to the numbers not crash?

But it seems not a simple sketch for me, i'm only a beginner.

What do you think is the best solution for my case?

Regards
[Nexus 7 General] _crue_:
You could use any arduinmo sketch you want, just remember, to obtraine events on android you have to sent from arduino.

<click:intvalue> to click

<hold:intvalue> to hold and <release:intvalue>

Hold function you can test with monitor(in first post link on it)

Actually, i need more specific info about error, apk compiled with stock 4.2.2

I can not test it on it as i have stock 4,4,2 installed I will try on emulator.
[Nexus 7 General] _crue_:
Dbl click is not usefull :) beliave me, it was in my betas versions, I've removed it.

Later Iwill add support of custom events, also with support of new type of event (adjustable resistance) for scroll, roll input types
[Nexus 7 General] eason86:
This message come up straight away once you click the apk file, could not process to the install page
[Nexus 7 General] _crue_:
please add biggest screenshot :D:D this on too small for reading message :D:D:D:D

When I asked about additional info I've meant log data, or something like this.

I will try to check later today
[Nexus 7 General] _crue_:
uploaded fixed version

tested on emulator

please try
[Nexus 7 General] eason86:
Installed successfully on my nexus 7, thanks
[Nexus 7 General] eason86:
tried the nexus7 on my car, the resistance value i get from the buttons are not as consistentcy as what i get from nexus 5, the value varies alot and crashes with each other.

for example, volume up & down values on my n5 are 958~962 & 1000~1004, on n7 it can varie from 920~980 & 980~1020. other buttons are even worse.

i assume it the power supply on the n7 is not stable. i will try power the board with external power source.

and for my car with 2 sets buttons, I've try to sketch some codes, but i'm a begginer. can you help me with the codes and wiring please?
[Nexus 7 General] _crue_:
I'm also newbie as in arduino as in android :)

I could try
[Nexus 7 General] michiil:
Would it be possibke to add support for multible arduinos?

Would help me out a lot (:

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 7 General] _crue_:
why you don't want to wire arduinos together?

you could use multiplier for changing actual value to make it unique.

I don't think I will do what you want,
[Nexus 7 General] michiil:
I would do it if i could. But one of them is a rfduino isolated in the steering wheel connected via bluetooth (havent tested yet but i hope it works) and for the buttons in the middleconsole i would want to use a arduino micro connected via usb.

So it would really help me out to be able to use two at the same time (:

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 7 General] _crue_:
I will looks if I could get it easy to work in the same time. At least bluetooth and usb, but I don't promise anything.
[Nexus 7 General] michiil:
Thank you so much (:

I just wish i could donate you a beer (:

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 7 General] _crue_:
I've found why

http://arduino.cc/en/Guide/ArduinoLeonardoMicro?from=Guide.ArduinoLeonardo#toc6

Just try to use Serial1 instread.
[Nexus 7 General] b3ltazar:
has anyone with the micro or leo got this to work? i tried changing serial to serial1 in the sketch didnt work. i tried using the rx tx from the pins instead of the usb and it didnt work...
[Nexus 7 General] NoXXX:
I couldn't make Remote Inputs Manager to work with Leonardo's clone by iteaduino. It just didn't work. Works fine with Uno using Serial.
[Nexus 7 General] _crue_:
loocks like I found an solution (probably)

As soon as I can I will fix all bugs.

but as in my country a war :(

I can not work

I'm sorry.
[Nexus 7 General] NoXXX:
Is it possible for you to share a sources of your app?
[Nexus 7 General] _crue_:
I don't decide yet :) what to do with sources

maybe I will share repository, but not right now
[Nexus 7 General] _crue_:
version 1.2:

updated to 1.2

fixed restoring connection after deep sleep

fixed issues with connecting to Arduino Micro and Leonardo.

fixed handling usb detach action when used Bluetooth
[Nexus 7 General] b3ltazar:
\Works great with micro thanks for your help crue...
[Nexus 7 General] NoXXX:
Do anyone have a problem with this app sometimes not working after firm sleep? I have such problem.
[Nexus 7 General] _crue_:
did you get any error about program will be closed? or it just doesn't respond?

I've got today error message but this relevant to bluetooth connection
[Nexus 7 General] NoXXX:
It just not working. Then it start to work again with no problems.

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 General] _crue_:
if you didn't run app to get it to work :) it need a time to get usb devices connected back

and re-enable connection it could takes from 10 to 20 seconds, depended on someting :)
[Nexus 7 General] Wicked50:
Great job

I wish my car has steering wheel controls!
[Nexus 7 General] NoXXX:
Today I drive from home to work for 20 minutes and it didn't work all the way :(
[Nexus 7 General] _crue_:
I will try to catch it
[Nexus 7 General] NoXXX:
I think that it is more complex problem because today I got reboot instead of wake-up after deep sleep when I was at work.
[Nexus 7 General] _crue_:
reboot after deep sleep - kernel issues
[Nexus 7 General] NoXXX:
Also, after such reboot I have USB device permission request from your app. I accept it and tick remember checkbox, but after reboot I get another request again.

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 General] bryce007:
Nice App!

I am trying to get some tasker shortcuts to work with it...

I have created tasker shortcuts on my homescreen but when I select tasker shortcut in the app it does not list any of my shortcuts?

What is the correct way to get tasker shortcuts to work with this?

Thanks :)
[Nexus 7 General] _crue_:
it works directly with Tasker tasks
[Nexus 7 General] bryce007:
Hmmm strange none of my tasker tasks appear on the list then...
[Nexus 7 General] _crue_:
allow external access in tasker
[Nexus 7 General] bryce007:
Just did that and its working!!!

Thanks mate this has made integration into the car perfect :)
[Nexus 7 General] NoXXX:
Hi!

Temporary I rolled back to 4.2.2 and it looks like your app doesn't work for 4.2.2? :(
[Nexus 7 General] la.ouiche:
Hi crue and others,

I want to do exactly what you've done with my commands in my car, so it's perfect. Bravo !

For the moment I didn't even bought the Adruino module I'm just deciding on how I'm going to achieve this.

Would be nice to reroute the commands of the car to the N7, but also with this solution it allows us to add any buttons control where w want on our dashboard. Plus can you think it will be possible to interface with an elm327, can it be useful at all?

Is it also possible to control the Arduino with an app on the N7? I'm thinking of connecting a lcd display to the Arduino and to display information from the tablet. Do you think it would be feasible?
[Nexus 7 General] _crue_:
everything is possible :) but displaying info from tablet through arduino? sound strange, but possible :)

elm327? for what? You could use torque pro :) for it
[Nexus 7 General] la.ouiche:
Yeah a little bit strange but it's just to know what can be done. at the moment.. But the main idea behind is to replace some display on the dashboard, to fit and integrate in the car and enhance oem functions. Currently I have lcd that displays external temperature, RDS info from radio or tracks from cd, etc... and it can be usefull to have these informations plus some others directly on it (could act as a kind of notification bar, but deported).

From my understanding, elm327 will be used by torque pro to communicate with the odb car using bluetooth. I'm still waiting to receive the device to be sure how it works. What is the source of data for your torque pro app if it does not come from device like elm327?
[Nexus 7 General] _crue_:
not mine :)

yes torque works with elm327

I'm talkng you that my app :) doesn't need to communicate with elm? because there no info that could be used in my app :)
[Nexus 7 General] b3ltazar:
Crue will this slave Bluetooth module work for my uno? http://www.amazon.com/Arduino-Wirel...&ie=UTF8&qid=1395380780&sr=1-1&keywords=hc+06

Thanks
[Nexus 7 General] _crue_:
yes but

all bluetooth modules supply with 3.3v also for logical levels

on your link bluetooth already has 5v adapter but I'm not sure about logical levels.

so it very bug head-pain will wire it.

you have to try find such as I wrote, because it could be wired to 5v logical levels

without level voltage converters (it's accept 3.3v and 5v as well)

just ask before buying it.
[Nexus 7 General] b3ltazar:
I am using a uno it has 3.3v out and 5v out
[Nexus 7 General] _crue_:
for powering -yes.

but you hvae to find bluetooth module with 5v tx/rx support
[Nexus 7 General] b3ltazar:
Do you have a link to one that works?http://www.amazon.com/BT2S-Bluetooth-to-Serial-Slave/dp/B006RBK9ZW

This maybe a review says 5v tll
[Nexus 7 General] _crue_:
I could only tell you parameters of my Bluetooth module :)

it looks the same, but mine has no additional power converter as one in link you posted above.
[Nexus 7 General] xxoma:
Hi _crue_ !

Very helpful app!

You would like to to make the program as open source?

I want add widget to this app for display some information from arduino(f.ex. temperature sensor data).

Thank!
[Nexus 7 General] _crue_:
good idea, I will think how bettre impelemnt themeable widget with custom keys listening

will return with answer a bit later
[Nexus 7 General] eason86:
Hi Crue

Is it possible to add buttons in your app to control arduino to DIGITAL WRITE HIGH, so i can control anything on my car i want from my nexus?
[Nexus 7 General] _crue_:
this is an different app :)

I have an idea for multi control app for bi direction connection with arduino

but it's only in mind for now

right now time is not enough to continue,

but soon I will return
[Nexus 7 General] bryce007:
Hi,

I'm having an issue when using my arduino via USB with this tool. It works fine when I initially set it up, but when i put the tablet to sleep (and power down the hub the arduino is conected to) the serial connection to arduino is not found again until I reselect it in the app settings? It seems the USB path changes each time the tablet sleeps..

Is it possible to change the app so it auto connects to any USB serial device?
[Nexus 7 General] _crue_:
what arduino used, what kernel and rom?
[Nexus 7 General] bryce007:
This is using an Arduino Pro Micro (Similar to the Leonardo just smaller). This is running on Stock 4.4 with Timur's FI Kernel (This is 2013 Nexus 7)
[Nexus 7 General] _crue_:
this is Arduino Pro Micro (Leonardo) issues, each time it resets it changes device path.

Try to use something else.

Somewhere I've read about how to fix this on the board, but I don't remember where.

You have to prevent resetting the board on power on.

try to add

while(!Serial.available());

to setup function in sketch.
[Nexus 7 General] bryce007:
:"(

Wah that is crappy. Oh well. Looks like ill have to use the HC-05 bluetooth adaptor to do it.. its a shame cause the arduino will be connected via usb anyway.

Its amazing that your app can do app launching and tasker so easily.. I have yet to find a easy solution sending keyboard hotkeys off the Leonardo's built in HID driver, which was the reason i bought that variant in the first place :)
[Nexus 7 General] _crue_:
Just try to play around, I guess there is solution

I don't have such board, and it's hard to fild solution for me

but previos issue with micro we fixed.
[Nexus 7 General] la.ouiche:
Hi _crue_,

Finally I had received my Arduino Uno, and learned from scratched, it is very accessible.

In my peugeot (406 coupé) car I have a 3 wires command : 1 for ground, 1 for seek&vol and 1 for 2 buttons (labelled 'mode' and 'change').

I have plugged the ground on the ground on the Arduino and the 2 other cables on A0 and A5.

In your testing sketch, when you declare the Button, it is associated to DPIN (is it a mistake?), I had to change it to APin to make it work :

Button buttonMode = Button(APin, LOW);

Also as you see I had to make it to LOW and to declare this line :

pinMode(A0, INPUT_PULLUP);

I think it is because I didn't used any resistor in the circuit. (Otherwise if I don't do that I have a constant and repeating <click:1000> with the test sketch).

Anyway it works great, and it has been well interfacing with your RemoteInputManager.apk

I have created a modified sketch to handle the 2 wires and remap the values (because data received from the command for seek and mode are sending the same values)

If someone is interrested in the sketch it's basic but works for me :

The only issue I'm facing now is in your app, I can't make the 'hold' parameter works for any command. May be this is due to my sketch that sends a <click> as soon as it is detected? It should send a click only when 'released' I guess, or how did you solve that?

Sorry for the verbose post but I'm so happy, because of you ^^
[Nexus 7 General] _crue_:
hi :)

Analog PINs can not have LOW HI state only Digital

try to re-wire your scheme to get pairs (13, A0) and (12, A1) for example

DPIN responsible for events, APINs for resistance values.

So when DPIN come in HI state, you able to read voltage value from APIN

resistor used to set DPINs in LOW state (wired to ground) until you press the button.
[Nexus 7 General] michiil:
Hi there

I have a problem with your app:

Click events work fine but hold doesnt work at all. I get the toast in the app with hold and release so i think thers no problem on the arduino side..

Im using an arduino micro with a hc-06 bluetooth module for communication.

Thanks in advance (:
[Nexus 7 General] _crue_:
use serial monitor to be sure android receives hold action.

100% no hold action received.

also, hold for media forward action will not work as android deprecate this events
[Nexus 7 General] michiil:
Wow thanks for the quick reply (:

Will the usb serial monitor work with a bluetooth connection?
[Nexus 7 General] _crue_:
I don't know :) actually, you could try to find that what supports bluetooth, but one that used only for usb ont suitable to you

try to connect to PC via bluetooth

there is a lot COM listeners to know what Arduino sends via bluetooth
[Nexus 7 General] michiil:
Found one (:

https://play.google.com/store/apps/details?id=ptah.apps.bluetoothterminal

I receves hold
[Nexus 7 General] _crue_:
what action bound to hold event?
[Nexus 7 General] michiil:
I tried a view ones like open a app or mute..
[Nexus 7 General] _crue_:
hm, strange

ROM, kernel, logcat (not all, jsut check is there somehing when you clicking(holding))
[Nexus 7 General] michiil:
This seems to happen in logcat
[Nexus 7 General] _crue_:
it's not enough ))) maybe something else?
[Nexus 7 General] michiil:
I try it when i get home its much easier with a pc than on the device (:

---------- Post added at 12:04 PM ---------- Previous post was at 11:05 AM ----------

cant findy anything else i only get this over and over again.. where else could i look? i only know logcat :confused:

W/bt-btif ( 6818): dm_pm_timer expires
W/bt-btif ( 6818): dm_pm_timer expires 0
W/bt-btif ( 6818): proc dm_pm_timer expires
E/bt-btif ( 6818): bta_dm_pm_btm_status hci_status=36
[Nexus 7 General] _crue_:
Does click work for you?
[Nexus 7 General] michiil:
Yes click works fine (:
[Nexus 7 General] _crue_:
version 1.2.1:

updated to 1.2.1

fixed executing Hold event
[Nexus 7 General] la.ouiche:
Thanks crue, I was desespered to make hold events working, and you did it ! Thanks !
[Nexus 7 General] eason86:
hey crue, the 1.21 never work for me, force close every time. have you have previous version available for me to download?
[Nexus 7 General] _crue_:
describe what the problem is?

Android version?

logcat message?

fixing of this version will be better that :) using an old one.
[Nexus 7 General] eason86:
Hi Crue, sorry for the late reply.

i use timur usbrom on my 2012 n7, android 4.2.2. after install 1.2.1, it seems ok, once i change from bluetooth setting to usb, straight after that i get a dialog says "unfortunately the app is closed"

, the app is not actually closed, but it never pick up my steering wheel input.

i'm not sure what is logcat. ;(
[Nexus 7 General] _crue_:
adb shell logcat

then run app
[Nexus 7 General] eason86:
Hi Crue, i have managed to get the logcat, please have a look the attached file
[Nexus 7 General] _crue_:
Later today I will add a fix.
[Nexus 7 General] la.ouiche:
Could you please explain what the fix is about ? Will it bring more stability ?

I have no particular issue with the app except that sometimes when switching the car on it asks if the app should be used with usb, despite the fact that I always check 'remember my choice'
[Nexus 7 General] _crue_:
this is a ROM issues ('remember my choice') actually "feature". I've added more practical workaround, but sometimes it still asks for permissions, especially when USB device changed it's location.

fix related only to users who uses FTDI devices.

I'm waiting for [MENTION=3490061]eason86[/MENTION] to test it, and then will release it here.

but there is no extra changes - only for FTDI
[Nexus 7 General] la.ouiche:
I wonder about FTDI if this applies to me, as I have also a N7 2012 running USBROM
[Nexus 7 General] _crue_:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

version 1.2.2:

updated to 1.2.2

fixed issues related to using of FTDI devices
[Nexus 7 General] eason86:
Hi Crue

The steering wheel button value on my car varies around 30. I have to reset the value once in a while, i don't know whats causing it.

Can you change the +/- selection to 30?
[Nexus 7 General] _crue_:
you could handle this in sketch. add there a few "if" with ranges to send stable value

this much easy then :) create a new version
[Nexus 7 General] eason86:
Thanks for the tip, i will give it a go
[Nexus 7 General] la.ouiche:
Hi crue,

Sorry to come here to bother you, but I don't understand why everytime I switch on my car, despite the N7 is going well out of deep sleep everytime I have InputManager that is bring in front (with the interface to modify mappings), and I have to press home button to return in a usuable state. It wasn't the case before the update, what can I do to prevent this from happening ?
[Nexus 7 General] _crue_:
it more related to ROM, try to remove it from "recent apps"

I'm working on new version

there will be a lot new :)

also will be support of master BT modules.

I will check maybe I will add props for app to do not include it in recents.
[Nexus 7 General] la.ouiche:
mmmh you're teasing me with your new version !

I've just tried to remove it using the multitask button and it doesn't pop up anymore.

I didn't thought of that simple action, and it anoyed me for almost 2 months...

Again : Thanks !
[Nexus 7 General] _crue_:
--

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

version 1.3.0:

updated to 1.3.0

added support bluetooth devices in master mode (in general much better then use look device conncetion)

connection fixes for bluetooth

added broadcasting data recive action for communicating with external apps

action: org.kangaroo.rim.action.ACTION_DATA_RECEIVE

exrta: org.kangaroo.rim.device.EXTRA_COMMAND, org.kangaroo.rim.device.EXTRA_ARGS

data format that accepted from device "<extra_command:extra_args>"

added support recive data from external apps for sending to device

action: org.kangaroo.rim.action.ACTION_DATA_SEND

exrta: org.kangaroo.rim.device.EXTRA_COMMAND, org.kangaroo.rim.device.EXTRA_ARGS

data format that will be sent to device "<extra_command:extra_args>"

more details in first post.
[Nexus 7 General] la.ouiche:
Thanks, that's a big release!

Did you managed to make the app to not appear in recents apps?
[Nexus 7 General] _crue_:
:) I ;ve forgot, will add next time
[Nexus 7 General] yattamove:
Wow great app you got there! I actually thought you could control the steering wheel with your tablet. Hahaha! Will get an arduino later. Thanks!