RhinoPower Ltd

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Software port (Android)


Guru

Status: Offline
Posts: 1186
Date:
RE: Software port (Android)
Permalink  
 


The problem isn't porting/rebuilding the software, Android devices don't fully support the USB port. You can't install a driver like you can with Windows, you have to modify the operating system software and recompile it. There is supposedly a way around this but I've tried this on a number of devices with different versions of Android and it hasn't worked on any of them.

__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.

Lag


Newbie

Status: Offline
Posts: 2
Date:
Permalink  
 

So, to sum it up, the only way for this to work would be to build the rhino software from the ground up and even then there would be compabilty problems?

__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

TheZuke wrote:

I thought the SDLC converter I wrote about IS a Rhinopower product...

Oh yes, I bought it from James a couple years ago...


 

Yes, that comment wasn't aimed at you. I agreed to help Kostuch develop his software on the agreement that he wasn't intending to produce a product and that he didn't share any details. However he has done both, resulting in my company being closed down for a short time.



-- Edited by TechSupport on Tuesday 25th of November 2014 10:22:25 AM

__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Veteran Member

Status: Offline
Posts: 25
Date:
Permalink  
 

I thought the SDLC converter I wrote about IS a Rhinopower product...

Oh yes, I bought it from James a couple years ago...



__________________

1994 Suzuki Sidekick JX, 4x4, 4-door, 16 valve 1.6 L, MT (5-speed) USA Fed, Japan built



Veteran Member

Status: Offline
Posts: 79
Date:
Permalink  
 

This board is for the support of RhinoPower products only.

 



-- Edited by TechSupport on Friday 7th of November 2014 10:44:38 AM

__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I've done some more research and I think the problem may be related to this:

Java D2XX Android Driver

Apparently although Android apps are written in Java Android doesn't offer native support for Java apps. I will try installing a Java emulator and trying the FTDI terminal emulator again.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

Because SDL is a bi-directional communications link any data that you send will be reflected back. You can test the Android software by sending any data and seeing if it is received, you don't need an ECU attached.

__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I've had a number of attempts at this but I haven't been able to get any of the FTDI examples to work on an Android device even with a host port. The USB interface is recognised by Android and Linux but then I can't connect from the app. My tablet bricked itself during an update a couple of weeks ago and now won't connect on the Wi-Fi, the Android double-DIN unit in the Jimny won't connect via USB either, doesn't support Bluetooth for anything other than the mobile and won't connect to Wi-Fi ELM either. I am finding Android very frustrating, the problem is that you can't install drivers like you can with Windows and because the devices tend to have the minimum memory the OS is stripped right down. The issue then is that although some devices will work if I sell an interface for Android then its most likely that it won't work on the majority of devices and is going to be a nightmare to support.

__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Veteran Member

Status: Offline
Posts: 25
Date:
Permalink  
 

Hello, it has been awhile, as I no longer have a Suzuki, but a Honda for my daily driver, I've been thinking about hooking up your OBDII-USB converter to my 2004 CR-V and my Android tablet  (Trio-97C Android 4.0.4, not Google certified)

This Trio 10 inch tablet comes with a USB Host port in addition to the regular USB/charging port. 

I downloaded FTDI UART Terminal v1.0 from FTDI as an .zip file (J2xxHyperTerm.apk) to my PC,

unzipped it to a thumb drive,

Mounted the thumb drive on the tablet, opened File Explorer, selected the USB storage file, and tapped on the J2xxHyperTerm.apk icon.

It asked me if I wanted to install the file, and I tapped yes.

The icon now appears in my Apps folder and appears to run.  I haven't actually hooked it up to the OBDII cable yet.

I'll need to see what the Honda baud rate and such are before going any farther.

TheZuke

dona nobis pacem

[edit] P.S.  the FTDI site now lists a terminal program that should make some (compliant) Android devices USB port work as Host

(I haven't tried it)



-- Edited by TheZuke on Monday 3rd of November 2014 06:56:23 PM

__________________

1994 Suzuki Sidekick JX, 4x4, 4-door, 16 valve 1.6 L, MT (5-speed) USA Fed, Japan built



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I finally got my cheapo £40 Chinese Android tablet to connect to the SDL interface using the FTDI application. It rather confirms my thoughts that Android is a long way behind Windows in terms of user friendliness. I'll make some notes here to remind me how I did it and maybe to help others, this should allow any FTDI UART to work.

When I started the Android tablet would see the SDL Interface under Linux but not under Android. I downloaded an app called 'USB diagnostics' by Chainfire. That fixed the issue with the tablet not seeing the interface.

Next I needed to get the FTDI driver onto the tablet which requires the use of the Android Debug Interface which is part of the Android SDK available from Google. When I plugged my tablet into my PC the tablet wasn't recognised by the device manager so I had to navigate to the android_winusb driver and manually add the hardware ids to the inf file. Hardware IDs are available from the tablet under 'Developer Options' while you're there tick the 'USB Debugging' checkbox.

On the PC save the modified inf file and then in the Device Manager install the modified driver. When you reconnect the tablet to the PC the Device Manager should now show the tablet.

From the FTDI site download to your PC the D2XX sample code: http://www.ftdichip.com/Drivers/D2XX/D2XXSample/D2XXSample.zip From these files you need the library file 'libftd2xx-jni.so' to make the next step easier I copied the file to the folder containing the android debugger adb.exe

Next hold down shift and right click on the folder containing adb.exe and select open command window here. Make sure that the PC can see the tablet by typing 'adb devices'
Now send the library file to the tablet by typing 'adb push libftd2xx-jni.so /data/data/com.ftdi.d2xx/libftd2xx-jni.so' - this requires root access.

Unplug the PC and plug in your FTDI based device/SDL interface.

The new D2XX driver shouldn't need root access but I still have issues trying to build the demo code. I'm booked on an Android programming course next February, progress is slow but there is some progress! Hopefully when I have finally created an app it should be (almost) plug and play.


Some devices will already have the USB host enabled, if you want to test your Android device with a RhinoPower interface or FTDI serial converter then you need the app here:

https://play.google.com/store/apps/details?id=com.ftdi.j2xx.hyperterm&hl=en_GB

If you try this please let me know if you can get a connection and on what device.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
RE: Software port
Permalink  
 


I'm using an FTDI USB-Serial converter, the advantage of this IC is that I can use it on any Android device that has a USB host enabled, the FDI driver does not require the device to be rooted. I have been able to get the Android toolset to work and when I try to build the demo app I get errors so that maybe why the app doesn't work for me, I'm busy on other stuff now so I will come back to it at a later date.

__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Veteran Member

Status: Offline
Posts: 79
Date:
Permalink  
 

James,
I don't know how you built your interface hardware.
I used to use small atmel uc as a smart baud converter 7812/15625 to 9600/19200 pc-friendly baud rate.
If you have some programmable chip on the board, maybe you can do it as well.


__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

OK it looks like I've got the UART application running now, the next stage is to get all the software tools working and if, I can get the source code, recompile to allow data transfers at ECU speeds, the FTDI app only allows the standard PC baud rates.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I still haven't made much progress in getting my tablet to talk to the interface. If anyone has an Android tablet or phone could they please download the FTDI UART application and then let me know if it will recognise the interface. Android recognises my device but when I try to configure the interface I get an error message. The FTDI app. should not need the device to be rooted.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

This just got a bit more viable. FTDI have released a driver that allows an Android device to interface to the FT232R chip, which is the chip used in my SDL Interface. There will still be the same incompatibility issues but its a lot more hopeful. Now all I need to do is find a few hundred hours to get that working and develop some new software!



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I'm looking at developing a new interface that will be an Android Accessory. I spent some time on it a few weeks ago but didn't get very, it seems that there a lot of compatibility problems with Android, especially as the Google Apps only support a limited number of devices; I would envisage that the device of choice for most users would be a cheap Chinese tablet with a few people using a phone. I bought a cheap tablet but I can't justify spending £££s on an Android phone, as my wife would tell you, I rarely use my current phone.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Member

Status: Offline
Posts: 6
Date:
Permalink  
 

So what is that going to enable you to do / what Direction are you going to go with?


__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

The Microchip dev kit:

 

microchip android dev kit



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

The Microchip dev kit arrived early but I'm away at present and I don't yet have an Android device, time to pick up a cheap tablet.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I bought a cheap BT ELM unit but although the Bluetooth software can see it I haven't yet been able to get any comms to the ELM device. I've ordered the Microchip Android development kit to play with but its on back order until January



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Senior Member

Status: Offline
Posts: 201
Date:
Permalink  
 

This is starting to sound viable ...



__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I think that pretty much sums it up as it stands. The only other option may be for me to buy in cheap BT ELM units and then reuse the case and BT module. It sounds a bit wasteful but the Chinese clones don't cost much more than I have to pay for a connector.

 



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Member

Status: Offline
Posts: 6
Date:
Permalink  
 

So what your saying is that rhino view would have to be rewritten to work with android as an app and theres a good chance it won't work on most platforms anyway ?

__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I've seen a few hacks and ther is also an article on the FTDI web site about recompiling the operating system to include their Android drivers For it to be a viable product it would have to be plug and play and operate on a good variety of platforms with only one version of software.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Veteran Member

Status: Offline
Posts: 79
Date:
Permalink  
 

I've heard, that serial port on modern smartphones can be simulated using microphone/headphone socket.
I saw some implementation on hackaday(?) website.

__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

Bluetooth would be the way to go but so far I haven't been able to source an affordable BT module in modest quantities. Other wise it would need a completely different interface that operates as a USB host because the Android Accessory interface is designed to act as a slave.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Senior Member

Status: Offline
Posts: 201
Date:
Permalink  
 

Well - for my part I haven't pursued it - I do have the Galaxy 7.0+, which is now running ICS 4.something - and which as far as I know does function as a USB host, although I have not bothered to acquire the adapter.

Bluetooth might be the way to go, especially since I suspect that would be more common on the Android platform than USB host capabilities, but it would require Rhinoman to redesign his SDL adapter - the other big issue will be power consumption, battery life on the tablets with the screen and bluetooth radios on is going to be quite short - I can drain my batteries in 3~4 hours if I have the GPS on (I do have a car charger for it).



__________________


Member

Status: Offline
Posts: 6
Date:
Permalink  
 

has this idea been looked in any further yet cause im hoping to get rhino view on my blackberry playbook as the the play book can now run andriod apps i think it would be pretty cool to hav the pad mounted in the zook.



__________________


Senior Member

Status: Offline
Posts: 201
Date:
Permalink  
 

Aaahh - my new Galaxy tablet hasn't reached me yet - I should have it in a week and then I need to make myself familiar with it - it'll be awhile before I can answer your questions.

I picked up two last year as christmas gifts for the ladies in my life (wife & daughter wink ), and they're having so much fun, I decided I wanted one myself.

I doubt that there's a serial port - you're no longer seeing that on the mainstream laptops, and I think the tablets are seen mainly as entertainment devices - books, videos & gaming - although I am seeing quite a business related apps showing up - Dell has one that allows field support access to support information.



-- Edited by fordem on Thursday 15th of March 2012 12:51:04 PM

__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I've had a look on the FTDI site, they have a document that shows how to rebuild the OS to include the FTDI VCP driver, I think that is a bit too much for most people. They have released a D2XX driver for Android, that would require me to do a significant software redesign, I have had that in mind for some time anyway as it would allow me to add extra functionality. If the D2xx driver insatlls on your machine then maybe we could do some tests.

There are terminal emulator programmes available but I don't know how they work, is there an old-fashioned serial port available? if so does it support the Suzuki baud rates?



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I think that USB host support is being included from Android 3.1 although it doesn't seem that many devices support it yet, only around 5% of Android devices use 3.1 onwards; I will keep watching to see how things develop. One other factor that concerns me is compatibility between versions, I don't want to have to rebuild for different issues and certainly not for different devices. This is one area where Windows really does have an advantage - the Win 32 API is compatible with all OS versions from 2000 through to Win 7, 32 and 64-bit. Windows 8 I don't know about yet but I haven't heard anything bad.

There is some compatibility data here:

http://developer.android.com/resources/dashboard/platform-versions.html



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Senior Member

Status: Offline
Posts: 201
Date:
Permalink  
 

That sounds quite odd - I know the Samsung Galaxy tablets can act as a USB host, although for reasons best known to Samsung, they don't include the adapter in the box with the tablet.

Apparently it supports keyboards, mice, and flash memory readers - I'll know more in a couple of weeks.



__________________


Guru

Status: Offline
Posts: 1186
Date:
Permalink  
 

I looked into this briefly but it doesn't look to be possible to do this with the current hardware. Android is rather backwards and acts as a USB device so the 'peripheral' has to act as a host which needs more sophisticated hardware.



__________________

1984 Suzuki SJ413K pick up, 1.6 16V Baleno engine
2000 Suzuki Vitara 1.6 8V, many mods
2004 Suzuki Ignis 1.5VVT 4Grip
2006 Suzuki Jimny 1.3VVT JLX+
and many more.



Senior Member

Status: Offline
Posts: 201
Date:
Software port (Android)
Permalink  
 


I have a vague recollection of recently seeing a question about porting Rhinoview - possibly to the Android platform - am I mistaken?



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard