Author Topic: 'hacked' an external WiFi antenna onto a mains powered device. Got 120Vac on it.  (Read 4011 times)

0 Members and 1 Guest are viewing this topic.

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
I have a mains (240V UK) powered heating controller hub thing. It's a wifi & zigbee boiler controller.

The WiFi module on it is an off the shelf Microchip one, but it only has a PCB antenna on it. Microchip do a version with a u.FL connector, but this thing doesn't have that version.

I have found the WiFi performance of it to be unsuitable and the shape of our house to make it difficult to run the necessary cables. I have other options, but for now I thought I would try what a number of ESP8266 users have done - cut the tracks to the PCB antenna and solder a coax -> SMA for an external antenna.

I've done it, and I'm pretty sure I've done it right, although I was a bit confused about how I was able to get ground from part of the same PCB-antenna track as the main part, if that makes any sense. The PCB antenna comes out past a resistor, then most of it zig-zags to the left, but a little bit makes an L-shape to the right. After I cut both sides, it seems the small side was connected to ground. That's not what I was expecting, but I used it anyway.

Now I put it all back together, WiFi performance according to the figures on my router (a Mikrotik that gives some useful info), shows an improvement from the previous -76dBm to -79dBm, up to -69dBm to -66dBm.

However I wanted to try an alternate location for it - a different wall.

When I went to move it, I felt a buzz from around the bottom of the antenna socket.

I put my meter, in AC, between myself and the ground of the SMA connector, and it shows 120V AC.

I've opened up the unit again and I can see that my coax is not at all in the area of high voltage.

Apart from telling me off for messing with things I perhaps shouldn't, could somebody shed any light?

I'll post pics in a minute.
« Last Edit: January 02, 2021, 02:04:33 am by carl0s »
--
Carl
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
pics as promised:















--
Carl
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Its certainly the power supply for the wifi device.  - its got a short that's putting the mains voltage where it shouldn't be.  Probably its also on the outer conductor of the DC power cord and that resulted in - what you found.

You're lucky you get away with just a mild shock. Whatever they did they should know about it.
That may be a dangerous product.
« Last Edit: January 02, 2021, 01:36:38 am by cdev »
"What the large print giveth, the small print taketh away."
 

Online wraper

  • Supporter
  • ****
  • Posts: 17401
  • Country: lv
The same thread yet again. There is nothing unusual, nothing unsafe, you have double insulated power supply. So it's not grounded. Output floats at about half of the mains voltage due to noise suppressing capacitor(s) connected between input and output. Leakage current is small and not dangerous.
Something like this:

« Last Edit: January 02, 2021, 01:37:00 am by wraper »
 
The following users thanked this post: carl0s

Online wraper

  • Supporter
  • ****
  • Posts: 17401
  • Country: lv
Its certainly the power supply for the wifi device.  - its got a short that's putting the mains voltage where it shouldn't be.
Frankly I would think you should know better.
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
The same thread yet again. There is nothing unusual, nothing unsafe, you have double insulated power supply. So it's not grounded. Output floats at about half of the mains voltage due to noise suppressing capacitor(s) connected between input and output.
Something like this:



I did wonder, with it being half of the mains voltage.

Normally this is a sealed unit with no metal that can be touched, and no earth connection either. Obviously I have altered it. Have I made it dangerous now? The buzz that I felt, and the 'floating half of mains voltage', could it do any harm?
--
Carl
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
I have a similar issue with my Feeltech siggen, but there the current isnt enough to feel. And its much lower voltage too, not 120 volts.. But it does show up when its measured.

I also have line voltage of 120 volts. So half of that is 60v.

I think we're both right.

I don't think those capacitors are the right way to go at all.


Its certainly the power supply for the wifi device.  - its got a short that's putting the mains voltage where it shouldn't be.
Frankly I would think you should know better.
« Last Edit: January 02, 2021, 01:44:41 am by cdev »
"What the large print giveth, the small print taketh away."
 

Online wraper

  • Supporter
  • ****
  • Posts: 17401
  • Country: lv
Normally this is a sealed unit with no metal that can be touched, and no earth connection either. Obviously I have altered it. Have I made it dangerous now? The buzz that I felt, and the 'floating half of mains voltage', could it do any harm?
Then this is different and your mod is dangerous. Upon some further inspection this thing uses uninsulated PSU.

 
The following users thanked this post: amyk, cdev

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Its not the antenna thats problematic, its the exposed electrical potential on the shield. Lots of devices (many routers do this) incorporate the wifi antenna in the PCB or somewhere inside their enclosure.
« Last Edit: January 02, 2021, 02:02:37 am by cdev »
"What the large print giveth, the small print taketh away."
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
Yes I'll have to have another go but with an in-box antenna of some kind. Or maybe just forget it and go about putting yet another low-power Wi-Fi AP in the utility room with the boiler. I wish everything wasn't just WiFi.. I am adding Wi-Fi APs in stupid places for little things. I had to put a small WiFi AP in the electric cupboard so that the power-monitoring thing (Iotawatt) could be used.. put a small AP turned down to 3dbm output in there.

The original antenna you can see there as part of the module. It's a PCB antenn, the zigzag tracks. Microchip says it is 0.3dBi gain I think.
--
Carl
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
A quarter wave monopole would work, or a small patch of copper sheeting also works, quite well if its the right size. Need to go downstairs and rustle it up out of the junk box.

Sometimes you can connect two bigger antennas to one another with a piece of coax
...to bridge two areas. (A "passive repeater")

Yes I'll have to have another go but with an in-box antenna of some kind. Or maybe just forget it and go about putting yet another low-power Wi-Fi AP in the utility room with the boiler. I wish everything wasn't just WiFi.. I am adding Wi-Fi APs in stupid places for little things. I had to put a small WiFi AP in the electric cupboard so that the power-monitoring thing (Iotawatt) could be used.. put a small AP turned down to 3dbm output in there.

The original antenna you can see there as part of the module. It's a PCB antenna, the zigzag tracks. Microchip says it is 0.3dBi gain I think.
« Last Edit: January 02, 2021, 02:11:47 am by cdev »
"What the large print giveth, the small print taketh away."
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
Thanks. It's a shame, because it all worked out in the end, except for the life endangering part. Lucky it was me who felt it and didn't just leave it for my girlfriend to discover!

As they say, you live and learn. Although I still don't understand the principles, I will take care to look for floating grounds on mains voltage stuff and remember that it can be on what I see as the low voltage side as well.

Before taking this apart and drilling a hole into the side of the case, I did check that I could pick up a replacement unit off eBay for £20!
--
Carl
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1273
  • Country: ru
If you are confused by the weak potential on the metal part of the antenna, cover it with an insulating varnish.  :)
And sorry for my English.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8037
  • Country: gb
If you are confused by the weak potential on the metal part of the antenna, cover it with an insulating varnish.  :)

No. I know you're not used to modern safety standards over there, but that's not an excuse.
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1273
  • Country: ru
If you are confused by the weak potential on the metal part of the antenna, cover it with an insulating varnish.  :)

No. I know you're not used to modern safety standards over there, but that's not an excuse.

The insulation of the metal parts also meets your safety standards. The manufacturers of this device did so, apparently, and avoided the use of grounding. Do not like the varnish - close a separate plastic box, but be sure to get a safety certificate on the box and check for insulating properties.  :)
And sorry for my English.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8037
  • Country: gb
If you are confused by the weak potential on the metal part of the antenna, cover it with an insulating varnish.  :)

No. I know you're not used to modern safety standards over there, but that's not an excuse.

The insulation of the metal parts also meets your safety standards. The manufacturers of this device did so, apparently, and avoided the use of grounding. Do not like the varnish - close a separate plastic box, but be sure to get a safety certificate on the box and check for insulating properties.  :)

What metal parts? It's a plastic enclosure. A little varnish does not make for safe insulation.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8347
My guess upon seeing the title was "cap dropper", but it turns out to be a more powerful - and also non-isolated - buck regulator.

...you could try using a piece of mains cord with the end capped off as the antenna, that will definitely be enough insulation and should not affect the signal strength that much, especially given that your modded antenna has a plastic cover anyway.
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
If you strip the rubber ducky plastic off it you end up with something similar to this:

https://martybugs.net/wireless/rubberducky.cgi

Not hugely useful in itself but there are antenna which are made more cheaply and instead of the RP-SMA plug/socket, come with a length of coax that's terminated with a U-FL, Hirose like the one in the attached pic or even soldered.

I reckon if you tear one down you could glue it to the inside of the enclosure on the side where you fitted the RP-SMA plug and get good performance.

Would probably recommend covering it with heatshrink so it can't contact anything inside if it moved.

If you like, drop me a PM and I can chuck it in the post for you?
« Last Edit: January 02, 2021, 10:21:27 am by CJay »
 
The following users thanked this post: carl0s

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
My guess upon seeing the title was "cap dropper", but it turns out to be a more powerful - and also non-isolated - buck regulator.

...you could try using a piece of mains cord with the end capped off as the antenna, that will definitely be enough insulation and should not affect the signal strength that much, especially given that your modded antenna has a plastic cover anyway.

That's an interesting idea, however I think it would be far too large to solder. The coax pigtail that I used there is 1.13mm O/D. I had to do all the work under the microscope.

I was thinking about it some more (while trying to get to sleep at 3am ;-) ). I think I'm going to rip apart the antenna that I've used, and solder it directly, so no pigtail or anything. Then fixup the hole that I've put into the side of the unit of course!
« Last Edit: January 02, 2021, 10:44:32 am by carl0s »
--
Carl
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
If you strip the rubber ducky plastic off it you end up with something similar to this:

https://martybugs.net/wireless/rubberducky.cgi

Not hugely useful in itself but there are antenna which are made more cheaply and instead of the RP-SMA plug/socket, come with a length of coax that's terminated with a U-FL, Hirose like the one in the attached pic or even soldered.

I reckon if you tear one down you could glue it to the inside of the enclosure on the side where you fitted the RP-SMA plug and get good performance.

Would probably recommend covering it with heatshrink so it can't contact anything inside if it moved.

If you like, drop me a PM and I can chuck it in the post for you?

I think we were writing posts at the same time. Thank you for the offer of posting me that antenna! I do have a few here already though and also various ancient Netgear thingies that I've taken off site that I can pull apart.
I am going to do as you've said though - dismantle, solder direct, and glue to the inside.
--
Carl
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1273
  • Country: ru
If you are confused by the weak potential on the metal part of the antenna, cover it with an insulating varnish.  :)

No. I know you're not used to modern safety standards over there, but that's not an excuse.

The insulation of the metal parts also meets your safety standards. The manufacturers of this device did so, apparently, and avoided the use of grounding. Do not like the varnish - close a separate plastic box, but be sure to get a safety certificate on the box and check for insulating properties.  :)

What metal parts? It's a plastic enclosure. A little varnish does not make for safe insulation.

Connector has naked metal. :) Will the shrink tube suit you? :)
And sorry for my English.
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
If you are confused by the weak potential on the metal part of the antenna, cover it with an insulating varnish.  :)

No. I know you're not used to modern safety standards over there, but that's not an excuse.

The insulation of the metal parts also meets your safety standards. The manufacturers of this device did so, apparently, and avoided the use of grounding. Do not like the varnish - close a separate plastic box, but be sure to get a safety certificate on the box and check for insulating properties.  :)

What metal parts? It's a plastic enclosure. A little varnish does not make for safe insulation.

Connector has naked metal. :) Will the shrink tube suit you? :)

You know that I added the connector, yes? From the factory, it is a PCB-antenna only.
--
Carl
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
I've just moved the box to a different wall in the same utility/boiler room - which is technically outside - that's the problem, a third of the house, the left edge (kitchen, utility room, other bit), is a single storey extension and so has thick walls between itself and the main area where the ceiling WiFi AP is. Also being single story, I'm a bit stuck for throwing CAT5 or other cables over the ceiling - there's no rooms above with floorboards that I could lift, and of course plastic trunking isn't wanted in a house. I'm going to have to pull apart a plasterboard ceiling and make good afterwards if I want to run cables. Going around the outside of the house doesn't seem straightforward either. If I could fit it where the existing electro-mechanical thermostat is fitted, that would be a dream, but alas they have run 4-core cable and I need 5 cores.

Anyway I've moved it to another wall in the utility room for testing. This is a location I tried previously too, and I now see -57dBm overall signal strength reported on my access point, and a signal to noise of 50 to 52dB. This is a drastic improvement on -76dBm ~ -79dBm with an snr of 30dB that I started out with!

The true test however, with this Drayton Wiser Hub R, is to send an HTTP request to it. Pings are usually fine, but if you send an HTTP request (just put the IP into a web browser, which should return a HTTP 401 Error Unauthorized', and keep clicking refresh, how many times you can click refresh without it hanging and resetting the connection seems to be the true test of whether it's going to work properly or not, i.e. whether the App on your phone is going to sit there and hang for 5 minutes saying that it's "Searching for your Hub..."

I am still having this problem though, so while the WiFi numbers reported on my AP are better, it's still not reliable enough. It is much better, and I suspect I will be able to find a reliable location inside the utility room now with the improved antenna. I am going to do as I said above and fit the antenna internally, then find the best location in this room. If, even with the improved WiFi, it's still not good enough, then I'll put another small AP in the utility room, probably running off a HomePlug Powerline adapter for now, until I feel ready to rip the ceilings apart.

Incidentally, I have had it sat in the livingroom (same room as WiFi AP) for a few days and don't have the problem there.

I think there is some sort of design flaw in this hub overall though, perhaps in its HTTP server. For it to respond to pings just fine, but then the HTTP request hangs, and one hang causes the whole HTTP side to die for a minute or more at a time, all the while it's responding to pings just fine, makes me think that the HTTP server can only handle one connection at a time or something, and has a long timeout. It seems to be very unresilient anyway.
--
Carl
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
This antenna has an interesting construction.
I'm almost certain it's 2.4GHz. I think it's one of a few that I ordered from Farnell to try with the HackRF. It's SMA instead of RP-SMA, or something. Other way round to usual WiFi antennas anyway.

I never realised the knurled barrel at the bottom was all-metal. I always thought it just had a conductive sleeve inside and was plastic. That might explain why I so easily felt that 120V.















--
Carl
 

Offline carl0sTopic starter

  • Supporter
  • ****
  • Posts: 276
  • Country: gb
I don't get it.
I've now done what I thought to be a thoroughly lovely job, but the performance is terrible!
It's mounted inside, no pigtail, connections all good, although cable strain a possible concern (bending around the board), and it's pretty much in-line with the keep-out zone of the board, i.e. no ground plane, yet now the performance is abysmal. Same antenna as before, minus the pigtail etc.

I wonder if this antenna doesn't like having that 120v AC on its ground?









« Last Edit: January 02, 2021, 03:13:10 pm by carl0s »
--
Carl
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf