**** BEGIN LOGGING AT Thu May 28 03:00:05 2020 May 28 03:00:50 It used to have a package from neurodebian but it is now outdated. May 28 03:09:53 But...the psychopy will not work on the BBB. Dang. May 28 03:10:00 Off to find a way. May 28 03:33:40 Oh well. The psychopy people, I think, have not ported the library to python3. May 28 03:33:41 Dang. May 28 03:50:31 neurodebian works, though! May 28 04:09:38 In the python2 docs. of psychopy, they have a section dedicated to eye tracking. May 28 09:56:54 Hello Community, I am trying to configure hostapd file for 5GHz wifi band, but somehow can not configure to a/n/ac. May 28 10:59:52 Hello, I am trying to make adafruit-BBIO work on the BBGW and I am trying to copy my requirements.txt file into a venv env. May 28 11:00:07 I am getting errors b/c of rcpy. May 28 11:00:21 My system cannot figure out why it is there or if it is used. May 28 11:01:23 you're being waaaay too vague. make a pastebin showing what you're doing (copy-paste a transcript of your terminal session including the errors you're getting in your face) along with this requirements.txt May 28 11:01:27 "No Matching Distribution found for rcpy==0.5.1. May 28 11:01:35 Okay. May 28 11:01:48 you're trying to use the roboticscape library on a BBGW ? May 28 11:02:19 It just seems it is installed for some reason. I did not install it. May 28 11:03:48 looks like rcpy 0.5.1 was never released: https://pypi.org/project/rcpy/#history May 28 11:04:09 anyway, start by doing what I just said May 28 11:04:30 https://pastebin.com/TjcX446j May 28 11:04:40 Okay. May 28 11:05:38 yeah I'm not surprised that doesn't work May 28 11:06:53 I'm guessing there's some git version of rcpy installed (either by default or because you installed it yourself) and you're now trying to recreate that environment based on a requirements.txt file, which only works for packages that can be installed from pypi May 28 11:07:14 Okay. May 28 11:08:17 the unreleased rcpy you have installed is saying it's 0.5.1 (except it's not a released version thereof), so your requirements.txt (which you haven't shared yet) contains a request for "rcpy 0.5.1", and that's not installable since no such version of rcpy has ever been released to pipy May 28 11:08:22 *pypi May 28 11:08:36 Right. May 28 11:08:40 so just remove that line from your requirements.txt May 28 11:08:44 Okay. May 28 11:08:51 why are you doing this exactly anyway? May 28 11:09:20 you're trying to recreate your venv on the BBGW ? May 28 11:09:27 I am making sure things work in a venv and system wide. May 28 11:09:29 why not just copy the thing over? May 28 11:09:35 I could. May 28 11:09:37 why use a venv anyway? May 28 11:10:14 also, iirc adafruit-bbio is already installed current images by default May 28 11:10:25 Right...so. May 28 11:10:28 This is why. May 28 11:10:48 I cannot get the adafruit-bbio library to work in my venv for now. May 28 11:11:00 why not? May 28 11:11:08 I do not know. May 28 11:11:38 what did you try? what error are you getting? share with pastebin May 28 11:12:27 https://pastebin.com/TjcX446j May 28 11:12:31 instead of trying to recreate everything you ever did in your venv (and who knows what that is), maybe you should actually examine the requirements.txt file (which you haven't shared yet) to see whether you actually have use for all that crap May 28 11:12:43 yeah I explained why this doesn't work May 28 11:12:45 Oh. May 28 11:12:46 Okay. May 28 11:12:50 but that has to do with rcpy, nothing with Adafruit_BBIO May 28 11:12:57 you haven't tried to install that May 28 11:13:22 (though you don't actually need to anyway since it's already installed on the system... though I don't know if that means it's also available in the venv) May 28 11:13:41 Right. My rcpy version is installed system wide like Adafruit-BBIO. May 28 11:13:51 It is not. May 28 11:14:07 The venv makes it so I cannot use system wide resources. May 28 11:14:21 It is another level of "secret" planning. May 28 11:14:24 Ha. May 28 11:14:27 I google python venv May 28 11:14:30 click on the first link May 28 11:14:36 https://docs.python.org/3/library/venv.html May 28 11:14:57 and what do I see: "--system-site-packages Give the virtual environment access to the system site-packages dir." May 28 11:15:07 https://pastebin.com/B0Sg5N5m May 28 11:15:08 Oh. May 28 11:15:12 Neat. May 28 11:15:23 that's a huge list May 28 11:15:46 you need all of this in your venv on the bbgw? May 28 11:16:25 No. But, I can use some of them. May 28 11:17:43 Is rcpy used by any other library for BBB related things or is it just for BBBlue stuff? May 28 11:17:55 BBBlue or roboticscape May 28 11:18:00 Okay. May 28 11:22:24 If it ain't fix it, do not broke. May 28 11:22:41 set_: https://pastebin.com/rXQHx3L7 May 28 11:23:10 there ya go, create a venv with --system-site-packages and you've fot Adafruit-BBIO and the magical rcpy 0.5.1 for free with no effort May 28 11:23:16 *you've got May 28 11:23:20 Okay. May 28 11:23:25 I tried that just now. May 28 11:23:31 I will test it real quickly. May 28 11:24:00 Yep. May 28 11:24:08 You got that right! May 28 11:24:11 Nice. May 28 11:24:30 I did not know that rcpy was still around. May 28 11:24:56 ... is there a replacement? May 28 11:25:05 oh right, it was kinda unmaintained May 28 11:25:23 I guess someone's still keeping it alive, sorta :P though not alive enough to submit it to pypi I guess May 28 11:25:32 btw why are you using an absolute path to pip3 ? May 28 11:25:39 Nice. May 28 11:25:51 Oh. May 28 11:26:29 When you say absolute path, I did b/c of the pip docs. May 28 11:26:40 Let me see if I can find that page. May 28 11:27:08 Here it is: https://pip.pypa.io/en/stable/reference/pip_freeze/#examples May 28 11:34:28 One reason of this whole ordeal is this idea. I want to get scipy on my BBGW. May 28 11:34:36 Sorry. scikit-learn. May 28 11:35:01 ah you're indeed allowed to use a venv's pip like that... okay, didn't know May 28 11:35:03 I got scipy on it to make the scikit-learn work. Now, I need to test to see if scikit-learn will install. May 28 11:35:14 (haven't really used python venvs yet) May 28 11:35:32 I started years ago but they came w/ so many "issues." May 28 11:35:40 I just picked it up again. May 28 11:36:17 sudo apt install python3-sklearn May 28 11:36:18 ? May 28 11:36:23 Yea. May 28 11:36:32 or is that too optimistic? May 28 11:36:40 But. it is outdated. I want to use their updated versions. May 28 11:36:45 Ha. May 28 11:36:47 I guess. May 28 11:37:12 For instance, the scipy never worked on the BBGW w/ the older images. May 28 11:37:25 Thus, I could never get scikit-learn to work. May 28 11:37:45 It might have been me but I could not never get it to work. May 28 11:39:54 looks like debian stable (buster) has v0.20.2 while debian testing (bullseye) and unstable (sid) have v0.22.2 May 28 11:40:02 Hmm. May 28 11:40:06 Let me check my version. May 28 11:40:20 0.23.1. May 28 11:40:26 I guess that is not so old. May 28 11:40:35 It worked! May 28 11:40:59 Now, onto brighter headaches! May 28 11:41:01 so yeah, v0.20.2 is a bit dated (2018-12-19), v0.22.2 is pretty recent (2020-02-28) May 28 11:41:13 Hmm. I have buster on my machine. May 28 11:41:18 you installed 0.23.1 using pip I guess? May 28 11:41:22 Yes. May 28 11:41:31 well, there ya go :) May 28 11:41:58 Nice. The issue w/ the pip3 install was that scipy would never fully install w/ pip3. May 28 11:42:16 Thus, I could not get the scikit-learn to install on the machines. May 28 11:42:34 but now you're using --system-site-packages so your venv has access to the scipy that's already installed on the system May 28 11:42:36 scipy is a dep. of scikit-learn. May 28 11:42:56 Right, sort of. I had scipy in that venv already. May 28 11:43:26 But, b/c of you, I now know what exactly --system-site-packages does. May 28 11:43:54 I used it like so: python3 -m venv Mort --system-site-packages. May 28 11:45:38 Then, I had to use pip3 freeze > requirements.txt. May 28 11:46:00 That put all my python3 modules in the requirements.txt. May 28 11:46:29 well you don't "have to use", it's just a convenience to get a list of everything that's installed in one place so you can (hopefully, not always as the rcpy incident shows) install it in another place May 28 11:47:19 Right or if you want to make something that works w/ current versioning work again, just install requirements.txt in a new location. May 28 11:48:01 beware though, the requirements.txt created by pip3 freeze uses exact version matches (==) May 28 11:48:19 so it will even downgrade packages to get things exactly the same as they were on your previous system May 28 11:48:26 Right. I thought that was the reasoning for using it. May 28 11:48:27 Oh. May 28 11:48:54 The exact versioning is why I wanted to use it. May 28 11:49:21 why is that desirable? generally it's a good idea to use the latest versions of things May 28 11:49:57 For instance, if I find that version==1.9.2 does not work but version==1.8.2 did, I can then revert back. May 28 11:50:35 Sometimes, things work and sometimes things do not work. This is esp. true in versioning from what I can tell. May 28 11:50:57 It is odd. Some people update while others just stop (for whatever reason). May 28 11:51:26 fair enough, but then you should probably just manually keep a requirements.txt containing the packages you want and your version requirements on them May 28 11:51:37 For instance, the Replicape people had a main contributor stop. Things got put on hold. I think that person eventually came back. May 28 11:51:47 and if you're a smart cookie, you'll add some comments to reminder yourself later _why_ you needed the packages or why you needed specific versions May 28 11:51:54 *to remind yourself May 28 11:51:56 Right! May 28 11:52:10 I am still working on the whole comments '#' thing. May 28 11:52:23 It is a task in itself. May 28 11:52:37 What, why, how? May 28 11:52:43 Ha. May 28 11:53:35 I have been trying to use different libraries from python3 to prove GenTooMan wrong but I think he was right. May 28 11:54:14 Digital Video needs to be stopped in order to process so it can then be dubbed/changed. May 28 11:55:33 I thought I could process what was stopped aside from an ongoing video clip being recorded. Nope. May 28 12:40:41 oh nice, Adafruit_BBIO fails to compile with the current images because they use -Werror and the gcc 8.3 on the new images had added a bunch of a new warnings May 28 12:43:47 zmatt that's a tough one, -Werror is a convenience option only. Checking for version information is probably advisable when doing something like that. May 28 12:48:47 use -Werror for internal projects and during development May 28 12:49:05 don't ship source code with -Werror enabled by default to users May 28 12:49:18 since it'll mean your project will randomly break depending on compiler version May 28 12:50:30 oh nice, Adafruit_BBIO apparently got warnings for strict aliasing violations.. so instead of fixing those or using -fno-strict-aliasing to simply not have to worry about it anymore, they just used -Wno-strict-aliasing to suppress the warnings May 28 12:50:45 idiots May 28 13:04:13 weird, according to the distutils source code flags from the CFLAGS environment variable are supposed to be appended at the end to ensure they override everything... but when I try it they actually end up super early in the gcc invocation May 28 13:53:09 OK got a small problem May 28 13:53:39 I am trying to move my verified serial connection to move through the BBB May 28 13:53:54 i am going through the MAX3232 which is working until the device May 28 13:54:12 the MAX3232 is powered by the 3.3V pin May 28 13:54:43 the MAX does not allow me to have the GND pin connected on from the device May 28 13:54:50 since the power is supplied by the BBB May 28 13:54:59 it seems I need that GND. May 28 13:55:20 I tried connecting with out it and the serial breaks when I was communicating via RS232 May 28 13:55:36 when I try to go through the MAX I cannot wire the GND pin so it does not work May 28 13:56:13 how can I power the MAX3232 by the BBB while having a GND pin connected from the device May 28 13:56:25 why can't you connect the gnd pin? May 28 13:56:48 because I am powering from the BBB and the PSU pins are connected May 28 13:56:58 like I could not power the board from both sides right ? May 28 13:57:11 * mru must be missing something May 28 13:57:11 power the MAX3232 May 28 13:57:14 lol May 28 13:57:25 I am not too clear May 28 13:57:35 barely understand the MAX2322 May 28 13:57:50 but I have 4 slots on each side of it May 28 13:57:57 1 for the TTL other for the serial May 28 13:58:10 2 of the slots are for coms Tx and Rx May 28 13:58:20 the other is + and - for the PSU May 28 13:59:20 on the TTL side I have all 4 wired up May 28 13:59:29 to protect the BBB due to the 3.3V level logic May 28 13:59:36 on the serial side I have the COMS wired May 28 13:59:43 but I leave the PSU blank May 28 13:59:47 which IC are you using? May 28 14:00:01 you've mentioned several MAXxxxx numbers May 28 14:00:22 i am not sure May 28 14:00:27 UART May 28 14:00:31 what does it say on the chip? May 28 14:01:15 not much on the chip May 28 14:01:23 RS232<->TTL May 28 14:01:31 HW027 May 28 14:01:34 does the chip not have a part number? May 28 14:01:44 you said MAX3232 May 28 14:01:48 yeah May 28 14:01:49 then you said MAX2322 May 28 14:01:55 that is what I bought May 28 14:01:59 that latter one is something completely different though May 28 14:02:05 what did you buy? May 28 14:02:15 do you have a link to the product you bought? May 28 14:04:46 he's using a max3232 breakout May 28 14:04:58 a very cheap breakout with no schematic or datasheet :P May 28 14:05:08 max3232 May 28 14:05:14 well, how are we supposed to help with that? May 28 14:05:20 lol May 28 14:05:27 do you have a picture of the thing? May 28 14:05:30 sure May 28 14:05:57 MattB0ne: note that the PSU connections on both sides are just tied together, according to the description anyway May 28 14:06:18 they probably did that to make it easier to accidently use it the wrong way around May 28 14:06:37 anyway I can incorporate a GND in my connection to the device May 28 14:06:54 "incorporate a GND" ? May 28 14:06:55 it appears to be necessary to work but I cannot incorporate with the MAX3232 May 28 14:07:01 ????? May 28 14:07:05 GND is absolutely required May 28 14:07:07 in the schematic for connection via RS232 May 28 14:07:15 I need the Tx, Rx and GND May 28 14:07:27 but the Max allows for just a Tx and Rx May 28 14:07:28 teh max3232 chip has one gnd and one vcc pin May 28 14:07:29 on right, that's one reason for the PSU pass-through May 28 14:07:37 you can use the ground pin on the other side May 28 14:07:40 ok May 28 14:07:41 (the "-") May 28 14:07:47 ok phew May 28 14:07:48 (which is a very awful way to label a ground) May 28 14:07:52 let me solder May 28 14:07:55 see how it goes May 28 14:08:18 MattB0ne: I'd suggest measuring the voltage on the I/O pins before connecting it to the BBB May 28 14:08:49 since if you "see how it goes" with the wrong pins connected to the BBB, that may the last thing your BBB will see May 28 14:10:12 the max3232 runs off a 3-5V supply and uses charge pumps to create the rs232 levels May 28 14:10:17 you could also spend $6 on the sparkfun max3232 breakout that allows you to solder on header for easy jumpering, has a schematic, and has very clear labeling May 28 14:11:14 mru: I think this was the one he has: http://www.hiletgo.com/ProductDetail/3433372.html May 28 14:12:13 how do people even find such crap? May 28 14:13:03 I have no idea May 28 14:13:18 and I don't mean just this thing May 28 14:13:54 Lack of experience searching for usable items? May 28 14:14:42 I have some things that fall into that category, and now I have more experience at it. (shrug) May 28 14:15:41 the one I found was: https://www.sparkfun.com/products/11189 ... the only complaint I have at first glance is that the photography sucks, on the first three photos it looks like it has surface-pads for your connection, while they're actually holes for a header but the lighting manages to conceal those complete... the last photo with a coin as backdrop finally makes the holes visible ;) May 28 14:28:50 it also wouldn't be difficult to make your own May 28 14:29:11 with a pin header suitable to plug directly into the beagle May 28 14:34:04 may need to make my own May 28 14:34:30 soldered the ground to the MAX and still cannot communicate May 28 14:34:42 I am going to try and check the pins May 28 14:34:49 volatage May 28 14:36:35 this is a kick in the ballz May 28 14:36:43 I thought I was over the hump May 28 14:36:59 did you have it working from a PC? May 28 14:37:02 yeah May 28 14:37:14 can you connect the PC to the beagle? May 28 14:37:29 yeah that is how I am testing May 28 14:38:50 ssh to beagle May 28 14:38:52 and send commands May 28 14:40:03 path of least resistance is to get this May 28 14:40:03 https://www.amazon.com/DEVMO-Connector-Converter-Equipment-Upgrades/dp/B07Y88QXN4/ref=sr_1_1_sspa?dchild=1&keywords=max3232&qid=1590676776&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExOFZNS05aWkNaT1RJJmVuY3J5cHRlZElkPUEwMjc4MzgyM0NBTjdCWE5QUktHNiZlbmNyeXB0ZWRBZElkPUEwNDc3MTQwMUxTQ1k3WDFZWkY1RSZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmV May 28 14:40:04 jdCZkb05vdExvZ0NsaWNrPXRydWU= May 28 14:40:08 has the port May 28 14:41:16 you can trim off all that crap from the amazon link, you know May 28 14:41:28 everything after the product code (B07Y88QXN4) May 28 14:42:00 did not know that May 28 14:42:21 the rest is just tracking junk May 28 14:43:53 that's what they said with satellites... May 28 14:59:37 MattB0ne: have you done any sort of loopback testing with that max3232 breakout? May 28 15:01:26 since it's so poorly documented you should really focus on making sure you know what's what on this thing. you might be able to simply examine the pcb to trace what pin of the max3232 goes where, you can measure voltages to hopefully identify what's rs232 and what's 3.3V serial May 28 15:01:43 there's all sorts of ways you could test the max3232 board standalone May 28 15:04:31 I doubt it's a multi-layer board so tracing the signals should be easy May 28 15:09:31 I have tested the Max3232 pretty extensively May 28 15:09:44 done loop back and what not May 28 15:10:50 how exactly, if you didn't even have a ground connection? May 28 15:11:01 or at least, were confused about how to connect ground May 28 15:11:09 (which is not a good sign) May 28 15:11:16 the loopback would still work May 28 15:11:35 if you connect only txd and rxd? seems unlikely May 28 15:11:49 the loopback worked in both instances May 28 15:11:51 but it depends on how exactly you wired it up May 28 15:11:57 connecting tx to rx would send the data back to yourself May 28 15:11:58 isn't that what loopback means? May 28 15:12:30 mru: yeah but you'd do a loopback on one side of the max3232, the other side still needs to connect to something, and that needs to include ground May 28 15:13:12 I was thinking the loopback test would be done without the remote thing connected May 28 15:13:22 just to validate the connection between the beagle and the max3232 May 28 15:13:38 what did I misunderstand this time? May 28 15:13:47 depends on what kind of loopback test May 28 15:13:56 you can perform a loopback test on either side of the max3232 May 28 15:14:21 sure, and neither would require you to connect anything to the ground pin May 28 15:14:36 I'm assuming gnd and vcc were connected to the beagle all along May 28 15:14:48 maybe I'm assuming too much May 28 15:14:59 yeah true, fair May 28 15:15:02 for power May 28 15:15:49 but you could still do a loopback test with txd->rxd on the low voltage side and the RS232 side connected to a PC May 28 15:15:55 while powered from the BBB May 28 15:17:20 MattB0ne: anyway, make sure everything is properly grounded together at all times, you absolutely need that (and broken ground connection can cause damage, depending on the circumstances) May 28 15:19:09 ok May 28 15:21:14 when you say grounded together May 28 15:21:25 what do you mean May 28 15:21:37 I am using two grounds one on the device and one on the BBB May 28 15:22:24 BBB ground, max3232 ground, device ground, they should all be the same net (i.e. connected together, directly or indirectly) May 28 15:22:36 ok I am not doing that May 28 15:22:40 I need to May 28 15:22:44 ?? May 28 15:22:50 how did you connect it? May 28 15:23:02 i am using GNDC from the device on the Serial side May 28 15:23:12 and the BBB GND on the TTL side May 28 15:23:14 connected to May 28 15:23:15 ? May 28 15:23:32 GNDC to Serial - May 28 15:23:39 GND BBB to TTL - May 28 15:23:45 nothing really joining them May 28 15:23:48 that's the same thing, there's no "Serial -" / "TTL -" May 28 15:23:51 there's just ground May 28 15:23:55 the max3232 has only one ground May 28 15:24:21 which is the "-" May 28 15:24:31 so I have two ports for it then May 28 15:24:42 like I said last time (more than once) and said quite recently today: the two power supply connections on your weird little breakout are, according to the webpage, simply connected together May 28 15:24:53 right May 28 15:25:01 but I need the 3.3V from the BBB May 28 15:25:02 there's also nothing else it could possibly do since the max3232 has one ground pin and one supply pin May 28 15:25:09 so I used both the 3.3V and GND from the BBB May 28 15:25:15 yes May 28 15:25:20 but that does not work May 28 15:25:22 GND is GND (for everyone) May 28 15:25:28 3.3V from BBB is the supply for the max3232 May 28 15:25:33 right May 28 15:26:00 you have a multimeter? to test continuity? May 28 15:26:30 yes I can do that May 28 15:27:38 with the BBB <-> max3232 <-> EM-100 connection in place (to the best of your ability/understanding), but nothing else connected (no USB, no power) May 28 15:28:00 set multimeter to measure continuity (with beeeep) May 28 15:28:10 stick one end in a random GND pin of the BBB May 28 15:28:47 confirm it beeps on the MAX3232 breakout's "-" pins (both of them) and therefore also on the EM-100 GND May 28 15:30:11 you could also just test the max3232 breakout by itself: confirm the two "-" pins are in fact connected together, likewise for the two "+" pins May 28 15:34:26 they are May 28 15:34:53 maybe I use the + from the BBB and the - from the device May 28 15:35:10 so if one "-" pin connects to BBB GND and the other "-" connects to EM-100 GNDC then that means all grounds are connected together, as they're required to be May 28 15:35:21 ok May 28 15:35:30 let me plug that in May 28 15:37:16 I cannot emphasize this enough: everything here _needs_ to have the same gound. the ground of the BBB, the ground of the max3232, the (signal-)ground of the EM-100, they _MUST_ be connected in some way or another May 28 15:37:34 since all voltages are defined relative to GND May 28 15:37:51 if there's no agreement on what GND is, then there's no agreement on what any voltages are May 28 15:38:07 nothing will work, smoke may be released May 28 15:39:47 anyway, go analyze stuff, go measure stuff. think about what's supposed to happen and how you can confirm that it is happened and if not, where things are going wrong May 28 15:40:10 here's a summary of how the max3232 behaves, for reference: https://pastebin.com/bCiDrVCf May 28 15:41:15 (note that the max3232 has two drivers and two receivers, but presumably your breakout only lets you use one of them?) May 28 15:41:29 anyway, I got stuff to do May 28 15:41:49 yeah I will read up a bit May 28 15:42:04 basically at some point the gnds need to come together May 28 15:42:09 a global ground May 28 15:42:16 I do not have that May 28 15:42:40 though when hooked up to my PC May 28 15:42:54 my PC i guess dictated it May 28 15:43:05 whatever need a break May 28 15:46:42 global ground, unless you're a flat earther, then you need a ground plane May 28 15:53:59 MattB0ne: it's starting to get really annoying to have to keep repeating this: the whole point of the exercise I just had you do what to show that you _DO_ have a common ground. at least you do for how I interpret what you described, as well as any even remotely sane way of wiring things up May 28 15:54:52 unless you stuck a wire into a flowerpot with some earth in it and said "there, now it's grounded" May 28 15:55:12 (audiophools do more or less that) May 28 15:58:26 * GenTooMan tries not to shake his head so he doesn't feel it rattle. May 28 16:01:31 anyway, I'm off May 28 16:44:33 lol May 28 16:47:15 thanks for the help zmatt May 28 17:04:04 zmatt: that's not grounded - that's Earth'd :P May 28 17:04:12 *groan* May 28 17:13:49 m May 28 18:01:32 m2u k May 28 19:43:17 can a dmtimer do capture and pwm at the same time? May 28 19:45:41 looks like... May 28 19:45:50 that could be convenient May 28 19:47:07 I'm looking for a way to produce a smoothed 1pps output with less jitter than what is available from the GPS timesignal... May 28 19:57:45 so, since the OCXO clock drives tclkin, I could program TMAR to always advance 10e6 counts when a match occurs, creating a "virtual" 1pps source. This would then output a trigger pulse on the PWM output... May 28 20:00:48 moreover, since the capture input of the timer is connected to the GPS timesignal, I could use that difference to phase-align the OCXO so that virtual and the actual pps signal clock in at the same time... May 28 20:01:26 hmmmm May 28 20:08:01 How do I get SPI working on a beaglebone ai? May 28 20:11:34 So far, I copied am5729-beagleboneai-roboticscape.dtb into am5729-beagleboneai.dtb May 28 20:12:21 I see a spidev1.0, and spidev1.1 in the /dev folder. May 28 20:14:02 Any read so far on spidev1.0 is just 0's. I am using P9_17 (cs), P9_18 (mosi), P9_21 (miso), P9_22 (sclk)( May 28 20:14:52 Compared to normal bbb, the mosi/miso have swapped. I tried switching those pins too to no effect May 28 20:16:28 using latest 10.3 build of Debian on bbai May 28 20:20:02 nope, useless. May 28 20:20:56 the pwm output will always pulse or trigger on internal overflow :-( No way to just emit a pulse when a match occurs May 28 20:21:29 how much jitter is there in the pps signal, and much do you want it reduced? May 28 20:34:53 mru: some 10ns or so, it depends a bit on the internal clock of the GPS receiver May 28 20:35:22 is 10 ns the jitter from the gps? May 28 20:35:48 mru: thing is, the timepulse output is always synchronous to the internal clock, so obviously there is a quantization error May 28 20:36:11 yes, but what do do you have and what do you need? May 28 20:36:17 I can't read your mind May 28 20:37:00 I actually want two things: a 1PPS output that has less jitter than what the GPS can deliver, May 28 20:37:12 right, but how much jitter can you tolerate? May 28 20:37:48 1ns is certainly in reach... May 28 20:38:08 how can you now know what you want? May 28 20:38:14 or need, rather May 28 20:38:16 it's not about what is tolerable but what can be achieved May 28 20:38:34 start with a wish list May 28 20:38:44 and don't say zero May 28 20:38:52 the second thing is, I want pps events for timekeeping even without GPS, for the holdover case May 28 20:39:23 I think I can achieve that with the compare mode May 28 20:41:12 there are nice ICs for exactly this purpose May 28 20:41:21 here's one: https://www.ti.com/product/LMK05318 May 28 20:50:26 using counters and timers you'll be limited by the resolution of their clock May 28 20:57:10 maybe, but I have a 56ps resolution interpolator that can do the fine tuning, so I need the timers only for the coarse stuff May 28 20:59:05 on the timer side I can live with 100ns resolution easily, the idea is to phase-lock the 10MHz ocxo clock to the time signal from the GPS as closely as possible. Then, every timer event will be syncronous to the GPS time. May 28 21:01:27 what's this interpolator? May 28 21:01:33 TDC7200 May 28 21:02:22 what's the context of all this? May 28 21:02:36 a gpsdo that doubles as a ptp / ntp server May 28 21:05:31 so you have a gps with pps output? May 28 21:06:14 yep, I've integrated a ublox m8t module May 28 21:06:35 and this pps output has more jitter than you like? May 28 21:07:42 definitely ;) May 28 21:07:53 how much, roughly? May 28 21:08:24 +/- 5ns or so May 28 21:08:43 after quantization correction. May 28 21:08:59 the raw time signal has maybe +/- 20ns May 28 21:08:59 how does this tdc7200 fit in? May 28 21:09:38 it measures the time from the 1PPS gps time pulse to an arbitrary edge of a 10MHz clock May 28 21:10:21 can you vary the 10 MHz clock? May 28 21:10:39 well, precisely, to an arbitrary edge of a 500kHz clock that is divided-down from the 10MHz clock May 28 21:11:08 yep, that's the whole idea May 28 21:11:30 I pull and push the 10MHz clock until it's phase-locked to the 1PPS May 28 21:11:55 so it's a vcxo of some sort? May 28 21:12:17 yes, OCXO. A VCXO in a heated enclosure May 28 21:12:36 and how do you generate the control voltage? May 28 21:13:22 a dac. let me check which one I use May 28 21:14:01 why don't you just use an off the shelf jitter cleaner? May 28 21:15:09 there are units that will do everything May 28 21:15:16 they're used for telco clocks May 28 21:15:20 like the one I linked above May 28 21:15:28 a bit overkill for this application, perhaps May 28 21:16:00 other devices are available from ADI, silabs, IDT, ... May 28 21:16:15 hell, microchip probably has something May 28 21:16:19 not chips, modules with GPS and everything May 28 21:18:43 heh, that LMK chip is not cheap... May 28 21:19:54 those modules show up cheap on ebay May 28 21:20:22 and the phase noise is only -70dBc@1Hz... May 28 21:21:12 so, that what does that give me, 10MHz right? May 28 21:21:22 or, whatever I program it to deliver May 28 21:21:46 think 10MHz is standard May 28 21:21:58 that chip can output just about anything May 28 21:21:59 GPS by itself is jittery so you phase lock that to a LO May 28 21:22:23 that's precisely what a gpsdo does ;) May 28 21:23:03 yes, it is physics May 28 21:23:58 but still - what happens if the time signal from the GPS goes away because of bad coverage? May 28 21:24:30 you get a free-running oscillator May 28 21:24:34 it should maintain it with a random drift over time May 28 21:24:57 if you get a good OCXO, that should be a while May 28 21:25:13 or get a local atomic OX May 28 21:25:49 that I have already... the gpsdo I'm now making for the BBB is a spin-off of a Rb-GPSDO I did before... May 28 21:26:12 then you must know all this already :D May 28 21:26:24 yes, I've been leading you on all the time :-D May 28 21:26:43 honestly, I have no idea about these clock synchronizers May 28 21:27:02 I know of a commercial gpsdo that uses one, guy named Leo Bodnar sells them May 28 21:27:14 those new or used? May 28 21:27:24 new, his own design May 28 21:27:51 leobodnar.com May 28 22:41:36 zeml May 28 22:41:40 whoops May 28 22:41:57 you really should use longer passwords May 28 23:10:05 note to self: if you cannot figure out how to subtract unsigned ints, its time to sleep May 28 23:10:59 Thank you. May 28 23:11:27 Ha. May 28 23:57:10 heh? May 28 23:58:00 Fine. YOu are right. There is not time to act childish. Please forgive me. May 28 23:58:25 "No extremes, just no childish stuff. Got it" May 28 23:58:57 are you talking to yourself, or am I seeing only half a conversation? May 29 00:07:20 I am chatting w/ myself as usual. May 29 00:07:30 I am a brian. May 29 00:07:33 Ha. May 29 00:21:52 I know this is an old habit but I am learning right now how to make cat .gif files on my BBB. May 29 00:22:20 Send them w/ xoxo? <<< I still do not know what that means. May 29 00:23:55 I am messing w/ imageio on the BBB (NEON). May 29 00:31:54 GenTooMan: Look here! I think I may have unEarthed a creator that makes frames of video: https://imageio.readthedocs.io/en/stable/examples.html#grab-frames-from-your-webcam. May 29 00:41:56 SOunds to good to be true...it is. Nothing is python3 compatible. Blah. May 29 00:42:12 Well, not 3.7. May 29 00:51:29 I just received this error: Memory Error. May 29 00:51:41 Is there a way around this issue? May 29 00:57:33 I was installing wxpython and the memory error came up. First time! May 29 01:32:32 Hello, are there any backends that work w/ the BBB? **** ENDING LOGGING AT Fri May 29 02:59:57 2020