Showing posts with label Radio. Show all posts
Showing posts with label Radio. Show all posts

Friday, July 10, 2020

A digital bubble floating on an analog ocean

If you ever want to know about the best cabling for analog data transmission... remember it may be digital data to your router, your computer, and your monitor, but once it's on copper it's an analog signal... ask an amateur radio operator.

Believe me... there is no-one more particular about the characteristics of their analog cabling, than a ham. We use it ... generally multishielded coax these days... for antenna feed lines. The strength of some of the signals we use it to receive, are measured in femotwatts, at frequencies in the multighz ranges. The higher the frequency, the higher the attenuation of the signal per foot of feedline, and the more subject to spurious interference... so low attenuation and spurious signal rejection are kinda important to us.

Whether you're transmitting radio frequency analog transmissions, or internet data, or high resolution high framerate high def video... it's all analog once it's on copper, because the real physical world is analog. It's all high and low voltage values in a sine wave (or at least you hope it's a sine wave), and is subject to all the vagaries of the analog world.

For example, HDMI... 1080p at 60hz SDR color (HDMI-1.1) is a two channel analog signal at about 165mhz, transmitted over 4 shielded twisted pair... 8 signal wires wide effectively, plus clock sync, control channel, power, and ground pins (including one ground pin for each shielded twisted pair), for a total of 19 pins. For 1080p@ 120hz it's about 340mhz, as is 4k@30hz. 4k@120hz HDR color is about 1.2ghz, however as transmitted over HDMI including audio, and various overheads, the actual maximum data rate ends up being appx. 1.485ghz... and 1.485gigabits per second per channel. Again, that's all over HDMI, which is a bonded multi channel serial digital interface (not actually a parallel interface, though the difference between the two is somewhat esoteric at this point)... the total aggregate data rate is between appx. 4gps for HDMI-1.0 (3.96gbps technically the same as DVI by the way), and appx. 48gbps for HDMI-2.1 (actually its 47.52gbps, effectively the same as 12x DVI channels, or 32x 1.485gbit serial data channels bonded together)

The higher the frequency of an analog signal, the higher the signal loss over distance, and the more subject to electromagnetic and radio frequency interference it is... which is why when we make digital interfaces out of analog wires, we tend to limit them to about 1.2-1.5ghz, and when we need more bandwidth, we aggregate or bond more 1.2-1.5ghz channels together.

...Which is why high bandwidth stuff like 4k video, is always transmitted as digital signals if it has to go long distances. It has extremely high signal attenuation, and sensitivity to interference, in analog form (about 6db per 100feet at 1000mhz, over conventional rg6 coax for example... the stuff your cable company uses to get signal to your cable box and cable modem. 30db signal attenuation is generally considered the maximum, so 500 feet would be the maximum at 1ghz. The actual data rate for a 1080p60hz signal as actually transmitted over coax as SDI [serial digital interface] is 1.485ghz x2 channels, for a maximum run of about 140 feet at 30db attenuation, though SDI interface boxes generally extend that out to between 200 and 300 feet through higher power, and some tricks with frequency modulation and error correction. As a purely analog signal, including audio and overhead, it's almost 3ghz if it's a single channel, which would attenuate out at about 90 feet on RG6, which is why we never do that). Breaking it up into high bandwidth IP data is much easier, with much lower losses and greater error tolerance and error correction.


In analog data transmission, using a waveform structure... as most electrical and optical data transmission and cabling standards, and most radio standards do... there's basically two factors which can be used to transmit information. Frequency, and amplitude. We can modulate the frequency at which we transmit... the number of times per second the wave hits a peak... and the amplitude... how strong the signal is, which translates into how high the peak gets.

...(note: theres actually a third, called "phase", and it IS used in many data transmission systems... most of them actually... but it's a much more difficult and complicated thing to decode with precision, or to explain without further background, so I'm MOSTLY ignoring it for most of this explanation)...

The most basic way of doing that is with binary amplitude modulation... off and on, dot and dash. That's the easiest thing to detect.... and consequently those were our earliest forms of optical and electrical communications... the heliograph and the telegraph... and our earliest form of radio communications as well, using spark gap transmitters and cat whisker coherer receivers. We then converted those "off" and "on" states into useful information with thing like Morse code or Baudot code (where we get the word "baud" from).

You'll find that for... ease of explanation let's call it... most examples and illustrations of most communication methods simplify it to this binary representation.

A binary amplitude modulation system, is limited by how fast you can turn the signal off and on... or really, how fast you can precisely and reliably detect it being turned off an on. It can only encode 1 bit of data per time division, because it is always on or off referenced to off.

However, even without frequency modulation, amplitude modulation can be more complicated... and cary more data... than just off and on. In fact, it's actually a lot easier to create more precise signals by NOT using a binary "off" and a binary "on", but instead to use a "high" value, where every signal above a certain "high" amplitude threshold is a 1 and everything below a "low" value is a 0... Every computer logic circuit on the planet does this, but we pretend that "high" and "low" are really "on" and "off" to simplify it for logical explanation purposes.

Further, because we are talking about waveform transitions between high and low states, we can actually have FOUR states represented with basic amplitude modulation... "high", "low", "rising", and "falling" (this is called Quad Amplitude Modulation or QAM, which itself can be detected either by precise time reference, or by phase shifting an amplitude modulated signal wave in reference to a baseline carrier wave... I said I would MOSTLY ignore phase, not entirely).

So, before we even get into frequency modulation, we have the ability to represent 4 states of data. In reference to itself, that can mean 2 or 3 bits (depending on how you encode and how you detect the state), or in reference to a precise clock or a known baseline state such as an unmodulated carrier wave, it can mean 4 bits of data.. a useful increment.

...An important note... 2 different states of data, only in reference to that state change itself... a binary 0 or 1...is only ONE bit of data. 2 different states in reference to something else, like a high or low state in reference to a neutral carrier, or a precise time clock, can be just one bit, OR it can be used to represent TWO bits of data with proper encoding. Four states in reference only to themselves can be 3 bits, but in reference to an outside value can be 4 bits etc... This is because some state must always be null or neutral, representing no data, while all other states can encode data in reference to null or neutral. One can even do this with purely binary data with bitwise time encoding or bytewise sequence encoding, across multiple bits or bytes... Each bit is in reference to a time, or sequence of previous bits, or sequence within a byte, and therefore 0 or 1 are both information states. Without bitwise or bytewise encoding, 0 is the null reference and 1 is the only state with data, with it both states contain or transmit data.... This logical structure is generally ignored when this subject is explained, because it hurts peoples heads.

Now... we have figured out that over most transmission media... be it copper wire, optical fiber, or radio frequency transmissions through a vacuum... we can transmit additional data through two other means.

The first, is by modulating the frequency of a signal wave slightly, compared to either a very precise time clock, or to a reference carrier wave. This again can give us four discernable states of information in any given time division for a wave... any given discrete small frequency band... a peak state, a trough state, a rising state, and a falling state.

The second, is by combining multiple signals in different frequency bands, over the same medium.... Of which there could potentially be infinite divisions in theory... though in practice its difficult to generate and detect a lot of different bands simultaneously with any precision.

However, even before we reach that point, you should be able to see that for any given time division, using a combination of both amplitude modulation, and frequency modulation, we can actually represent.. and transmit and receive... 4 discrete states per frequency, and as many frequency states per time division as we can detect, with 4 states for each as well... 16 total states per discrete division... 16 bits... using purely analog signaling.

In fact, for any given division of time and any given frequency banding, we can use frequency modulation (4 states), amplitude modulation (4 states), and in theory both frequency phase modulation (2, 3, or 4 states, but the 3rd and 4th state are hard to deal with, so really 2 states), and amplitude phase modulation (again theoretically 4 states but really 2) within each discrete frequency band, to represent 64 bits of data.... though using both amplitude phase modulation and frequency phase modulation, is extraordinarily difficult to do with precision, so up until recently generally only one or the other has been used. And of course, it is technically possible to detect and use all four phase states for both amplitude and modulation, meaning you could theoretically represent 256 discrete states, or bits, within one discrete frequency band, in one discrete time division (or you can do it on the rising and falling of a clock cycle.. but it's not practical to do both clock and phase at the same time, because one is detected in reference to the other).

Then, by modulating within a small discrete frequency band, we can multiply those states by the smallest divisions we can discern within that band, times the total number of divisions, or width of that band.

That's where the term bandwidth comes from by the way. It's a measure of the number of discrete bits of data we can discern within a single time division, in a single frequency band, or an aggregate of channelized bands.... and it applies whether were talking about copper hardline, fiber optics, or radio waves.

Right now our highest frequency, and highest bandwidth, commonly used wireless systems are using the 5ghz RF band, and modulating across 80mhz channels within the band. Our highest bandwidth commonly used hardline video systems (HDMI 2.1 or CoaXpress CXP-X standards) use 1.485ghz frequency (anything higher causes severe attenuation of signal over distance... the higher the frequency the higher the attenuation), with HDMI 2.1 using 4 different states per conductor, and 8 conductors, to get 32bits times 1.485ghz, or just under 48 gigabits per second.... a similar standard is also used for our fastest common data networking over copper wire (currently 40gig ethernet), achieving a similar data rate.



The fastest data transmission over copper wire commercially available for mainstream computing applications, is currently 100gigabit ethernet. It uses four pairs of conductors moving 25gigbit each pair, but the frequency is so high that the signal attenuated to un-usability within just a couple meters, so almost all 100gbe is over fiber optics.

When you combine that with heterodyning, or multiplexing of different frequency banded signals over the same media (or as noted near the top, in phase or out of phase signals... the last time I'll mention it in this piece), for channelization within the same larger band, it should be clear that analog data signaling can do a hell of a lot more than just off and on, one and zero.

The most basic means we have used these properties for... for well over a century now... are audio transmissions over the telephone, and audio transmission over the radio.

Audio inherently transmits both frequency and amplitude modulated signals, in 1hz and 1db increments, across about 20khz of frequency spectrum, and 120db of dynamic range... Or at least human audible audio does (ultrasound goes much higher of course). Though to simplify transmission, and to multiply the maximum number of transmissions over a single medium, we have often "narrowbanded" audio to as little as 3khz and as little as 30db dynamic range.

Taditional telephone signals for example, drop everything below 300-400hz or above 3300-3400hz (depending on the region and standards of the particular telephone system) and compand -compress and expand- dynamic range down to 42db or less (+- 18db). We can then take those limited bandwidth "narrowband" signals, and combine them over a single wire, by shifting their frequency up and down in discrete bands, and then shifting them back to their original frequency at the other end... even with basic analog equipment (this is called frequency shifting or tone shifting).

That's how some long distance phone calls and trunk line calls worked for decades, before we switched to digital telephony systems... a process which took decades (and if you still have a land line, your home phone may still be connected directly to the neighborhood switching node over a single analog channel, or even to a local central switching office, depending how overdue your local infrastructure upgrades are... But in the U.S. most landline service is now digital to the neighborhood node, or even digital to the home, and is only analog from that switching box to the analog handset)

It's also how radio stations work. FM stands for "frequency modulation" and AM stands for "amplitude modulation" but in reality both types of radio do both things, its just a question of how each creates and recreates the signal at either end of the transmission. An FM radio station can modulate frequency and amplitude across a small defined band, to transmit appx 15khz and 48db dynamic range worth of audio signal. An AM radio station can do the same but with only a 10khz and 30db range. Thus we can theoretically fit about 200 local FM and about 120 local AM radio stations into a given area, in the FM and AM broadcast bands... But to avoid interference and crosstalk, it's actually more like about 100 fm and 60 am stations.

When we first started sending digital transmissions over analog phone lines, we did it in the simplest way possible... Essentially back to the days of the telegraph, only a little bit faster... We eventually got to about 300 bits per second, before we had to switch from purely binary amplitude modulation, to add the rising and falling signal states, and the frequency banding and heterodyning or multiplexing of signals. Within the limited 3khz and 42db dynamic range allocated to each analog telephone line, we managed to go from pushing just 300 bits per second, up to about 56,000 bits per second.

Now, we're using wideband 5ghz band wireless with QAM, to get bandwidth exceeding a gigabit per second per channel, and bonding multiple channels to get multi gigabit wireless.

...But still... digital data, becomes an analog signal, the second it hits a wire or a radio, and is subject to the capabilities and limitations of its transmission medium. We may live in a digital bubble, but that digital bubble floats on an analog ocean, in an analog universe.

Wednesday, March 28, 2012

Internet has been spotty here since Monday

Which is why I have not posted what I wanted to the last few days.

As I've mentioned before, I'm on microwave internet service. A small microwave antenna sits high on the side of my house, pointing to the top of a 7,000 foot mountain about 10 miles slant range from me.

It's March. It's windy, and it's still snowing on the mountains, and unfortunately, there was a power outage on the top of the mountain for a day or so; and some intermittent network issues since then.

Unfortunately, I've been having some major internet problems generally for a few months; ever since they "upgraded" to new radio equipment late last year (including a radio "upgrade" for me).

Finally, after a few months of refunding me for service (I have a QOS guarantee) they decided to use the opportunity of the power cut to replace the node on the mountain, which they did yesterday, and this morning; and also my radio.

Analog RF engineering geekitude ahead....

They've upgraded me from a single band radio with a horizontally oriented plate radio, to a dual band, MIMO unity capable radio, with cross oriented poles and a dish instead of a plate.

That has upgraded me from a single 28Mbit wide channel to two 56Mbit wide channels. I also went from 18db above the noise floor to 28db above the noise floor.

My contract says I should get a minimum 1.5Mbit synchronus sustained with burst up to 8Mbit.

On the old radio gear I was MAXING out at 1.4Mbit, and only averaging a couple hundred Kbit.

That's why I've been getting refunded on my service since December.

On the new gear I'm maxing out at 8Mbit with an average of around 2Mbit.

I'm a hell of a lot happier about that. Of course, now I have to start paying them again.

Oh and my latency is spectacular by the way. I'm getting under 20ms to a commercial server in Seattle, under 30ms to Dallas, and under 100ms to London.

That's rather important since my "landline" is VOIP over this internet connection. Anyone who has called me in the last few months knows that my landline was iffy. Near as I can tell now, it's pretty good.

Saturday, April 11, 2009

Off to the HamFest, in the rain

Which in most other places wouldn't be that unusual, but this IS Phoenix after all.

Of course being a hamfest, I doubt the rain will bother folks much... If you don't know hams, it can be hard to explain; but basically they're like the post office. Neither rain nor snow, nor gloom of night can deter them from their Elmerish pursuits.

Anyway, I need a new antenna for my HT (a Yaesu VX-5R, 6m/2m/70cm TX broadband RX). The factory stock rubber ducky has a hard time hitting a repeater just 5 miles away with 5 watts, and that's just sad.

For the uninitiated, "my HT" refers to my hand held portable radio transceiver; a compact model manufactured by Yaesu (A.K.A. Vertex Standard) electronics in 2004 (they've come out with a couple newer models since and discontinued mine), capable of transmitting on the 6 meter (50mhz), 2 meter (144mhz) and 70cm (440 mhz) ham bands, and receiving signals on many more bands, above, below, and between the ham bands (like AM and FM radio, public safety bands, aviation bands etc...).

My particular VX-5R is also modified to act as an aviation transceiver; however as transmitting on those bands is unlawful for non-aviation purposes, I don't transmit on that band ever. I did the modification so that I could signal aircraft in an emergency.

Oh and why do they call them HTs? Handie-Talkie is what Motorola called the first one in 1941, and hams are... let's just be polite and say a conservative and traditional bunch. They were called HT's 68 years ago, they're called HTs today.

People have backronymed it to "Handheld Transciever" but that's just so they don't have to admit to being old fuddie duddies (even the young ones).

Seriously, I'm not sure who is more conservative, hams, or gun owners... of course there IS a pretty significant overlap....

UPDATE: Well, that was a bust. Apparently, it was quite busy... from 6am to 8am; but by the time we got there, most folks had already buggered off.

Thankfully it seems they buggered off all of 300 yards away, to the local Ham Radio outlet; and I was able to get a new antenna for the HT. Actually I picked up two: One zero attenuation mini stubby (a Comet SMA-501), and one Diamond high gain 1/4 wave whip).

Zero attenuation in this instance refers to the fact that the stubby little antennae has no attenuation (loss of signal strength) compared to an equivalent end feed 1/4 wave vertical antenna, on both 2m and 70cm (which means it is electrically the same as a simple wire antennae 19" long for 2m operation, or 7" long for 70cm). Not bad for an antennae less than 2" long.

High gain, in this instance, refers to the fact that the Diamond whip antenna exhibits increased signal strength as compared a plain wire 1/4 wave end feed. Theoretically this particular antenna has 2.15 dbi gain (slightly less than doubling of signal strength. Every 3db is an approximate doubling of strength) on 70cm, and 6dbi gain on 2m (approximately 4 times the effective signal strength).

Unfortunately, because of the inverse square law, an increase in effective strength only actually increases the range you can transmit or receive by the square root of the increase (and that's in a vacuum, not accounting for terrain, interference, or atmospheric attenuation). So a +3dbi gain, or doubling of signal strength, gives you about a 40% improvement in range; and a quadrupling of signal strength only gives you a 100% increase in range.

And of course, that's only the theoretical physics of it. The real world DOES include terrain, and atmosphere, and other such inconveniences, which dramatically effect your range. In the real world, a +3dbi or even +6dbi increase only gives you maringally more usable range; because although you get a lot more theoretical maximum range, the signal at that extended range is still too weak to be useful (it's called being below the noise floor).

The Diamond is one of the antenna models I was interested in and specifically looking for; and HRO had it (Actually both of them) for well off list. It seems like a significant improvement over the factory rubber ducky. I'm having no problem hitting several repeaters I couldn't hit before. 'Course, it is twice the length of the factory whip (more flexible though).

The stubby is very useful for local short range operations, like car to car in convoy; and it is only very slightly less effective than the factory rubber duck. Plus, it's TINY (1-3/4"), fits into small spaces and isn't likely to snag on anything or break off.

While JohnOC and I were driving over there, I discovered the PTT on my headset was dead, so I also picked up a new speaker mike (about half the price of a new PTT headset, and more comfortable to use most of the time anyway).

I also snagged the 2009/2010 repeater director, the Gordon West tech, general, and extra manuals for Mel and I to study (Mel is now thinking she at least wants to get her general), and the 9th edition operating manual (I only have the 8th edition). I figure 'tween all those, we should be good to go.

Thursday, April 09, 2009

General and Extra Irritation

So as part of my efforts towards better preparedness and "getting to where we want to be" I'm upgrading my amateur radio operators license from Technician Class, to Amateur Extra within the next month or so (basically whenever I can find an exam session I can make it to).

I'm going to write a much bigger post about amateur radio communications in general, it's usefulness as a communications service especially in emergency situations, and it's practical applications and usage. That's one of the really big posts that I haven't had time to finish yet in fact.

Right now though, I'm just a little irritated, because theres a TON of this stuff that I SHOULD remember, that I don't. I have TWO frikken engineering degrees, and have been working with electronics since I built my first crystal set at age 6; but I've forgotten about 1/2 of the basic circuit diagrams, symbols, practices, and general electronic principles and rules, that I KNOW... they just aren't coming to me.

Stupid stuff like that. It bugs me. 'Course we all know, it is true, if you don't use it you lose it.

Anyway, I've been running the General class practice tests for about an hour now, and I'm up to getting consistently between 30 and 35 out of 35 (you need 25 out of 35 to pass); I just keep missing the silly stuff.

Oh and I need to work on remembering my operating privileges and bands better; and the weird and obscure regulations better. At least I tend to remember those after the first time I see them.

My other amateur friends have been bugging me a while (like since 2007 when they dropped the code requirements) when I was going to do the extra upgrade. Well, you've got your answer. Now I need to get JohnOC to upgrade with me.

Oh and Mel is going to get at least her tech as well.

Anybody know a good, free, CW tutorial available online? I'm horrible with code and I really should practice.