Touschscreen hack - Desire Q&A, Help & Troubleshooting

Hello, i am trying to figure ot how to connect touchscreen to simple mcu (like avr, stm32f4 or pic)
I made pcb so i can connect oscilloscope with I2C decode, and running program at the same time to see x y coordinates when i touch it. Problem is, by knowing x and y, and knowing what is on I2C buss, i can't figure out how it works , it a bit semi random data
Can any one help me with that, if some one has accuses to android touchscreen driver, to extract how they convert data from i2c bus to x y coordinates, that would be very helpful
Thank you

Related

adding bluetooth to xda 1

Hi all,
I am working on adding bluetooth to the xda 1. I have searched on the net for a serial BT board because usb is not a option. Turns out that almost al BT boards found in the cheap usb dongels have serial / pcm and usb connections on it.
the best manufacturer I could find is CSR they stack almost everything in a smal package and there is lots of info on there web site.
Since I am mainly a hardware guy I am a bit stuck on the software side.
I am looking for a way to make my xda talk to my BT board.
I was thinking of reassigning the bt com port (ppc 2003) to my external com port through the registry, but which key to attack for that ?
Perhaps trade in my IR port (dont use it) this will voidyour warranty but I dont have any.
Also finding a piece of BT software to drive the board is hard to find, i Got some from a CF BT card. but no luck so far.
Any body who can help me with this ?
thanks in advance.

Serial Cable

Hi all,
This forum being the greatest about HTC, I think you guys will have the answer :
I would like to use my TyTN to connect to the console of a router (using serial connection) :
1. Does anyone know where I could find a miniUSB-DB9 adapter ?
2. Will there be a driver for serial port, or is it natively managed with COM ?
Such cables exist but for PC, but not miniUSB and with a Windows driver, no info about the same thing for PocketPC.
Anyone knows ?
Thanks
zEar - HTC TyTN
Re
----
DELETED Message where I thought I found it..
Understood the problem..
Hi all,
AFAI understood I cannot find a solution due to the lack of USB Host support in the TyTN. I still wonder if the port can be used in direct low level serial mode as you see in bootloader. Could WinMobile use it ?
Another way would be to have a device that would be usb host, putting the phone into slave mode, but maybe I dream...
Thanks for any reply..
there is a bluetooth to serial adaptor which has been reported to work with the tytn.
COM1
Hi,
After much googleing there's still hope. Windows Mobile presents a COM port : 'COM1 via cable' and in the specs of the TyTN there is RS232 communication.
I still cannot figure out if the miniUSB connector pins could be simply mapped to the corresponding RS232 signals. Probably not
Anyway I flashed the XDA-Live wm6 ROM and it's great ! the battery seem to last longer (still 70% after 2 days!)
Thanks to the xda-dev community

TMC to USB Port (for Chinese GPS)

Dear All,
I would like to share my experience in this TMC project.
Recently I bought a Chinese GPS 100 unit to connect to my JVC KD AVX40
This has an av out in 320x240 and JVC has an AV in.
You can control the unit via touchpad.
It works correctly to my unit so I decided to get a TMC for this product.
This unit has One USB port which is in Host mode.
So Put a normal USB hub on it and it worked well with Pendrive and External Mouse
Next step, I got a FTDI USB to Rs232 device.
It has FTDI 232BM chip for UART connection it's very important to use chip like this , because of the windows ce driver
I've opened it and I removed chip called SP213EHCA.
In every RS232 there are 2 chips on the board. One is for USB to UART , and the second is for Uart To Rs232.
Because the every TMC receiver uses TTL communication which is working on 3.3v I need to "convert" the unit to USB to UART TTL only.
Obviously you can build a small circuit for this communication, but for myself it was easier to use this solution.
After I removed the Rs232 chip.
Datasheet Page 5 for picture of the pin outs.
You can download it from the FTDI website
The Tmc Receiver pin out is :
Pin definition:
Pin1 Vcc: 5V +- 10%
Pin2 TX: 3.3V TTL level, TMC data output.
Pin3 RX: 3.3V TTL level, receive commands.
Pin4 GND <-- It's not ground It's 5V !!!
Pin5 GND (for mini-USB only)
I soldered a mini USB mother type connector to the chip legs:
PIN2 goes to chip leg 24
PIN3 goes to chip leg 25
PIN5 goes to chip leg 17
So after this I connected the Royaltek TMC unit to my "hacked Rs232" board.
I put the "hacked rs232" to hub and I used a USB mini usb cable for power the tmc unit, so I connect the cable to hub and after that to the tmc.
After this I used this driver for windows ce 5.0
You can download it from the ftdi web site
I have to use mortscript which copy a self made reg file to the registry and copy the ftdi dll to /windows/ folder
Reg:
REGEDIT4
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577\Default]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577\Default\Default]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577\Default\Default\FTDI_DEVICE]
"DLL"="ftdi_ser"
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\255]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\255\FTDI_DEVICE]
"DLL"="ftdi_ser"
[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\FTDI_DEVICE]
"Index"=dword:00000001
"InitialIndex"=dword:00000001 <--- This is for which com port to use 1...9
"Dll"="ftdi_ser"
"Prefix"="COM"
"Version"="1.0.2.11"
"ActiveSyncSetting"=dword:0003e880
"LatencyTimer"=dword:00000010
"DeviceArrayIndex"=dword:00000000
This reg file is directly uses COM PORT 1 (It was free in my device )
After this I created a very small circuit which holds the usb power for 20sec
parallely my reg and driver is installing in this time.
When I reached 20sec My Hive based Windows Registry will recognize the FTDI device and there are no pop up meassegas appear ....
IGO recognized the TMC device hardware
The reason I write this how to , because I read so many forums ,and web pages to find a solution for this , but i didn't find anything.
GNS is providing a TMC receiver for CAR PC but with a prolific based USB to UART chip, and the ARM based cpu is not understanding the driver
Ough I forget the tmc receiver what used:
Royaltek RTA-3000
Have a nince day I hope that I could help to someone
guika said:
Dear All,
Snip, snip
Have a nince day I hope that I could help to someone
Click to expand...
Click to collapse
I got the same JVC stereo, how can I unlock for multizone DVD? Thank!
If i understand it correctly that you mean, you want to unlock the dvd region limitation.
I didn't unlocked it, but the main problem, that the unlock lock status is came from the dvd FW, which is not possible to reach it, via this unit. I searched for the web, and JVC also, for some FW update. There isn't any. So from my side i say it's not possible in easy way.
I have tested this solution and since half year aho its working fine under -20 to +50 so it is a solution.
Sent from my GT-I9000 using XDA App
Compatibility
Also tested with FT2232H
This soultion is working , only bug that because of the dual uart the windows device pop up a notification for the second uart driver.
Also working.
Not working with Moxa chip.
Not working with Prolific PL-2303. ( Because the driver for the chip is not going to get open com port in wince 5 :S )
It seems that the only solution is the FTDI chip.
I've made a test with bluepanter and Wayteq and a very old Blaupunkt.
Solution is worked when I changed the usb mode to Host in wince.
It's seems for the blepanter and the wayteq it make not so much sense bacuse you could buy their original accessories.
For the blaupunkt is okay.
Also this could be okay for the 1-2 din chinese gps. Needs to be tested.
Reception improving
I had issue with the tmc reception.
So the solution is make a fm Y cable, and share the outdoor antenna to the head unit and to the tmc receiver.
After the installation, I realised that the reception was not so good, because I miss calculated with the phantom power to my roof antenna, after the phantom power installation everything went fine.
I got reception where I never had it before. TMC news downloading time improved as well.
Take care with the phantom power because it could kill the TMC receiver, use only one way adapter !
hi,
many many thanks for you thread...i had some questions...
i have bought an Dynavin DVN-MC2000 and this unit is without TMC but it have an GPS-In Mother-Usb cable...i think this goes directly to the wince5.0 system.
Where did you buy your RT-3000 and do you have the complete name of the FTDI Modul?!
Maybe we can develop a solution together i could make fotos from my open DVN-MC2000 if it helps
Maybe a ohoto would be great.
I bought the tmc unit in hungary in an avarage shop.
About ftdi i had one in my work desk. But it doesnt matter the meaing is it should any type which is supporting from the wince ftdi driver side. See ftdi web.
Sent from my GT-I9000
Hello all!!
I've been reading the post and I have to congratulate you, very interesting!
If you do not mind I'll use this thread because I want to ask you a question, I haven´t found any response in any expert forum.
I have a problem with my car radio. It is a chenese radio with GPS and TMC integrated.
From the beginning the TMC worked correctly but It had problems with the GPS. It didn´t work properly (may be the driver was wrong or it was bad installed on the WIN CE5). The provider din´t give me a solution and I found a forum in France. There someone sent me an European WIN CE 5 ROM with the GPS installed a working properly. The problem is that this guy didnt have any ROM with the TMC driver integrated and now I dont have it installed.
My actual state is: WIN CE + GPS HW (installed and working) + TMC HW (not insalled)
My question is:
How could I install the TMC in my radio WIN CE5? The HW exists but my WIN CE 5 does not have the drivers and of course the IGO can not find it.
Thank you very much!
pd: sorry about my english!!!
elmike1980 said:
Hello all!!
I've been reading the post and I have to congratulate you, very interesting!
If you do not mind I'll use this thread because I want to ask you a question, I haven´t found any response in any expert forum.
I have a problem with my car radio. It is a chenese radio with GPS and TMC integrated.
From the beginning the TMC worked correctly but It had problems with the GPS. It didn´t work properly (may be the driver was wrong or it was bad installed on the WIN CE5). The provider din´t give me a solution and I found a forum in France. There someone sent me an European WIN CE 5 ROM with the GPS installed a working properly. The problem is that this guy didnt have any ROM with the TMC driver integrated and now I dont have it installed.
My actual state is: WIN CE + GPS HW (installed and working) + TMC HW (not insalled)
My question is:
How could I install the TMC in my radio WIN CE5? The HW exists but my WIN CE 5 does not have the drivers and of course the IGO can not find it.
Thank you very much!
pd: sorry about my english!!!
Click to expand...
Click to collapse
From the first i need to know what kind of tmc chip do you have. Royaltek/GNS and after that we can get closer to the problem. Qhit the upper sokution you can put in the driver if we will figure out the chip manufacturel.
Sent from my GT-I9000
I am sure that the integrated chip is GNS tipe.
The only thing that can hapen if we install a wrong driver is that it would not work, wouldnt it?
But the other things would work good...
thank you!
elmike1980 said:
I am sure that the integrated chip is GNS tipe.
The only thing that can hapen if we install a wrong driver is that it would not work, wouldnt it?
But the other things would work good...
thank you!
Click to expand...
Click to collapse
Generally yes.
But first. You will need to do some test. I will post it later. Because right now in this days i have a lot to do. I wont forget your problem so i will post it here what to check first to start your problem solving....
Sent from my GT-I9000
thank you very much!
I will wait for your answer.
regards.
please dont forget me!!
bye!
Dony worry i wont
Sent from my GT-I9000 using XDA App
Hello Guika,
Where did you get your Chinease GPS 100? can you send me the link?
Thanks,
cjean said:
Hello Guika,
Where did you get your Chinease GPS 100? can you send me the link?
Thanks,
Click to expand...
Click to collapse
http://www.car-audio.hu/?base=items&filter=cat&type=item&catid=0&cid=141&id=714
Sent from my GT-I9000
elmike1980 said:
thank you very much!
I will wait for your answer.
regards.
Click to expand...
Click to collapse
I found something maybe from your IGO8 folder is missing one file called gpstmc.dll
Check this forum
http://www.mobilepassion.org/viewtopic.php?t=2355
I will check it.
Anyway I think that I need the driver for TMC receiver. I have the HW but it is not installed. Do you know were could I find TMC drivers for Win CE 5? with them the problem would be solved-install and the IGO would take it automatically (I had it installed the first time, but the GPS didnt work).

Bench Testing Ford Pioneer Can-Bus Head Units

Hi guys!
New to this forum..let me know if this is posted in the wrong section.
I have a 2008 Ford Can Bus nav unit with the Sync module I am trying to power up outside of the vehicle. I understand it requires some sore of "enable" signal on the Medium speed bus.
I have a neo vi fire with vehicle spy 3 as well as the ford diagnostic engineering tool software, but I am having trouble setting up the "local" can network. Currently I have the MS High and Ms Low pins directly connected to the corresponding pins on the head unit and sync module, but I am unable to transmit or see any traffic on the network.
Any advice please let me know. I am working on a project and this is the first step of many.
Thanks!
jonl281 said:
Hi guys!
New to this forum..let me know if this is posted in the wrong section.
I have a 2008 Ford Can Bus nav unit with the Sync module I am trying to power up outside of the vehicle. I understand it requires some sore of "enable" signal on the Medium speed bus.
I have a neo vi fire with vehicle spy 3 as well as the ford diagnostic engineering tool software, but I am having trouble setting up the "local" can network. Currently I have the MS High and Ms Low pins directly connected to the corresponding pins on the head unit and sync module, but I am unable to transmit or see any traffic on the network.
Any advice please let me know. I am working on a project and this is the first step of many.
Thanks!
Click to expand...
Click to collapse
I believe it transmits on the mm can which may be why your not seeing any traffic

[MTCD/E/P] CanBus app reverse engineering

I have started reverse engineering the HCTCanBus app.
The reason was that I wanted to display the outdoor temperature in my custom launcher.
But one thing in advance that was only possible because I built my own cunBus box. The radio can only process data it receives and the original canbus boxes only have a very limited number of canBus messages integrated.
The data from the box is transferred to the Android system via the serial port "/dev/ttyV0".
What I found out was that the steering wheel buttons are not transmitted to this serial port.
But all other data with the correct format is transferred there and processed by the HCTCanBus app.
So we can use it to implement our own messages.
I also managed to send data back to the box.
The serial port is not used for this...
The original app processes data on the door contacts, air conditioning, parking sensors and TPMS.
These are at least the things I've found out so far.
In the original app is the handling of the data for the different settings in the factory settings for the canBus.
For each manufacturer there is a file that decides what the message means and how it is to be processed.
I own a Chrysler 300C and use the setting "30 CHRYSLER(Bagoo)".
I have only worked on this. Because I have no access to the data of the other manufacturers.
To read this data from the code is almost impossible with decompiled code, at least for me...
So far I only integrated the door contacts as activity.
For the other displays my car simply does not provide any data (air conditioning) or I have not yet been able to identify the correct can messages (TPMS, radar sensors)
What I have integrated, because of which I have built my own box, is a settings window where I can for example set the events when the radio is switched on or off.
I have uploaded the current state of my work to github.
Even if I am still in the middle of my work it might be interesting for some people.
I would be happy if others would join in and we could integrate the canBus message for the other manufacturers.
github.com/zebbel/MTCD-E_CanBus
Sorry but it's annoying to post stuff here when you can't even insert links...
Hey, zebbel.
You're up to a pretty good start, keep up the good work!
I've also started research in that direction, decompiled HCTCanBus.apk with apktools and started looking at smali code.
(It's pretty readable to my surprise)
But soon I came to the conclusion that there is not much we can do from only the android side.
Canbox itself translates commands it gets from UART into CAN messages using custom firmware on the box. And that is the problem - we don't have access to it.
So, to extend the functionality of "HU-CanBox-Car" system we would need to re-engineer not only CanBox hardware (I've seen some reverse-engineered schematics laying around the forum somewhere) but also it's firmware. A hell of a lot of work, if you ask me...
PS: I personally own Citroen DS5 with HU from Peugeot 508, PX6 platform 4G/64G and PA-SS canbox module. The good thing that almost everything working oob. The sad thing is my pretty "analog" dash clock are not working - That's why I start digging into this, just to find that Canbox App ignores the Time changes completely (e/g not sending to CanBox any information on Clock updates)
Hi All,
I have been doing work on this already, see my post's here, we already have the canbus apk sources.
https://forum.xda-developers.com/showpost.php?p=81859661
darkspr1te
Hi, totally new on this just a questions with a new head unit 8227L and steering control. My car is a jeep compass 2008, the android unit os 9.1 XY Auto 3.3 seems to have some factory set options with can bus for many models but not for the jeep compass, I already identify the cables can high and low and imagine they need to be connected to key 1 and key 2 on the head unit but at the moment no luck with the right can bus selection, any ideas?
Hector114 said:
Hi, totally new on this just a questions with a new head unit 8227L and steering control. My car is a jeep compass 2008, the android unit os 9.1 XY Auto 3.3 seems to have some factory set options with can bus for many models but not for the jeep compass, I already identify the cables can high and low and imagine they need to be connected to key 1 and key 2 on the head unit but at the moment no luck with the right can bus selection, any ideas?
Click to expand...
Click to collapse
Is it an MTCD and is the question related to canbus reverse engineering or solving a problem with your headunit.
No, 8227L units are not MTCD/E.

Categories

Resources