Paul Tagliamonte: Mode A (Part 9/12)
If you're looking for it, the intro to the PHY (layer 1) that this belongs at a high level and listing of the parts that make it up (including this one) is on the phy post.
| Attribute | Value | Description |
| Rate | 2.5 MHz | Sampling Rate / Bandwidth |
| LCG | 3149721335 | LCG "RNG" whitening constant (randomly selected) |
| Preamble | seq=16, order=4, count=2 | (this is as-written in the preamble post) |
| Modulation | QPSK/QAM-4 | 2 bits per data subcarrier |
| FFT Size | 64 | |
| Cyc Len | 16 | Cyclic Prefix length (16 IQ samples) |
| Symbols | 168 | Number of OFDM Symbols |
| LDPC Table | 802.3an | (this is as-written in the ldpc post) |
| Raw Bits | 14448 | 1806 bytes (168 symbols, 86 data bits per symbol) |
| LDPC Count | 7 | Number of packed LDPC encoded messages |
| Data Bits | 12061 | 1507 bytes |
Guard Bins
First up, let s place our guard bins.
As we ve already gone over, we re looking to clear some space right up against
the high and low end of the frequency range, so let s go ahead and do that:
I gave up the center bin (0 Hz) and 8 of the 64 bits on each side (1/4 of the
signal!) to give myself a bit of elbow room. This is perhaps definitely a bit
overkill, but it s been an extremely robust choice. If you multiply that
through, this accounts for 312.5 kHz of frequency domain padding at the high
and low end of the bandwidth, or 625.0 kHz of bandwidth which is not to be used.
Pilot Bins
Next up was the pilot bins. We ve already gone
over the purpose (and
use) of our pilots, but I ve found there to be an art
to the placement of the pilots. Interpolation between pilot bins has turned out
to be very reliable, but extrapolation, on the other hand, has been a major
pain, for reasons I don t fully understand yet.
My intent in placement was to pick out roughly even stretches of data bins
bracketed between pilots, with as few data subcarriers as practical outside
of a pilot (using extrapolation). I ve played a bit with my AGWN simulator(s),
as well as logging errors between two SDRs, and the configuration I have this
in has been fairly resillant (for whatever reason), and withstood a few rounds
of tweaking.
Data Bins
Almost as an afterthought all of the remaining bins become
data bins.
This puts the total number of data bins at 43, which, since Mode A carries data
in QPSK/QAM-4 (two bits per data subcarrier), means we can carry 86 bits of
data per OFDM symbol. That fairly modest capacity is largely due to the
modulation scheme (or fft size, but increasing that has been fraught) we re
using for Mode A but I ve made up for it by including 168 OFDM symbols
in a single burst in order to have enough data to carry IP traffic without
splitting the packet into two bursts.
With all that designed and on paper, we re ready to start to tackle the next
layer up our Layer 2, named, creatively, link .
Let s send some link layer data
Following along at home? Nice! As promised, I've put the full plan
copy-pasted from the pigeon source tree below so that no one has to feel
the need to transcribe this from the images above. Unlike most of the things
I've "left to the reader", manual transcription from images is not a
particularly useful task for anyone to do.
The following table is Mode A s OFDM Subcarrier Plan. This is in negative
first ordering (meaning the 0th member is the most negative fft bin,
and the Nth is the highest frequency fft bin).
SubcarrierPlan([
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Data,
Data,
Data,
Pilot(iq!(-1.0, 0.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(1.0, 0.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Guard,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(0.0, -1.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(0.0, 1.0)),
Data,
Data,
Data,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
])
Still following along at home? Nicer! I've put the
preamble sequence
promised previously
copy-pasted from the pigeon source tree below in case that's actually
important (I don't think it is, but...).
The following table is Mode A s frequency-domain preamble. This is, as above,
in negative first ordering. I don t actually think these values matter much
(at all)? but in case they do, here s what I have. I muck with these a lot
and haven t found many changes in quality of detection or frequency correction
yet.
[
IQ::new(0.0, 0.0),
IQ::new(0.0, 0.0),
IQ::polar((TAU / 13.0) * 2.0, 1.0),
IQ::polar((TAU / 13.0) * 3.0, 1.0),
IQ::polar((TAU / 13.0) * 4.0, 1.0),
IQ::polar((TAU / 13.0) * 5.0, 1.0),
IQ::polar((TAU / 13.0) * 6.0, 1.0),
IQ::polar((TAU / 13.0) * 7.0, 1.0),
IQ::polar((TAU / 13.0) * 8.0, 1.0),
IQ::polar((TAU / 13.0) * 9.0, 1.0),
IQ::polar((TAU / 13.0) * 10.0, 1.0),
IQ::polar((TAU / 13.0) * 11.0, 1.0),
IQ::polar((TAU / 13.0) * 12.0, 1.0),
IQ::polar((TAU / 13.0) * 13.0, 1.0),
IQ::new(0.0, 0.0),
IQ::new(0.0, 0.0),
]
Let s send some link layer data
My intent in placement was to pick out roughly even stretches of data bins
bracketed between pilots, with as few data subcarriers as practical outside
of a pilot (using extrapolation). I ve played a bit with my AGWN simulator(s),
as well as logging errors between two SDRs, and the configuration I have this
in has been fairly resillant (for whatever reason), and withstood a few rounds
of tweaking.
Data Bins
Almost as an afterthought all of the remaining bins become
data bins.
This puts the total number of data bins at 43, which, since Mode A carries data
in QPSK/QAM-4 (two bits per data subcarrier), means we can carry 86 bits of
data per OFDM symbol. That fairly modest capacity is largely due to the
modulation scheme (or fft size, but increasing that has been fraught) we re
using for Mode A but I ve made up for it by including 168 OFDM symbols
in a single burst in order to have enough data to carry IP traffic without
splitting the packet into two bursts.
With all that designed and on paper, we re ready to start to tackle the next
layer up our Layer 2, named, creatively, link .
Let s send some link layer data
Following along at home? Nice! As promised, I've put the full plan
copy-pasted from the pigeon source tree below so that no one has to feel
the need to transcribe this from the images above. Unlike most of the things
I've "left to the reader", manual transcription from images is not a
particularly useful task for anyone to do.
The following table is Mode A s OFDM Subcarrier Plan. This is in negative
first ordering (meaning the 0th member is the most negative fft bin,
and the Nth is the highest frequency fft bin).
SubcarrierPlan([
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Data,
Data,
Data,
Pilot(iq!(-1.0, 0.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(1.0, 0.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Guard,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(0.0, -1.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(0.0, 1.0)),
Data,
Data,
Data,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
])
Still following along at home? Nicer! I've put the
preamble sequence
promised previously
copy-pasted from the pigeon source tree below in case that's actually
important (I don't think it is, but...).
The following table is Mode A s frequency-domain preamble. This is, as above,
in negative first ordering. I don t actually think these values matter much
(at all)? but in case they do, here s what I have. I muck with these a lot
and haven t found many changes in quality of detection or frequency correction
yet.
[
IQ::new(0.0, 0.0),
IQ::new(0.0, 0.0),
IQ::polar((TAU / 13.0) * 2.0, 1.0),
IQ::polar((TAU / 13.0) * 3.0, 1.0),
IQ::polar((TAU / 13.0) * 4.0, 1.0),
IQ::polar((TAU / 13.0) * 5.0, 1.0),
IQ::polar((TAU / 13.0) * 6.0, 1.0),
IQ::polar((TAU / 13.0) * 7.0, 1.0),
IQ::polar((TAU / 13.0) * 8.0, 1.0),
IQ::polar((TAU / 13.0) * 9.0, 1.0),
IQ::polar((TAU / 13.0) * 10.0, 1.0),
IQ::polar((TAU / 13.0) * 11.0, 1.0),
IQ::polar((TAU / 13.0) * 12.0, 1.0),
IQ::polar((TAU / 13.0) * 13.0, 1.0),
IQ::new(0.0, 0.0),
IQ::new(0.0, 0.0),
]
Let s send some link layer data
SubcarrierPlan([
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Data,
Data,
Data,
Pilot(iq!(-1.0, 0.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(1.0, 0.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Guard,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(0.0, -1.0)),
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Data,
Pilot(iq!(0.0, 1.0)),
Data,
Data,
Data,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
Guard,
])
[
IQ::new(0.0, 0.0),
IQ::new(0.0, 0.0),
IQ::polar((TAU / 13.0) * 2.0, 1.0),
IQ::polar((TAU / 13.0) * 3.0, 1.0),
IQ::polar((TAU / 13.0) * 4.0, 1.0),
IQ::polar((TAU / 13.0) * 5.0, 1.0),
IQ::polar((TAU / 13.0) * 6.0, 1.0),
IQ::polar((TAU / 13.0) * 7.0, 1.0),
IQ::polar((TAU / 13.0) * 8.0, 1.0),
IQ::polar((TAU / 13.0) * 9.0, 1.0),
IQ::polar((TAU / 13.0) * 10.0, 1.0),
IQ::polar((TAU / 13.0) * 11.0, 1.0),
IQ::polar((TAU / 13.0) * 12.0, 1.0),
IQ::polar((TAU / 13.0) * 13.0, 1.0),
IQ::new(0.0, 0.0),
IQ::new(0.0, 0.0),
]
My Debian contributions this month were all
One of those arguments became its own fix. My wording implied symbols were
unpacked inside the isolated sbuild environment (the consequence was I was
handed a
Every merge request above landed with unit tests, but those only tell you
that the pieces behave correctly. What Colin and I wanted was a real gdb
fetching real symbols from a real instance, so
Summer Vacation for my kids is over. And Peace is back to my life.
AI is transforming how I operate and view things. It was very different a few months back.
AI (as a product) is useful in generating code, useful in analysing things. It seems to be able to retrieve and show me information relatively quickly, doesn't need me to scan the search results to find which one is more useful.
I feel I am less reliable than an AI, even when AI is prone to failure.
The text generated by AI is better worded than me myself, albeit they have their own tone.
Is it still fun if all my hobby programming is overtaken by AI? I am not sure, did I enjoy writing the fixtures and build environment for the
open source programming stuff? Do I enjoy reviewing other people's code?
Reviewing other people's contributions is usually not great, because by definition the code you own you have better knowledge about,
and the code you generate yourself is the best code, others will not fit naturally, they don't have the historical context, and the undocumented future plans.
Welcome to post 59 in the
I spent 6 hours working with an AI to write a bash script that would show me both active & inactive reserved DHCP addresses, as well as active leases from pool. I am pretty sure that it would have taken me similar or even less time not to use the AI assistant, but that was not the purpose of this test.
Many years ago, before I had my sewing pattern website, I made myself a
simple corset cover according to
It worked, I wore it. Years later I saw
Then, after finishing my vampire shirt, I noticed that I had just enough
fabric left for a corset cover, and by just enough I really mean just
enough, as I discovered when laying the pattern on the fabric.
So I dug in my files to get the original pattern I used, brought it up
to date, and added the missing details such as the pleating guides that
I had skipped when making the pattern just for myself. Doing so I
realized that on my old cover I had done the fake pleat in the front
wrong, making just a single pleat instead of a box pleat. Also, I
originally directly gathered the sleeves in the armscyes, but watching
the book again I realized that the sleeves were made up of a gathered
ruffle plus a straight band.
Both issues were fixed and I could cut the fabric and start sewing. By
machine, including using a narrow hem foot instead of sewing rolled hems
by hand as my instinct kept reminding me would have looked neater.
But this is a garment from a sewing machine time, and probably one that
in many cases would have been bought from a mass producer, and it s
underwear, so there is no real need for the hems to be perfect, as it s
going to be hidden anyway. But most importantly, I wanted to write
instructions for machine sewing, for a change, and so I had to machine
sew all steps that I had to take pictures of.
I did do the buttonholes by hand, because I hate the buttonhole
attachment on my machine, and the buttonhole attachment hates me.
I used a lighter weight fabric for the sleeve ruffles, both because I
didn t have a big enough piece of main fabric not to have to piece them,
and because I felt that it looks better, as it s the same voile I used
for the ruffles on the vampire shirt.
When it came to the beading lace, I had two that I had bought more or
less thinking about this project: the earlier one was narrow and
suitable to do its job, but the one I had bought more recently was
taller, with an edge that made it suitable to give more fullness to the
bust when gathered up.
I contemplated for a short while, and then decided to go for fullness
and use the taller border for the top edge, but the smaller one at the
waist, where fullness is not wanted.
The book claimed that this pattern required little labour, and indeed it
did: even when taking step by step pictures it only took a few hours
spread over a week, plus the time to make buttonholes by hand over the
next week.
And then the reason for the whole project: I published my
Remember the
For the face I decided to make holes in the cardboard and fill them with
hot glue to make a sort of light pipe, with the LEDs pressed against
them on the inside. It s not perfect, but it mostly works.
And then everything stopped: while I waited for the PVA to dry I started
doing something else, and then there were other projects, and other, and
the clock lingered in the Pile. There was a brief interruption as I
started to paint the first coat of brown, and then I moved back to the
other projects.
Until, months later, I decided it was time to finish using the brown and
white tubes of paint that I had on my desktop, so I could put them away
However, the raspberry had quite a lot of pins, and it felt wasteful to
use it on something that basically needs one. On the other hand, I had
recently bought a few
The next step involved dealing with the temporary connections to make
them a bit more permanent: I have been using LibrePCB for that other
project, so of course what I did was grabbing a bit of perfboard and
YOLO a growing rat nest of cables over it, without bothering with
drawing any kind of schematics in advance. And having to desolder stuff
and solder it again a couple of times, because I had issues with the
difference between left and right, and with the concept of rotations in
3D space.
Everything was brought back into the case, in a mostly stable
configuration with an usb cable coming out of a hole in the back for
power and surprisingly it works.
Or at least, 95% of the issues it still has are software, plus I still
need to add a few features, so right now it lives above my desktop, with
the cable dangling close to an USB port, so that I can continue working
on that in the next few weeks.
The external look is not going to change, so there will be changes on
I ve been a