Discuss EVDO PCMCIA Cards, ExpressCards, EVDO USB, PDAs, Phones, Coverage and Mobile Broadband Cards. Discuss Verizon and Sprint Coverage. CradlePoint CTR350, CTR500, PHS300, MBR1000, MBR1200, PHS300. Discuss Improving signal with 3Gstore Antennas and Amplifiers.
EVDOforums.com
Discussion forum for EVDO users
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Our sites Include: EVDO Info :: EVDO Forums :: EVDO Maps :: EVDO Blog :: 3Gstore.com

To purchase your EVDO Card / Antenna / Amplifier / Router from the EVDO Experts, just contact us!

KR1 and GPSd Technical Discussion

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Post new topic   Reply to topic    EVDOforums.com Forum Index -> Kyocera KR1 / KR2 Router Support Forum
View previous topic :: View next topic  
Author Message
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Fri Mar 10, 2006 9:11 pm    Post subject: Reply with quote

I have a first beta of firmware with gpsd plus telnetd, socat, and a busier busybox (look in /bin when you upgrade for all, but gzip, tar, find, sed, and many, many more).

http://homepage.mac.com/tz1/.Public/x1002.bix

Make sure you already know how to update firmware first, or check the threads about the new firmware and upgrading here first.

GPSD:

You need an adapter to your USB RS232 port (and it must be a 4800 baud standard NMEA GPS). The adapter is described in an earlier post.

If you run windows, you can use http://www.hw-group.com/products/hw_vsp/index_en.html to create a virutal serial port and point your GPS at the virtual port (you can use dyndns or the 192.168.0.1 port). For port 2947, you need to open a command window and use "echo r >comX:" where X is the number of the virtual com port to start the NMEA stream.

Most linux programs emit the R as necessary for gpsd. You can telnet to the port and do H and it will print a brief list of commands.

port 22947 is a direct passthrough, but only allows one connection. But it should allow for DGPS or setting up the GPS like enabling or disabling NMEA sentences.
Back to top
View user's profile Send private message
Michael
Site Admin


Joined: 13 Jan 2005
Posts: 5314
Location: Cary, IL

PostPosted: Fri Mar 10, 2006 9:16 pm    Post subject: Reply with quote

Just to confirm, you have taken the latest RK1002 firmware and applied these changes to that firmware?
_________________
EVDO :: EVDO News :: EVDO Antennas :: Buy Verizon :: Buy Sprint :: EVDO Amplifier
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Fri Mar 10, 2006 9:28 pm    Post subject: Reply with quote

Yes, the RK1002. In fact I haven't tried the plain version yet. I had to write tools to take apart and reassemble the bix images so it's mostly automated.
Back to top
View user's profile Send private message
Michael
Site Admin


Joined: 13 Jan 2005
Posts: 5314
Location: Cary, IL

PostPosted: Fri Mar 10, 2006 9:30 pm    Post subject: Reply with quote

Thanks, this is awesome.

I will give it a try this weekend, perhaps, even posting the info to this thread with a time, I will be driving around with my KR1 and everyone can watch the exact location via a GoogleMap.
_________________
EVDO :: EVDO News :: EVDO Antennas :: Buy Verizon :: Buy Sprint :: EVDO Amplifier
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
mysigp226
EVDO User


Joined: 26 Nov 2005
Posts: 42

PostPosted: Fri Mar 10, 2006 10:04 pm    Post subject: Reply with quote

Waiting for my KR1 from Michael and then I'll be happy to beta test. (experienced linux/windows admin)

Will be great to have gpsd running!
Back to top
View user's profile Send private message
Michael
Site Admin


Joined: 13 Jan 2005
Posts: 5314
Location: Cary, IL

PostPosted: Sat Mar 11, 2006 9:33 pm    Post subject: Reply with quote

Hello,

I can communicate with GPSd and ask it for the coordinates, but all I get is:

Code:
GPSD,P=0.000000 0.000000


So, I can communicate with the KR1 running GPSd (WOW!)

The KR1 is not communicating with my Garmin GPS PC 18 model with a USB to serial cable (one that works with a StompBox).

It is really overcast and raining, perhaps it is working and I just don't have a clear view above the rain clouds. I will try again tomorrow.

I have to say - VERY IMPRESSED (so far).
_________________
EVDO :: EVDO News :: EVDO Antennas :: Buy Verizon :: Buy Sprint :: EVDO Amplifier
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Michael
Site Admin


Joined: 13 Jan 2005
Posts: 5314
Location: Cary, IL

PostPosted: Sat Mar 11, 2006 10:19 pm    Post subject: Reply with quote

One more cool idea (shouldn't be too hard).

Taking your idea of mapping the GPSd stream to your desktop computer. It would be cool to accomplish the same thing using Route66 and Mac OS X. I don't think this will be very hard to do. Basically, we need to route the telnet GPSd data over to a local serial port that Route66 can "see".

The possibilities are endless.


Throw a KR1 + GPS into the car. Boot up Route66 on your Mac (or Windows PC), and watch the location, speed in real-time on a computer back in the office. Very powerful.
_________________
EVDO :: EVDO News :: EVDO Antennas :: Buy Verizon :: Buy Sprint :: EVDO Amplifier
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Sun Mar 12, 2006 10:51 am    Post subject: Reply with quote

You need a special serial cable to the diagnostic port as I described in the (much) earlier post.

The real USB port won't work. I don't quite know why but it will take some work.

The diagnostic port with two or three wires will.

If you type R, you should see NMEA streams if it is hooked up right.

I'll have to try route 66 - I have it somewhere, but didn't have a GPS I could use at the time. It may be as simple as "telnet (gpsinet) 22947 | /dev/serpipe" in a console window, after "mkfifo /dev/serpipe", and setting route66 to use /dev/serpipe.
Back to top
View user's profile Send private message
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Sun Mar 12, 2006 10:58 am    Post subject: Serial Cable Reply with quote

Cut apart a standard USB cable. This will go into the "diagnostic port".

The wire colors are normally a standard - red (+5), Black, (Ground), White and Green (USB).

Get a male RS232C DB9 connector like on most PCs.

Connect the black wire to pin 5, the green wire to pin 2 and (if you ever want to talk TO the GPS, the white wire to pin 3.

You can use a standard LED box to make sure.
Back to top
View user's profile Send private message
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Sun Mar 12, 2006 11:16 am    Post subject: Reply with quote

Quote:
The real USB port won't work. I don't quite know why but it will take some work.


What I meant is to either figure out exactly why, or to make it work. It also might require recompiling the kernel and/or loader (and I can't do that yet)

Also, if you get a second USB cable, the 5v from the phone port can power 5v GPS units like my GPS 16, and should work on the the 5v (LVS?) GPS 18.

The GPS needs to be set for 4800 baud, which is the standard speed (though the 5Hz version of the GPS 18 defaults to 19200, and can even go 38400 - it would require a special version of gpsd to support that as I have one serial port open from bootup, though I should try to see if I can change baud after opening the port as long as I keep it open).
Back to top
View user's profile Send private message
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Sun Mar 12, 2006 12:39 pm    Post subject: Route66 Reply with quote

I have the 2004 version, and it only allows "real" serial ports.

I may have to find something or hack some kexts or plists to create a virtual serial port if someone hasn't already done so.
Back to top
View user's profile Send private message
Michael
Site Admin


Joined: 13 Jan 2005
Posts: 5314
Location: Cary, IL

PostPosted: Tue Mar 14, 2006 12:52 am    Post subject: Re: gpsmux success Reply with quote

tz1 wrote:
I'm using the internel CON3 connector and a null modem adapter to my Garmin 18 PC. I see the the nema strings. I setup a virtual server to the port (2947) and I could telent in over the EVDO card.


tz1,

Anyway to get this working with the "phone port" or the 2nd debug USB port? Most people are not going to want to crack open the KR1, make a cable and hook up to the Garmin. It would be perfect to make it work with one of the USB ports. We tried playing with the phone USB port - but the KR1 tried recognizing our USB to Serial Adapter as a "phone".
_________________
EVDO :: EVDO News :: EVDO Antennas :: Buy Verizon :: Buy Sprint :: EVDO Amplifier
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Tue Mar 14, 2006 8:30 am    Post subject: Reply with quote

I need to be clearer.

1. The "2nd debug USB port" (called the "diagnostic port" in the KR1 docs) is NOT a USB port but an RS232 serial port with the TX and RX pins from the internal COM3 connector brought out to the USB data pins.

That is what I am using. I've already said how to construct the cable - take an existing USB cable that would plug into the "diagnostic" port, cut it and expose the green, white, and black wires, and connect them to a DB9 (typically male to imitate the PC) connector, pins 2, 3, and 5 respectively. Attach that to the GPS.

My KR1 has been reassembled for some time. Between telnetd and this connector I don't need internal access.

2. The Phone port is real USB, but I tried an IOGear USB to serial adaptor (a very vanilla USB to Serial device) and it didn't allow communications though was recognized and I could set the baud rate. Something deeper is going on and it might take some time (or a Kernel recompile or module which I can't do yet) to make this work. Which adaptor were you using? The KR1 might do better with it.

I've put up a compiled version of microcom which you can tftp to the KR1 (chmod +x under ash, or I think chmod 755 under sash) and run to see if you can do actual communications:

microcom home page: http://microcom.port5.com/

KR1 version: http://homepage.mac.com/tz1/.Public/microcom
Back to top
View user's profile Send private message
mysigp226
EVDO User


Joined: 26 Nov 2005
Posts: 42

PostPosted: Tue Mar 14, 2006 1:29 pm    Post subject: Reply with quote

Just so it's clear (and I don't have the KR1 yet...MIKE!!! Smile )

Step 1: Crack the KR1 case
Step 2: Plug in a standard USB cable to the 'diagnostic port'
Step 3: Run the cable out of the case and put the case back together
Step 4: Cut the end off the USB cable
Step 5: Wire the cut end to a DB9 serial as described above
Step 6: Plug in DB9 to GPS
Back to top
View user's profile Send private message
tz1
EVDO Junkie


Joined: 29 Sep 2005
Posts: 509
Location: http://kr1gps.dyndns.org:8888/

PostPosted: Tue Mar 14, 2006 1:46 pm    Post subject: Reply with quote

No cracking, unscrewing, or other opening of the case is necessary.

The diagnostic port is the "other" USB port with a black plastic cover right next to the phone port.

You don't have to do steps 1-3.

Start with your step 4...

Step 7: Plug the RS232-USB-connector cable into the "diagnostic" port (after removing the plastic cover) on the KR1.

and maybe (if it is fresh out of the box)

Step 8: Install and configure the KR1 normally as per instructions so your computer works with it.
Step 9: "upgrade" the firmware to one of the GPS versions.

Then you just need to make a connection from the gpsd or passthrough TCP port on the router (either the remote evdo port, typically via dyndns, or the 192.168.0.1 or whatever port for local wireless or ethernet) to your application. I've mentioned a few ways to do this such as a virtual serial port program.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    EVDOforums.com Forum Index -> Kyocera KR1 / KR2 Router Support Forum All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 3 of 8

 
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







Buy from the 3G Experts @ 3Gstore.com


CradlePoint MBR1200 $269.99


Sprint MiFi $59.99


CTR500 $179.99

MBR1000 $189.99


CTR350 $89.99


PHS300 $159.99


Sprint 598U - Free


Sprint Rev A ExpressCard: Merlin EX720 - Free


Purchase an EVDO Booster Antenna


Purchase an EVDO Amplifier


Your Mac EVDO Experts









EVDO Antenna Booster





Digg Us :: del.icio.us :: technorati :: furl

4G :: 4G Forums :: PHS300 :: MBR1000 :: Novatel Ovation U760 :: Verizon USB760 :: CBA250 :: MBR800 :: 598U :: MBR1200 :: WiPipe Central :: U760 :: MP3450i