set_ has joined #beagle
<set_> Okay, where were we? GenTooMan: Sorry for being curt earlier.
<set_> I have some things to 'accomplish.'
<set_> Forget it. This is too complicated to describe for now.
starblue2 has joined #beagle
starblue1 has quit [Ping timeout: 240 seconds]
<set_> Anyway. I should try again soon.
<set_> It is probably that BB-UART2-00A0.dtbo.
<set_> W/out that darn blob file, I would be held renderless.
buckket has quit [Quit: buckket]
buckket has joined #beagle
vagrantc has quit [Quit: leaving]
buzzmarshall has quit [Quit: Konversation terminated!]
ikarso has joined #beagle
lucascastro has quit [Ping timeout: 252 seconds]
otisolsen70 has joined #beagle
tacokoneko has joined #beagle
Shadyman has quit [Remote host closed the connection]
NoMaD69 has joined #beagle
NoMaD69 has quit [Client Quit]
xet7 has quit [Remote host closed the connection]
xet7 has joined #beagle
xet7 has quit [Remote host closed the connection]
xet7 has joined #beagle
otisolsen70 has quit [Quit: Leaving]
dyCrazyEd has joined #beagle
set_ has quit [Ping timeout: 258 seconds]
GenTooMan has quit [Ping timeout: 256 seconds]
tacokoneko has quit [Remote host closed the connection]
GenTooMan has joined #beagle
Stanto has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
charlie5 has quit [Ping timeout: 258 seconds]
charlie5 has joined #beagle
buzzmarshall has joined #beagle
johanhenselmans has quit [Ping timeout: 268 seconds]
johanhenselmans has joined #beagle
lucascastro has joined #beagle
ketas has quit [Ping timeout: 245 seconds]
<CCFL_Man> it looks like there are a few pulse per second gpio implementations
ketas has joined #beagle
<CCFL_Man> and quite a bit more uarts
vagrantc has joined #beagle
samael has joined #beagle
<zmatt> CCFL_Man: ?
<zmatt> CCFL_Man: using gpios to implement anything timing-sensitive (with any sort of reliability) is pretty much impossible under linux, though PRU can do it if necessary... generally speaking using hardware peripherals would be preferred to using gpios
zjason has quit [Read error: Connection reset by peer]
<zmatt> unless you meant something different from what you said
<zmatt> also when you say "pulse per second" you mean like a capture input? or pulse frequency measurement?
zjason has joined #beagle
<CCFL_Man> oh, ok. what i mean is a pulse per second signal from a GNSS receiver. the pps_gpio driver creates a pps device file for ntpd to use
<CCFL_Man> to discipline ntpd
<zmatt> the AM335x has hardware peripherals that can timestamp signal edges with 10ns resolution
<CCFL_Man> oh wow, that's pretty good
<zmatt> gpio, in comparison, will be shit
<CCFL_Man> how can i feed the signal into it?
<zmatt> a better question is whether there's any driver for it
<CCFL_Man> that's true
<zmatt> pins that can be used as such a capture input are P9.42 (eCAP 0) and P9.28 (eCAP 2)
* CCFL_Man makes a note of that
<zmatt> there are also four lower-resolution (24 MHz) capture inputs on P8.07-P8.10 (three of which have alternative mux options on P9.19, P9.20, P9.41)
* CCFL_Man also notes that
<CCFL_Man> i wonder if the pps driver supports this
<zmatt> I've also written a driver that allows an eCAP timer to be used as system clock source for linux (instead of the default 24 MHz timer), I did that because we were noticing a continuous drift between the raw monotonic system time and the hardware timestamps on Precision Time Protocol network packets, caused by linux approximating 1GHz/24MHz as a fixed-point number
<zmatt> (and we're also doing some timestamping stuff in PRUSS, so having linux use the PRU eCAP as clocksource for the raw monotonic time makes it easy to convert raw eCAP timestamps from PRU to linux's raw monotonic timebase)
<CCFL_Man> i've never used PTP. what was your frequency source?
<zmatt> we just cared about synchronizing devices with each other, not with an absolute frequency reference
<zmatt> specifically we use it to tightly synchronize audio outputs on different devices; we use PRU to create audio timestamps (since the ALSA timestamps were too shit to be usable) expressed in the PRU eCAP timebase which can be converted to linux raw monotonic timebase (thanks to the eCAP driver I wrote), which is also used as the PTP packet timestamping timebase (which also required some patches to get ...
<zmatt> ...working properly), which allows these timestamps to be converted to the PTP timebase shared between devices
<zmatt> and this combined with an asynchronous samplerate converter allows different devices to play audio synchronized to within a fraction of a sample
set_ has joined #beagle
<CCFL_Man> wow, were you logging data?
<zmatt> ?
<CCFL_Man> what audio signals were they?
<zmatt> just... audio. we're a speaker company
<CCFL_Man> oh, ok
samael has quit [Ping timeout: 240 seconds]
charlie5 has quit [Ping timeout: 272 seconds]
<CCFL_Man> the software i use is called vlfrx-tools. it's a vlf SDR software suite that uses the soundcard as data acquisition. the program called vtcard reads data from the alsa/oss device as a specified sample rate and timestamps according to the system clock. vttime adjusts the timestamps according to a gps pps on the left or right channel. it uses a few methods to "find" the pulse
charlie5 has joined #beagle
<CCFL_Man> see vtcard and vttime sections
<zmatt> using an extra audio channel for pps sounds like a clever way of being able to very accurately timestamp the captured audio
<zmatt> (assuming you have an accurate source for a pps signal)
<CCFL_Man> it really is clever! you can achieve 50ns of UT with his software and a good GNSS receiver
<CCFL_Man> that's why i'm working on the "soundcard"
<zmatt> synchronizing the system time to pps would definitely be much harder, and like I said the audio timestamps from alsa are also crap (on the AM335x at least)
<zmatt> iirc dozens of _micro_seconds of jitter
<zmatt> probably with outliers that are even larger, I don't remember the exact numbers
<CCFL_Man> yeah, that's why vttime works so well. it even works on really crappy soundcards too
<CCFL_Man> with vlf receivers at distant locations, you can correlate events very accurately
<zmatt> yep, makes sense
<CCFL_Man> from what i've researched, the TI ADC seems to have the best performance
<CCFL_Man> between cirrus logic and akm
<CCFL_Man> so i'll be using the second channel for the gps pps