InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

car2pc toyota corolla 2005 not detected as cdc

 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Car integration
View previous topic :: View next topic  
Author Message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Tue Sep 04, 2007 11:21 am    Post subject: car2pc toyota corolla 2005 not detected as cdc Reply with quote

Hi,

I've got car2pc for Toyota, connected but not detected as CDC.
For some reason grom_console.exe crashesh on the laptop.
But hyperterminal work and shows me repeated ST ST....
Winamp plugin also seems to get the STop command, starts to play and stops in a less than a second.

What i've noticed is that at the moment i turn the key one position(don't know it's name) the COM appears and starts to send STs.
That's EVEN when the audio is turned OFF. Any solution to this problem?
The HU model is w58814.

I've managed to get the adaptor version libusbhu under linux and hacked
test program, it is VR017
Back to top
View user's profile Send private message
Lenke
Newbie


Joined: 12 Nov 2004
Posts: 12

PostPosted: Tue Sep 04, 2007 11:44 am    Post subject: Reply with quote

Are you using Vista OS ?
We will need to send you the new chip.
Please send your name and shipping address to info _ indashpc _ org
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Tue Sep 04, 2007 12:09 pm    Post subject: Reply with quote

No, no Vista. It's XP Professional SP1.
I guess it crashes becouse of the ftdi drivers. I've installed all-in-one usb odb2 reader, which comes w/ the same drivers, i.e. ftdi and the XP is using them now, but i'm not to much into windows.
Linux works ok Smile
I'll send them. Thank You.
Back to top
View user's profile Send private message
Kolin



Joined: 27 Jul 2007
Posts: 3

PostPosted: Thu Sep 13, 2007 9:26 am    Post subject: Reply with quote

Im having the same problem with the cd changer button not working, ive not tried hyperterminal yet, but il will and get back to you, have you had any luck in getting it to work?

Cheers,
Kolin
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Fri Sep 14, 2007 12:52 am    Post subject: Reply with quote

Kolin wrote:
Im having the same problem with the cd changer button not working, ive not tried hyperterminal yet, but il will and get back to you, have you had any luck in getting it to work?

Cheers,
Kolin


Hi, Kolin!

Not yet, i'm waiting for a chip upgrade. I should get it by the end of this month.
I'll post when i make an advancement.

have fun,
alex
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Fri Mar 21, 2008 3:36 am    Post subject: little advance Reply with quote

After the last chip upgrade, CDC gets detected but switching to it from cd/fm doesn't work.
The following C program reads wierd data from the adapter(i have some problem with the attachments)

#include <errno.h>
#include <stdlib.h>
#include <sys/poll.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <string.h>



/*
TRXXX track number was changed to XXX (in/out)
DSXXX disk number was changed to XXX (in/out)
PL{0|1}\n play started (1) or stopped (0) (in)
PA{0|1}\n pause was turned on (1) or off (0) (in)
FF{0|1}\n fast forward was turned on (1) or off (0) (in)
FR{0|1}\n fast reverse was turned on (1) or off (0) (in)
NT next track button pressed (in)
PT previous track button was pressed (in)
ND next disk button pressed (in)
PD previous disk button was pressed (in)
MX{0|1} MIX button was pressed (in)
RP{0|1} REPEAT button was pressed (in)
SC{0|1} SCAN button was pressed (in)
TMHHMMSS Track time (out)
NM<STRING> Track name for those HU which supports text (out)
AL<STRING> Album name for those HU which supports text (out)
AR<STRING> Artist name for those HU which supports text (out)
DB{0|1} Turn off/on the debug mode. In that mode some additional info is coming from the car bus. Actual data depends on car stereo(out).
VR Return the firmware version (in/out)
SN{0|1} Turn the passthrough sound on/off(out)
*/

static int debug = 1;
static int debugfd = -1;
static void open_log()
{
debugfd = open("car2pc.log", O_CREAT|O_TRUNC|O_WRONLY);
}
static void logdata(unsigned char *buf, int len)
{
if (debugfd > -1)
write(debugfd, buf, len);
}

static void hexprint(unsigned char *buf, int len)
{
int i;
for(i=0; i < len; i++)
fprintf(stderr, "%02X(%c) ", buf[i], buf[i]);
fprintf(stderr, "\n");
}

#define BAUDRATE B9600
static int setport(int fd)
{
struct termios tio;
tcgetattr(fd, &tio);
cfmakeraw(&tio);
cfsetispeed(&tio, BAUDRATE);
cfsetospeed(&tio, BAUDRATE);
tio.c_cc[VMIN] = 3;
tio.c_cc[VTIME] = 1;
tcsetattr(fd, TCSANOW, &tio);
}
#if 0
static int setport(int fd)
{
struct termios tio;
tio.c_cflag = BAUDRATE | CRTSCTS | CS8 | CLOCAL | CREAD;
tio.c_iflag = IGNPAR;// | ICRNL;
tio.c_oflag = 0;
tio.c_lflag = 0;//ICANON;
tcflush(fd, TCIFLUSH);
tcsetattr(fd,TCSANOW,&tio);
return 1;
}
#endif
static int send_cmd(int fd, char *cmd, unsigned char len)
{
unsigned char buf[256];
int sz;
buf[0] = 0xff;
buf[1] = len;
sz = sprintf(buf+2, "%s", cmd);
return write(fd, buf, sz+2);
}

static void init_cmds(int fd)
{
send_cmd(fd, "VR", strlen("VR"));
send_cmd(fd, "DB1", strlen("DB1"));
send_cmd(fd, "NMHELLO", strlen("NMHELLO"));
}

static void handle_cmd(unsigned char *buf, int len)
{
char c[256];
unsigned l;
logdata(buf, len);
hexprint(buf, len);
if (*buf != 0xFF) {
fprintf(stderr, "Command don't start with 0xFF\n");
return;
}
memset(c,0, sizeof(c));
l = *(buf+1);
memcpy(c, buf+2, l);
fprintf(stdout, "%s\n", c);
}

static int do_work(int fd)
{
struct pollfd pfds[2];
char buf[256];
int rc;
pfds[0].fd = fd;
init_cmds(fd);
while (42) {
pfds[0].events = POLLIN|POLLPRI|POLLERR|POLLHUP|POLLNVAL;
pfds[0].revents = 0;
rc = poll(pfds, 1, 10000);
if (rc > 0) {
rc = read(fd, buf, sizeof(buf));
if (rc > 0) {
handle_cmd(buf, rc);
} if (rc == 0 ) {
fprintf(stderr, "EOF\n");
exit(0);
}
} else if (rc < 0)
{
fprintf(stderr, "Error %d(%s)\n", errno, strerror(errno));
exit(0);
}
};
}

int main(int argc, char **argv)
{
char *port;
int fd;
if (argc < 2) {
fprintf(stderr, "%s tty\n", argv[0]);
return -1;
}
port = argv[1];
fd = open(port, O_RDWR|O_NONBLOCK);
if (fd < 0) {
fprintf(stderr, "Can not open:[%s] %d(%s)\n",
port, errno, strerror(errno));
exit(0);
}
setport(fd);
open_log();
do_work(fd);
exit(0);
}

The data logged is as follows - hexdumped:
00000000 ff 55 03 02 00 01 fa ff 55 03 02 00 00 fb ff 55 |U....U....U|
00000010 03 02 00 01 fa ff 55 03 02 00 00 fb ff 55 03 02 |....U....U..|
00000020 00 01 fa ff 55 03 02 00 00 fb ff 55 03 02 00 01 |..U....U....|
00000030 fa ff 55 03 02 00 00 fb ff 55 03 02 00 01 fa ff |U....U....|
00000040 55 03 02 00 00 fb ff 55 03 02 00 01 fa ff 55 03 |U....U....U.|
00000050 02 00 00 fb ff 55 03 02 00 01 fa ff 55 03 02 00 |...U....U...|
00000060 00 fb ff 55 03 02 00 01 fa ff 55 03 02 00 00 fb |.U....U....|
00000070 ff 55 03 02 00 01 fa ff 55 03 02 00 00 fb ff 55 |U....U....U|
00000080 03 02 00 01 fa ff 55 03 02 00 00 fb ff 55 03 02 |....U....U..|
00000090 00 01 fa ff 55 03 02 00 00 fb ff 55 03 02 00 01 |..U....U....|
000000a0 fa ff 55 03 02 00 00 fb ff 55 03 02 00 01 fa ff |U....U....|
000000b0 55 03 02 00 00 fb ff 55 03 02 00 01 fa ff 55 03 |U....U....U.|
000000c0 02 00 00 fb ff 55 03 02 00 01 fa ff 55 03 02 00 |...U....U...|
000000d0 00 fb ff 55 03 02 00 01 fa ff 55 03 02 00 00 fb |.U....U....|
000000e0 ff 55 03 02 00 01 fa ff 55 03 02 00 00 fb 00 fb |U....U.....|
*
000001e0 ff 55 03 02 00 01 fa ff 55 03 02 00 00 fb ff 55 |U....U....U|
000001f0 03 02 00 01 fa ff 55 03 02 00 00 fb ff 55 03 02 |....U....U..|
00000200 00 01 fa ff 55 03 02 00 00 fb ff 55 03 02 00 01 |..U....U....|
00000210 fa ff 55 03 02 00 00 fb ff 55 03 02 00 01 fa ff |U....U....|
00000220 55 03 02 00 00 fb |U....|
00000226


any clues?

edit: Today tried the hutest ... got only
**
**
**
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Thu Mar 27, 2008 10:58 am    Post subject: Reply with quote

It looks like iPod chip. Can you please write to to support about it ?
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Mon Mar 31, 2008 3:23 am    Post subject: hi Reply with quote

i've emailed them. Would the detection work ok if i connect it to an ipod?

is there a list what commands are send over this portocol. i've found some on the net.
and what the adapter expects from the ipod ... i want to try to emulate one
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Wed Apr 16, 2008 3:11 am    Post subject: chip VR024 Reply with quote

Hi,

I've got a new chip.
This time the USB is ok, i can read the VR024 from it.
Nothing more, no ST ST as before.
But again it is not detected as CDC.
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Wed Jun 25, 2008 7:49 am    Post subject: Re: chip VR024 Reply with quote

Hi,

After several months with no response from the support email.
Any suggestions how can i help my self to get the adapter working?
One chip ipod is detected, other w/ usb is not.
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Sat Jul 26, 2008 5:48 am    Post subject: Update Reply with quote

Hi,

Got a new chip upgrade, VR025. BUT Again not detected.
If i send just the VR command i got VR025 and nothing more.
If i send for example NMHELLO it starts to give
ST
ST
ST
ST

just as before.

Regards,
alex
Back to top
View user's profile Send private message
zaxl
Newbie


Joined: 04 Sep 2007
Posts: 11

PostPosted: Thu Oct 30, 2008 10:10 am    Post subject: Re: Update Reply with quote

Recently i;ve had a HU replacement with brand new,
the cd failed so i got a replacement.

But again ST,ST,ST problem.
I notice that the HU and the adapter are powered different.
Depending on the key position. If this can make a difference,
should i try to power the adapter other way?

Still the only chip that gets detected sometimes is again the ipod one.

And one idea - i've seen that when i turn on the debug
it happens with VR17, newer do not show the debug for some reason.
I see the RDS messages, so the idea is:
Is it possible to pass the RDS info over the USB,
what is interesting is TMC information.
It can be parsed and used in navit for example.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Car integration All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group