NefMoto

Noob Zone => Noob Questions => Topic started by: lowvo on October 20, 2014, 09:03:49 AM



Title: logging with torque app on Android
Post by: lowvo on October 20, 2014, 09:03:49 AM
I have a bluetooth obd2 connector I use with my torque app on my android phone to diagnose vehicles. It has an option for me to add additional PIDs/sensors.  The field asks for the mode and PID in hex.  does this mean I can log LDrxn for example? 


Title: Re: logging with torque app on Android
Post by: nyet on October 20, 2014, 09:21:26 AM
Parameter IDentifier != Proportional/Integral/Derivative


Title: Re: logging with torque app on Android
Post by: lowvo on October 20, 2014, 09:26:03 AM
okay, so that's what PID stands for. Forgive me but I don't know what to do with that information.  Does requested load have a hex address I could enter? Is there a table of hex addresses for each parameter?


Title: Re: logging with torque app on Android
Post by: cerips on October 20, 2014, 12:57:35 PM
What car/engine/ecu do you have?


Title: Re: logging with torque app on Android
Post by: lowvo on October 20, 2014, 12:59:10 PM
2001 allroad APB 2.7t flashed with 551L bin file


Title: Re: logging with torque app on Android
Post by: ddillenger on October 20, 2014, 01:07:07 PM
2001 allroad APB 2.7t flashed with 551L bin file

You have the very easiest car in the world to log. Use me7logger. Torque can not log the necessary ram addresses to provide the proper data, and the OBD PID's are insufficient for any tuning.

You will have to use the 38400 baud rate in order to not drop connection while logging.


Title: Re: logging with torque app on Android
Post by: lowvo on October 20, 2014, 02:02:13 PM
Good to know thanks!


Title: Re: logging with torque app on Android
Post by: metronet on October 20, 2014, 02:43:26 PM
I run the linux version of me7logger using my Android tablet and it works pretty well.

Let me know if you need help with setting it up. Cheers!


Title: Re: logging with torque app on Android
Post by: lowvo on October 20, 2014, 02:49:01 PM
Id love to set that up , do you use a Bluetooth connector? Where can I find that program?


Title: Re: logging with torque app on Android
Post by: turboat on October 20, 2014, 03:29:47 PM
me7logger is here, complete with linux version: http://nefariousmotorsports.com/forum/index.php?topic=837.0title=

metronet - interested in how you got that working and what dongle you used, any info or a instructions would be welcome.


Title: Re: logging with torque app on Android
Post by: lowvo on October 20, 2014, 05:18:15 PM
Yes, tell us about your dongle.


Title: Re: logging with torque app on Android
Post by: AudiMan85 on October 20, 2014, 05:28:16 PM
I run the linux version of me7logger using my Android tablet and it works pretty well.

Let me know if you need help with setting it up. Cheers!

Is there anyway to do this with my S5?

I would love to log on my phone, the Torque App is poor at logging I use it on other peoples cars when they have problems and I need a quick look at some data.

Also, I wondered too how add extra PID's for the app. I used there Torque Scan app to try and find extra PID's but I left my phone connected charging in my car for over 3.5hrs and it was still scanning. I'm told now it could take upto 4 or 5 hrs.


Title: Re: logging with torque app on Android
Post by: nyet on October 20, 2014, 05:29:01 PM
Is there anyway to do this with my S5?

Uh... does ME7Logger work with the S5?


Title: Re: logging with torque app on Android
Post by: metronet on October 21, 2014, 02:31:06 PM

I use an old ebay cable with a $2 OTG adapter like this:
http://www.ncix.com/detail/android-robot-micro-otg-usb-f5-102299-1246.htm

- Arm based CPU you'll need to run qemu-user to emulate the i386 instructions in user land (I tried it on a Raspberry Pi and the performance was pretty bad).
- Intel Atom CPU like the Asus ME176C I have works great but requires a few dynamically linked libraries from a standard x86 Linux distribution

Basically, it works best if you have:

- Atom based hardware
- Running linux kernel 3.10.20 (Android 4.4 kickat)
- Device is rooted (have access to root)
- OTG cable or adapter

I can provide the files I use if you guys are still interested :)


Title: Re: logging with torque app on Android
Post by: lowvo on October 21, 2014, 02:56:15 PM
Whoa this is great.  I have a spare Note 2 I can use for this.  Can you make more detailed list of steps needed? And yes, files!


Title: Re: logging with torque app on Android
Post by: metronet on October 21, 2014, 05:29:30 PM
I think the Note 2 uses an Arm processor so you might need to emulate with qemu-user

Here are the steps I could remember:

Code:
1. root your Android device

2. Install the following Apps:
    - SSHDroid (not required if you don't plan to SSH into the device)
    - SuperSU
    - ConnectBot
    - Hacker's Keyboard

3. chroot into Debian
http://sven-ola.dyndns.org/repo/debian-kit-en.html

4. Install me7logger package from here (I put them under /root/me7)
http://nefariousmotorsports.com/forum/index.php?topic=837.0title=

5. Install lib.tar.gz attached below into the chroot environment under /lib/


If all goes well you should have me7logger running with no errors:

Code:
root@K013:/root/me7 # ldd me7logger                                                                                                                                                                                               
linux-gate.so.1 =>  (0xb76f9000)
libdl.so.2 => /lib/libdl.so.2 (0xb76f0000)
libc.so.6 => /lib/libc.so.6 (0xb75ab000)
/lib/ld-linux.so.2 (0xb76fa000)

root@K013:/root/me7 # ./me7logger                                                                                                                                                                                                 
me7logger v1.20 (c) mki, 12/2010-07/2013
Usage: me7logger  [-p <comport> | -f [-S<serno>|-D<desc>|-L<loc>]]
           [-s <sps>] [-b <baudrate>] [-t] [-a|-m] [-h] [-1] [-R] [-r] [-o <logfile>]  <logconfig>


Let me know if you run into any issues.

Cheers!


Title: Re: logging with torque app on Android
Post by: AudiMan85 on October 26, 2014, 06:49:08 PM
Sweet, I'm gonna order the OTG adapter. Nyet I ment on the Galaxy S5.

Idk what the Galaxy S5 runs. Here is the wiki on it, I already rooted it. How do I know if runs ARM? I know nothing about Linux. But I root phones for side money and install custom roms so I'm sure I can figure this out.
http://en.wikipedia.org/wiki/Samsung_Galaxy_S5

Here is the wiki on the Note 2:
http://en.wikipedia.org/wiki/Samsung_Galaxy_Note_II


Title: Re: logging with torque app on Android
Post by: turboat on October 27, 2014, 02:07:02 AM
S5 is quad core arm. Would be a much nicer solution to just build me7logger for arm, rather than running an Intel emulator. Is me7logger open source? If not mmll might work.


Title: Re: logging with torque app on Android
Post by: AudiMan85 on November 16, 2014, 12:07:24 AM
I got the cable. Downloaded the stuff needed and I still don't get what to do. I'm guessing I need to copy my configuration file and everything into the folder after I make it on my computer. Which I have.

But the rest I don't understand Linux or how it works. I'm stuck.


Quick question. I'm friends with a Microsoft Windows Phone programmer. He wrote the apps for the windows phone of the office suit. He goes around the country and world and teaches people.  I have a few of his business cards. But what I'm getting at is he is now starting to get into android development also and this is something Microsoft is paying him to learn. He is trying to build android apps for Microsoft.

Now if I can get some of a few of you guys who know what your doing and what not with him. Maybe he could build a android app to use ME7Logger or even Nefmoto. PM if this sounds at all sparks and idea with you. I'm going to text him tomorrow and talk to him more about it. He has a windows tablet that's running windows 8.1 and I'm trying to borrow it to see if it will run all the programs needed. I am not in the market for a $800-$1000 tablet but it be cool to try out.


Title: Re: logging with torque app on Android
Post by: turboat on November 16, 2014, 03:00:00 AM
There are cheap windows tablets not that look like they would do the job, for example http://www.amazon.co.uk/gp/aw/d/B00O636WGI/ref=mp_s_a_1_2?qid=1416131567&sr=8-2&pi=AC_SY200_QL40

Getting nef or me7logger to work on android with an arm is non-trivial, as above you either need to emulate a x86 or build for a arm. Not looked into x86 emulation, maybe next time work gets boring.


Title: Re: logging with torque app on Android
Post by: metronet on November 16, 2014, 09:38:03 AM
What turboat said is true. You really need a Atom/x86 based CPU or you'd need to emulate the instructions.

If you're in the US, Staples has a Windows laptop for $99 on black friday :)

It uses the same atom bay trail quad core processor as the Memo pad:
http://www.staples.com/sbd/cre/marketing/black-friday/





Title: Re: logging with torque app on Android
Post by: AudiMan85 on November 16, 2014, 03:05:10 PM
Yea $99 ain't bad, that's a labtop? I just want something faster then my older Acer Aspire One 11.2" with its 1.3ghz processor. It's not the fastest or smoothest anymore. It runs Vista legal copy but worked way better with windows 7. But I had to revert back to my recovery partition copy of Vista cause it's too much of a pain to have a pirated copy of Windows.

I was trying to get the newer ACER Aspire One. Dual core and 2ghz  and 2gb ram and touchscreen. It was $250 and was built really nice, but I missed out on that model. So is windows 8.1 working for good for ME7 stuff?


Title: Re: logging with torque app on Android
Post by: nyet on November 16, 2014, 03:11:01 PM
There are cheap windows tablets not that look like they would do the job, for example http://www.amazon.co.uk/gp/aw/d/B00O636WGI/ref=mp_s_a_1_2?qid=1416131567&sr=8-2&pi=AC_SY200_QL40

Getting nef or me7logger to work on android with an arm is non-trivial, as above you either need to emulate a x86 or build for a arm. Not looked into x86 emulation, maybe next time work gets boring.

I think we might be able to convince setzi to release an arm shared library to build off of...

I'd like to convince him that he doesn't have time for it, and that he should just release the source code.. especially since I would like to add more variables to the fingerprinting component.


Title: Re: logging with torque app on Android
Post by: turboat on November 16, 2014, 04:20:02 PM
Agreed, an arm library would be awesome, but open source would be even better - mostly because it makes debugging SO much easier!

Would really like to get an android logging platform setup, it feels like the next step for this technology.


Title: Re: logging with torque app on Android
Post by: AudiMan85 on November 17, 2014, 12:22:41 PM
I ordered a Lenovo IdeaTab Mixx2 8" which windows 8.1 and it's a Intel Atom quad-core 1.3ghz, 2gb Ram and 32gb  storage. I have the OTG cable already, I also got the flip cover with Bluetooth Keyboard all and all $135 shipped. It's used but o well.

This will be great for in car use. Full OS it says. Will let everyone know how good it works.


Title: Re: logging with torque app on Android
Post by: Jim_Coupe on July 21, 2015, 06:19:25 AM
This is How my logs look like with torque..   USE Megalog Viewer for easy display!  Its a cheap program.

https://www.efianalytics.com/MegaLogViewer/veAnalysis.html (https://www.efianalytics.com/MegaLogViewer/veAnalysis.html)

(http://i705.photobucket.com/albums/ww58/JimCoupeTQ/log.jpg)

(http://i705.photobucket.com/albums/ww58/JimCoupeTQ/VE%20table.jpg)


Title: Re: logging with torque app on Android
Post by: nyet on July 21, 2015, 10:59:18 AM
Another logger code sample (java):

https://github.com/KEOpenSource/ME7Explorer


Title: Re: logging with torque app on Android
Post by: SB_GLI on July 21, 2015, 11:25:50 AM
Another logger code sample (java):

https://github.com/KEOpenSource/ME7Explorer

Thanks Nye!


Title: Re: logging with torque app on Android
Post by: trichard3000 on July 21, 2015, 01:09:23 PM
Another logger code sample (java):

https://github.com/KEOpenSource/ME7Explorer

Here's another option.  I just started picking back though this stuff but it works for me running in Python on a Raspberry Pi.  I have a B5 S4 with a M-box but I'd think it would work for most 2.7T's of the era.  It's rough around the edges but it does log and it's open for tinkering. 

http://nefariousmotorsports.com/forum/index.php?topic=4212.0title=
https://github.com/trichard3000/mmll



Title: Re: logging with torque app on Android
Post by: nyet on July 21, 2015, 01:12:38 PM
Here's another option.  I just started picking back though this stuff but it works for me running in Python on a Raspberry Pi.  I have a B5 S4 with a M-box but I'd think it would work for most 2.7T's of the era.  It's rough around the edges but it does log and it's open for tinkering. 

http://nefariousmotorsports.com/forum/index.php?topic=4212.0title=
https://github.com/trichard3000/mmll



Thanks! forgot about this project of yours.

Need to get off my ass and get to hacking.