**** BEGIN LOGGING AT Mon May 09 02:59:57 2022 May 09 06:34:22 Hello...I am trying to use /dev/ttyS2 for gpsmon. I cannot get it to work with the gpsd daemon either. May 09 06:34:30 Has someone come across this issue? May 09 06:35:09 gpsd is saying that /dev/ttyS2 is already in use. Does config-pin get in the way of specific daemons when using it? May 09 06:36:32 gpsmon:ERROR: SER: /dev/ttyS2 already opened by another process <<< This is the error in case someone has figured it out. May 09 06:52:28 My serial device is being used by another program...blah. May 09 07:15:38 set_: do you havesomething like modem manager running? May 09 07:19:55 Maybe May 09 07:19:58 I should check. May 09 07:20:06 I have wifi up and running. May 09 07:20:33 The GPS works but w/ gpsd on gpsmon /dev/ttyS2, I get errors. I will check. May 09 07:41:52 modem manager is common May 09 07:42:02 seems to be kicked off bynetwork manager May 09 07:42:30 Oh. May 09 07:43:03 They are probably fighting now. So, network manager and gpsd do not work in cahoots for now. May 09 08:11:38 Yes. May 09 08:11:49 I have wifi up and running. May 09 08:14:48 ds2: Are you good at writing to files in python3? May 09 08:23:20 Anyway, I am writing serial data to a .txt file and everything has errored out so far on the output. May 09 09:25:06 I have the source running but the save is not happening. I am just writing a .txt file from serial. I looked up all sorts of ideas. May 09 09:25:10 None have worked just yet. May 09 09:27:42 https://pastebin.com/izTvdmu3 is the source. I am sure you can pinpoint the issue but "host" is not writing to the .txt file. May 09 09:45:45 It is working now. May 09 11:51:38 Anyway, this was the file I am trying to capture as a .txt file after publishing the info. to output: https://github.com/wadda/gps3/blob/master/gps3/gps3.py . May 09 11:55:55 ds2: I did get the gpsd command to work too. May 09 11:56:10 gpsmon "Not w/ /dev/ttyS2" is the key. May 09 11:56:18 So, just gpsmon runs a the script. May 09 13:03:59 set_: if you give gpsmon a device path then it will try to open that device directly instead of talking to gpsd, and that fails since it's already in use by gpsd May 09 13:09:00 Right! May 09 13:09:32 I understand now. I was going by their docs. and trying out things to test. May 09 13:09:54 Anyway...@zmatt. Thank you for replying. Until later! May 09 13:09:56 BBL! May 09 13:10:05 set_: and your make() function never gets called since you're calling this example after this "__init__" function which never returns May 09 13:10:42 also, names like __init__ are for special-purpose functions, you shouldn't name a function like that unless it actually *is* for that special purpose May 09 13:11:51 also, your make() function (if it were to get called) will fail to exit when it's supposed to because you're inside yet another infinite loop May 09 13:15:27 didn't you already have a working version of this script? why did you change to using the threaded mechanism? May 09 13:15:46 anyway, I'm at work, afk May 09 19:26:59 set_: no. May 09 23:30:41 @zmatt: yes and no. I did have a working script. May 09 23:30:53 No more. But now, their examples seem to work a bit. May 09 23:33:50 Now, I am trying to save their examples, some bits and pieces, but this time is when I will add in the script to handle .txt writing and appending. May 09 23:34:36 I know if I do not call make(), I do not receive anything. And even if I did call make(), nothing would happen. May 09 23:34:54 It is a harsh reality of terrible source I typed up so far. I am one night in so far! May 09 23:41:03 Basically, the .kml file for google earth is why I am trying to print to .txt output. May 09 23:41:48 Ever since Python3 changed from python to python3, I have had numerous occasions where the GPS does not read back when prompted. May 09 23:42:05 But...the file keeps running. Like it is waiting for input. I will keep trying. May 09 23:42:34 I tried 0b and just b but neither work so far. I tried to .format it w/ f-strings but nothing so far. May 09 23:43:12 So, it is up in the air at the moment. python-is-python3 is no longer available (I think). May 09 23:48:02 All the older source I have found that I changed a bit and used is now obsolete. I have not found any work arounds for python3 and this bytes business. I find specific on it only so often. May 09 23:48:20 Anyway, no issue. I just thought people may be throwing away something I could use. May 10 02:53:32 set_: thats gpsd3 library looks ancient, weird, and unmaintained May 10 02:54:23 a quick search yielded a python library called "gpsdclient" you could try, e.g. something like: https://pastebin.com/aqY93520 May 10 02:56:45 (untested) **** ENDING LOGGING AT Tue May 10 02:59:56 2022