×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Help with GPSD

  • Posts: 45
  • Thank you received: 1

Replied by Dana Tousley on topic Help with GPSD

Well, I've spent a lot of time under the hood and learned how to write UDEV rules. Unfortunately I've also learned the hard way what NOT to do. I was trying to differentiate between my SkyWatcher AZ-EQ 5 GT, and a GlobalSat BU 353 S4. Ubuntu saw them both as Prolific PL2303 devices. The only differentiation was the USB device, exactly the thing I wanted to lock down. I could have made udev rules by bus number and device number, but I thought I'd get smart...

So I downloaded the Prolific EEPROM writer and tried to write a serial number, starting with the GPS. It wrote successfully, but did not show up as an attribute in udev. So here is where I made my fatal mistake. I thought I would change the product ID on one of them from 2303 to 2304. Surely they would now be different correct? They are, and Windows can't recognize a Prolific PL2304 and now the windows EEPROM writer can't write it back...

Udev isn't too happy about a Prolific PL2304 either. It's now a blinking brick that properly receives GPS satellite data, but can't send it anywhere.

So now I'm wiser, and hindsight being 20/20 thankful I hosed the $30 item rather than the $1300 one! I'll order another one, and I'll simply have to plug it into another port so it shows up on a different bus rather than just plugging it into the USB hub.
7 years 2 weeks ago #15152

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 57

Replied by Paweł on topic Help with GPSD

I suggest you do not give up. You should be able to modify the Linux driver to accept a different device ID. It should be fairly easy. The device table is usually at the top of the driver. Look also for the Linux writing app. Maybe there is one. It is usually easier to do such hacks in Linux. Regarding the device detection. You should be able to use info from GPSd to assign additional device links based on what GPSd detected as the gps and assign /Dev/scope to the other device.
7 years 2 weeks ago #15159

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 1

Replied by Dana Tousley on topic Help with GPSD

I'll try. I already edited the .inf file with the Windows drivers and it still didn't work - but it's real common for the Prolific driver to not work in Windows as it is.
7 years 2 weeks ago #15162

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 1

Replied by Dana Tousley on topic Help with GPSD

I'm giving up. I've tried modifying both the Windows and Linux drivers - spent two hours under crystal clear skies last night trying to fix the Linux driver because it wouldn't see the mount either.

That GPS puck is permanently hosed and needs replacing. Lesson: if you don't know what you're doing, don't #$&# with it.

I'll get a new one and start over.
Last edit: 7 years 6 days ago by Dana Tousley.
7 years 6 days ago #15545

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 57

Replied by Paweł on topic Help with GPSD

What was the problem with Linux driver? It should just talk to the device you tell it to. Unfortunately it may be that writing broke some assumptions in the firmware and that will be difficult to fix.
7 years 6 days ago #15547

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 1

Replied by Dana Tousley on topic Help with GPSD

I changed an existing Vendor / Product ID (total of 4 bytes) to the one I had written into the GPS and the next time I tried connecting to mount - nothing. reloaded old driver - mount works again. Problem is I am extremely inexperienced with Linux and it takes me far longer than it should to look up even the simplest stuff.
7 years 5 days ago #15590

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 57

Replied by Paweł on topic Help with GPSD

So it works now? Or just the mount?
7 years 5 days ago #15592

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic Help with GPSD

Dana, you read Serial Port Mapping tutorial I presume? This is not suppose to take a lot of time, unless there is no information at all to distinguish between devices. In this case, I'd probably use "Auto-Search" and let it find the devices automatically.
7 years 5 days ago #15594

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 1

Replied by Dana Tousley on topic Help with GPSD

Just the mount works. GPS is in the trash. I will have to buy another one. When that arrives I will not plug it into my USB hub, I will have to plug it in to the USB on the other side of the laptop, so UDEV can differentiate between it and my mount by USB bus. Previously they were on the same bus and it was random as to which got recognized and given a name first. It's a Linux problem that windows somewhat shared. With Windows I had to be careful to always plug the same device into the same port to assign the same COM port.
7 years 5 days ago #15595

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 57

Replied by Paweł on topic Help with GPSD

Maybe you was too quick with the GPS. It is up to you but you can try to debug it a bit more. I simply doubt that it is totally toasted. Did it show up on the lsusb list? If it does the kernel and the core USB driver is *talking* to it and it is *responding*. Otherwise, if it is not there you are right - it is probably toasted.
7 years 5 days ago #15596

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 1

Replied by Dana Tousley on topic Help with GPSD

New gps puck
New udev rule to bind it to dev/globalsat (too many identical Prolific PL2303 serial thingamagigs)
Set gpsd device to dev/globalsat

Joy
┌───────────────────────────────────────────┐┌─────────────────────────────────┐
│ Time: 2017-04-16T02:00:10.000Z ││PRN: Elev: Azim: SNR: Used: │
│ Latitude: 42.xxxxxx N ││ 12 35 312 41 Y │
│ Longitude: 83.xxxxxx W ││ 6 82 280 34 Y │
│ Altitude: 1011.0 ft ││ 17 52 079 31 Y │
│ Speed: 0.6 mph ││ 19 69 049 31 Y │
│ Heading: 3.1 deg (true) ││ 2 39 243 28 Y │
│ Climb: 15.4 ft/min ││ 3 20 043 24 Y │
│ Status: 3D FIX (15 secs) ││ 24 18 268 25 Y │
│ Longitude Err: +/- 40 ft ││ 28 16 151 00 N │
│ Latitude Err: +/- 52 ft ││ 4 20 238 00 N │
│ Altitude Err: +/- 143 ft ││ 23 02 081 00 N │
│ Course Err: n/a ││ 135 21 237 00 N │
│ Speed Err: +/- 71 mph ││ │
│ Time offset: -0.737 ││ │
│ Grid Square: EN82ir ││ │
└───────────────────────────────────────────┘└─────────────────────────────────┘
,"epy":16.028,"epv":43.700,"track":274.5550,"speed":0.125,"climb":-0.011,"eps":3
2.06,"epc":87.40}
{"class":"TPV","device":"dev/globalsat","mode":3,"time":"2017-04-16T02:00:10.000
Z","ept":0.005,"lat":42.725089456,"lon":-83.302931171,"alt":308.160,"epx":12.345
,"epy":16.028,"epv":43.700,"track":3.1148,"speed":0.268,"climb":0.078,"eps":32.0
6,"epc":87.40}
6 years 11 months ago #16214

Please Log in or Create an account to join the conversation.

  • Posts: 535
  • Thank you received: 109

Replied by Jim on topic Help with GPSD

Is anyone noticing a problem with indi_gpsd where the timezone offset is not respecting daylight savings time? The UTC time is fine, but now our offset is 5, and indi_gpsd says offset 6. This is really confusing my mount on go-to.

Thanks
Jim
6 years 10 months ago #16715

Please Log in or Create an account to join the conversation.

Time to create page: 0.792 seconds