Re: Progress and Wiki

From: Danny Norging <danny.norging_at_gmx.de>
Date: Mon, 23 Feb 2004 18:38:34 +0100

On Mon, 2004-02-23 at 18:17, Michael Opdenacker wrote:
> Hi Andrew,
>
> >Ah-hah, got it. I had to handle this stuff for Axim as well. I've added
> >the required cable detection stuff to h2200.c, however I'm not sure if
> >the signal I've used for cable detection will work. Can someone check
> >with HaRET if the following really works:
> >
> >a) First turn off the power to RS-232 transceiver. For this, issue a
> >"SET GPLR(80) 0" command.
> >b) Now print the state of the GPIO4: print "%d" GPLR(4). This should
> >give you a 0 if the serial cable is not plugged in.
> >c) Finally, if you plug in the serial cable, you should get a '1' from
> >the previous command.
> >
> >If all this works, its ok. If it doesn't, just comment for now the
> >SET_H2200_GPIO(RS232_ON ...) lines, and set GPIO80 default state to 80.
> >
> >
> It doesn't work, unfortunately. GPLR(4) is always set to 0, whether the
> serial cable is plugged in or not...
>
> :-{
>
> Michael

Hi,

getting a different result here... see this log (ipaq is connected via
irda)

ipaq_at_barney ~/dev $ telnet maggie 9999
Trying 192.168.0.5...
Connected to maggie.
Escape character is '^]'.
Welcome, this is HaRET running on WindowsCE v4.20
CPU is Intel XScale ARM arch 5TE revision 3 product 16 stepping 6
Running in system mode; minimal virtual address: 00010000, maximal:
7fffffff
Enter 'HELP' for a short command summary.

HaRET(1)# # have a look first
HaRET(2)# print "%d" GPLR(4)
0
HaRET(3)# SET GPLR(80) 0
HaRET(4)# print "%d" GPLR(4)
0
HaRET(5)# # plug in the serial cable
HaRET(6)# Terminated

ipaq_at_barney ~/dev $ telnet maggie 9999
Trying 192.168.0.5...
Connected to maggie.
Escape character is '^]'.
Welcome, this is HaRET running on WindowsCE v4.20
CPU is Intel XScale ARM arch 5TE revision 3 product 16 stepping 6
Running in system mode; minimal virtual address: 00010000, maximal:
7fffffff
Enter 'HELP' for a short command summary.

HaRET(1)# print "%d" GPLR(4)
1
HaRET(2)#

When I plug in the serial cable, activeSync terminates the irda
connection, but as you can see, when i reconnect (via irda) GPLR(4) is
indeed set to 1, as Andrew predicted.

Greetings
Danny
Received on Mon Feb 23 2004 - 17:43:47 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:19:25 EDT