News for hackers. Stuff that matters.
Re:Serial Port SDR by lima on Thursday December 06, 2018 @09:05AM (#18618097)
> This alone is impressive, but [Ted] isn’t done yet. He realized that this method of transmission was generating some strong frequency harmonics which extended far beyond the theoretical maximum 1 MHz frequency of his UART SDR.

i.e., blast noise all over the spectrum. There's a reason why real transmitters are more expensive than a serial port adapter.

This kind of RF pollution is illegal for obvious reasons and if you manage to disrupt something important (emergency frequencies, mobile networks...), it's gonna be expensive.

Don't try this at home!

Re:Serial Port SDR by jimmytucson on Thursday December 06, 2018 @09:19AM (#18618203)
I don't think transmitters are made artificially expensive to keep out the newbs. As you said, it's illegal.

And if you're a newb (like me) interested enough to try this at home, you might have read to the end of the article where it states:

> DISCLAIMER: It should go without saying that you should never transmit on any frequencies or at any power levels for which you are not authorized by the local governing body, but I guess I just said it anyway.

Re:Serial Port SDR by jimnotgym on Thursday December 06, 2018 @12:36PM (#18620183)
Transmitters are not even expensive. A Baofeng is around $20. Some CW kits are $5.
Re:Serial Port SDR by subway on Friday December 07, 2018 @12:26AM (#18625365)
Those cheap Baofengs will spew harmonics too. Quality transmitters do get a bit more expensive than the stuff that mostly-works.
Re:Serial Port SDR by poizan42 on Thursday December 06, 2018 @09:20AM (#18618212)
But he doesn't have any amplification. Nothing is happening here that doesn't happen already with normal use of the UART. If what he is doing here is illegal then the RF pollution from using the UART normally would be too.
Re:Serial Port SDR by Animats on Thursday December 06, 2018 @02:27PM (#18621209)
It's an "intentional radiator", in radio terms.[1]

It's very easy to build something that blithers all over the RF spectrum by connecting a digital signal to an antenna. Hook a square wave to an antenna and you're going to get lots of harmonics. This is generally considered a bad thing.

In the early days of digital electronics, a TRS-80 Model I home computer and a Milton Bradley Big Trak toy car would both crash if near each other. Strict regulation of RF emissions, and good protection on the input side, is why we can have so many digital devices without everything randomly crashing.

[1] https://www.ecfr.gov/cgi-bin/text-idx?SID=56381cb4f24a491e7d...

Re:Serial Port SDR by bluGill on Thursday December 06, 2018 @09:30AM (#18618286)
He didn't say this, but I suspect that his antenna was that specific length for rf reasons - wires work best as antennas when their length is some multiple of the wavelength. (ask an rf engineer if you want details, I'm close enough for discussion but all rf engineers will cry when they read that)
Re:Serial Port SDR by wglb on Thursday December 06, 2018 @10:27AM (#18618742)
Multiples of 1/4 wavelengths, and if built properly 5/8 wave.
Re:Serial Port SDR by naikrovek on Thursday December 06, 2018 @04:04PM (#18622219)
... but 5/8 isn't a multiple of 1/4, Or is that not what you meant?
Re:Serial Port SDR by wglb on Thursday December 06, 2018 @04:09PM (#18622263)
Right. I should have added more detail. Multiples of 1/8 also work.

Now, you can actually make almost any length work with proper tuning circuitry, but the ones mentioned are the most effective.

Re:Serial Port SDR by lima on Thursday December 06, 2018 @12:07PM (#18619817)
Also, there's a big difference between random noise and a modulated signal on a specific frequency, with a matching antenna.

One of those is noise, the other one is a transmission.

Re:Serial Port SDR by andyidsinga on Thursday December 06, 2018 @03:42PM (#18622007)
there is an antenna - just a wire - but that changes the equation a lot relative to what a normal UART does has part of a system that already meets FCC (or other) regulatory standards.

I'm curious about the gain of the antenna and what consideration has been made re trasmit wavelength and the antenna wire length.

Re:Serial Port SDR by poizan42 on Friday December 07, 2018 @03:57PM (#18631560)
I think other commenters have already sufficiently explained this, but just to make it clear: Any wire functions as an antenne, also in a normal circuit where it is connected to something. The length of the wire will cause more radiation from some frequencies, but some designs will have wire length that matches some of the frequencies emitted by the regular communications performed (probably most of them actually - you rarely send random noise over your serial communication channels).
Re:Serial Port SDR by andyidsinga on Friday December 07, 2018 @07:00PM (#18632802)
Yep - I totally understand that. I wasn't commenting on wires ability to act as antennas in general - I was commenting on the addition of this wire to the UART for the purpose of wireless comms.

That addition is what makes your original point wrong : "Nothing is happening here that doesn't happen already with normal use of the UART"

Re:Serial Port SDR by gsich on Friday December 07, 2018 @10:05AM (#18628214)
I doubt the gain of a jumper wire is enough to cause any "damage".
Re:Serial Port SDR by andyidsinga on Friday December 07, 2018 @07:08PM (#18632842)
You might well be right on that. "damage" would be good to define in general for these kinds of things. I'm guessing the FCC regs talk about this to some degree.

So, reality is, this is likely very low-power and likely low-impact experiment and likely not cause a lot of issues with nearby devices that are designed to accept all interference and continue to function or fail gracefully.

But IMHO, it is a good idea for anyone doing these kinds of experiments to think a little bit about RF design and the impacts devices might have ..hence my other comment about the value of HAM technicians license & training (which is fun and pretty easy).

Re:Serial Port SDR by wedowhatwedo on Thursday December 06, 2018 @09:31AM (#18618297)
He connected an antenna to it. That's what makes it illegal.
Re:Serial Port SDR by crankylinuxuser on Thursday December 06, 2018 @09:48AM (#18618415)
Ugh. It's not by default "illegal", unless it provably violates Part 15.

Has a Part 15 assessment been done yet? Have we analyzed power emission levels to assert that this thing is indeed 'breaking the law'?

Has this device been checked by the FCC for spurious emissions during normal operation? Did it pass, or is it chinese jank uncertifiable garbage?

Edit: C'mon downvoters. If you make a claim that it's "Illegal", you need to have some sort of proof that its the case. And I'm not immediately seeing it. Further research? Sure.

Re:Serial Port SDR by wglb on Thursday December 06, 2018 @11:01AM (#18619114)
This is mostly correct, except for FCC exceptions for stuff you build yourself. For example, it is legal to broadcast on the FM band if your signal meets certain signal strength criteria. Also, the FCC itself doesn't do assessments, they are done by independent (expensive) labs.

But the rest of what you say is correct.

Re:Serial Port SDR by walshemj on Thursday December 06, 2018 @03:28PM (#18621859)
If it breaches the power limits I think it is illegal - same as if you used a high power wifi access point with a high gain antenna.
Re:Serial Port SDR by poizan42 on Thursday December 06, 2018 @09:34AM (#18618314)
He connected a regular wire to it... That's kinda how you use a UART.
Re:Serial Port SDR by EarthIsHome on Thursday December 06, 2018 @10:25AM (#18618718)
The wire is being used as an antenna. When you use UART, you have the other end of the wire terminated with another circuit. (i.e. The energy goes to into the connecting circuit.)

Because the wire ends at an open circuit, the currents on the wire radiate, turning the wire into an antenna.

Re:Serial Port SDR by tjohns on Thursday December 06, 2018 @11:35AM (#18619491)
Wires connected to a closed circuit will radiate too, if you drive them at high frequency. Maybe not efficiently, but it'll still radiate. There's nothing special about an open circuit that makes an antenna work.

Shielding (e.g. coax, or a properly grounded enclosure) is what prevents ordinary wires from becoming antennas.

Re:Serial Port SDR by StillBored on Thursday December 06, 2018 @01:53PM (#18620907)
Normal rs232 is run through shielded cables as well. It was standard practice to wire the d-sub connectors to the cable shields. The wires themselves may not have been shielded, but the cable was shielded against being an antenna.
Re:Serial Port SDR by tyingq on Thursday December 06, 2018 @07:57PM (#18624161)
Sometimes. Plastic DB9 to unshielded RJ12 is pretty common.
Re:Serial Port SDR by poizan42 on Thursday December 06, 2018 @10:47AM (#18618983)
> When you use UART, you have the other end of the wire terminated with another circuit. (i.e. The energy goes to into the connecting circuit.)

The other end is likely a MOSFET with an input impedance on the order of 10 GΩ...

Re:Serial Port SDR by xtf on Thursday December 06, 2018 @10:09AM (#18618567)
And it's nothing new.

Same is possible with Raspberry Pi GPIO:

https://github.com/F5OEO/rpitx

Re:Serial Port SDR by lima on Thursday December 06, 2018 @11:55AM (#18619706)
We measured the output of that exact experiment at our local ham radio club and it was horrible, harmonics and noise all over the spectrum.
Re:Serial Port SDR by andyidsinga on Thursday December 06, 2018 @03:45PM (#18622039)
THIS! -- I was hoping a ham would chime in here :)

For anyone looking to do experiments like this - which are really cool to do - getting the ham technician licenses is pretty easy and very educational!

Re:Serial Port SDR by jimnotgym on Thursday December 06, 2018 @09:52AM (#18618445)
The harmonics are above the transmission frequency, so a low pass filter is normally all that is needed to clean this up.

There is a project that uses a Raspberry pi to transmit from is GPIO

To use a home built transmitter you need amateur radio license, no matter what.

Re:Serial Port SDR by jimnotgym on Thursday December 06, 2018 @12:32PM (#18620157)
I got called away while writing this earlier and rushed my last point which is clearly wrong. It is too late to edit.

Instead: To use a home built transmitter you need amateur radio license, except in certain specific low power situations. To comply with those situations would be difficult without specialised test gear.

Re:Serial Port SDR by wglb on Thursday December 06, 2018 @11:08AM (#18619198)
Not true. Low power FM and AM stations are allowed.

https://www.fcc.gov/media/radio/low-power-radio-general-info...

Re:Serial Port SDR by lima on Thursday December 06, 2018 @12:12PM (#18619884)
And there's ISM bands as well. However, all of these unlicensed bands have strict limits.

For any of the fun stuff, you need an amateur radio license :-)

Re:Serial Port SDR by andyidsinga on Saturday December 08, 2018 @02:40PM (#18637081)
> However, all of these unlicensed bands have strict limits.

This is absolutely key here - even in unlicensed bands one cannot just start using the spectrum without careful consideration of regulations for that spectrum.

When I was working in the 902-928 Mhz (FCC and similar) and 860s (for ETSI) for RFID we had to do a lot of work to ensure our transmit power, power ramp up, frequency hopping and listen before talk were all implemented properly and demonstrable for certification. It was not trivial.

Re:Serial Port SDR by vvanders on Thursday December 06, 2018 @10:12AM (#18618588)
Only for amateur bands. ISM, 2.4Ghz and 5Ghz along with a few others don't require a license.
Re:Serial Port SDR by rkachowski on Thursday December 06, 2018 @09:23AM (#18618239)
From the article, the effective range seems to be around 10 feet.

IIRC you are generally permitted to use whatever frequency you wish within a very limited radius as long as it is for "research purposes"

Edit: this last point is wrong, as mentioned below exemptions seem to apply for certain frequencies with a low powered device https://www.fcc.gov/media/radio/low-power-radio-general-info...

Re:Serial Port SDR by wedowhatwedo on Thursday December 06, 2018 @09:33AM (#18618308)
Can you quote the FCC regulations that make this transmitter legal? (I'm assuming American law, the law in other countries obviously vary)
Re:Serial Port SDR by ac29 on Thursday December 06, 2018 @10:00AM (#18618495)
The FCC regulations are very long, hard to understand, and occasionally contradictory - I know, I work in the industry. The closest section of the law that comes to mind is for very low power (typically under 1mW) devices that do not require the user to have a licence. These are so called "part 15" devices, which refers to the Code of Federal Regulations (CFR) Title 47, Part 15.

While the user of these sorts of devices doesn't require a licence, the device itself needs to be certified, so that, among other things, it doesn't spew noise all over the RF spectrum. This device wouldn't pass.

There are also experimental licences that can be held by businesses such as RF equipment manufacturers that allow for using equipment that hasn't yet received FCC approval. They are usually band restricted, geographically restricted and power restricted, and you must take care to not have high levels of spurious emissions.

edit: Here's a PDF explainer on Part 15 devices: https://transition.fcc.gov/Bureaus/Engineering_Technology/Do...

Re:Serial Port SDR by wglb on Thursday December 06, 2018 @11:10AM (#18619219)
Re:Serial Port SDR by zoobab on Friday December 07, 2018 @05:57AM (#18626624)
I don't live in the United States, and I don't give a damn about the FCC.
Re:Serial Port SDR by andyidsinga on Friday December 07, 2018 @07:21PM (#18632897)
You should - many regulators around the world are modeled after FCC. When I was doing regulatory test work for RFID readers (which were transmitting at 1W ) IIRC Canada, Korea and Japan were very similar to FCC.

Additionally - if you are in Europe - regulations are defined by a body called ETSI (https://www.etsi.org/). For RFID these regs were quite different from FCC - we had to do listen before talk and a variety of other things to ensure compliance.

Re:Serial Port SDR by jstanley on Thursday December 06, 2018 @05:49PM (#18623229)
You can see from gqrx that his rtl-sdr can barely pick this up when it's 6 inches away on his desk. Somehow I don't think this is causing a significant amount of harmful interference. (Admittedly it is quite a distant harmonic - the actual signal will of course be stronger).
Re:Serial Port SDR by wglb on Thursday December 06, 2018 @11:11AM (#18619229)
Not true. See https://www.fcc.gov/media/radio/low-power-radio-general-info...

Doesn't require factory built, does not require license.