5

I'm making a device which is inside in an enclosure and at this point of the project it's relevant to understand if the enclosure/box was open. I was trying to understand if I can try to figure it out with a magnet and a ReedSwitch but if someone open my device without the power plugged in, I have no way to realize if it was open or not. Or do I have?

So the device should be easily opened by me if wanted but if someone decide to open without my consent I should receive a warning by the system remotely.

Relevant point: There's no battery as backup. Can someone give me a tip to prevent this issue

scuba
  • 453
  • 1
  • 6
  • 22
  • Let's say we have a fridge, we can check if the fridge is opened. But if we drill a hole in the back of the fridge and steal the vegetables from there, does that also count as opened? – Paul Jun 02 '15 at 14:26
  • If you drill a hole in my enclosure/box you will touch the electronics rapidly and the device might not work. Not only that, if the enclosure seems to be damaged I refuse to receive it "under waranty". – scuba Jun 02 '15 at 14:35
  • 1
    Fill it with cyanide gas (joke)? – Andy aka Jun 02 '15 at 15:00
  • Why not add a battery backup? Also, when you Say understand, so you mean you, or that your system can tell if it was opened? – Passerby Jun 02 '15 at 15:08
  • At this moment I don't have space for that. When I say "understand" I mean "me" but through the system (using the electronics). – scuba Jun 02 '15 at 15:12
  • 2
    What's wrong with one of those "Warranty void if seal broken" stickers that everybody else uses? You put it across either one of the access screw heads or a joint in the enclosure. – Dave Tweed Jun 02 '15 at 15:32
  • A sticker by itself doesn't solve the problem. You can always remove it carefully and I want to have an input in the system. – scuba Jun 02 '15 at 15:33
  • What about using glue to make sure there's no non-destructive way of opening the case? – JimmyB Jun 02 '15 at 15:43
  • If the glue was too strong I probably will not able to open the device anymore. With that solution I don't have any input in the system as well. – scuba Jun 02 '15 at 15:48
  • You do not state that/if/how frequent the case will have to be opened legitimately. – JimmyB Jun 02 '15 at 15:51
  • That's true. So the device should be easily opened by me if wanted but if someone decide to open without my consent I should receive a warning by the system remotely. – scuba Jun 02 '15 at 15:56
  • 1
    Maybe have a look at something like ST's [M41ST87W](http://www.st.com/web/en/resource/technical/document/datasheet/CD00003341.pdf) for tamper detection. Needs a battery supply, but @ 500nA a single Li cell should last for years. – JimmyB Jun 02 '15 at 15:59
  • Would my edit (all the way at the bottom under the last fat text) be something you're willing to try? – Asmyldof Jun 02 '15 at 17:50
  • It was useful @Asmyldof. I will definitely try one of these recommendations posted on this thread. – scuba Jun 03 '15 at 09:29
  • 1
    @scuba I was curious, so I tested it myself with that type, but supplied as NEC. See my last Edit (edit3 all the way down). I promise I'm done editing now. The ones I ordered cost in the $2 area, depending on voltage. – Asmyldof Jun 04 '15 at 11:40

2 Answers2

5

EDIT2: Since your requirements are now changed/updated/edited compared to the original question without comments, I'll leave the irreversible ones on top and put the reversible ideas in a different section. For (no-power-needed-)reversible, scroll down to the next fat-printed head

You need a corruptible memory. If you need to only corrupt it once, it's easy:

Add a thin wire (gauge 40 or such) to your design. Add a small hook or similar construction to your case that is guaranteed to pick up that wire when you close it.

When you open it, the wire will snap and at any later power-up you can see that no current can go through it. 40-G is thin enough to be mistaken for a hair by non-EE persons and still thick enough to pull a weak-pull-up inside a uC to ground.

Other similar destructive systems exist that can also not easily be reproduced.

A long time ago I saw a small very thin custom made glass tube with a thin filament. If you broke the glass, by removing the PCB, the test current of the device would evaporate the filament, just like the ones in a light bulb. The device knows the resistance of the filament, which probably was super specific and sees if at 1mA or 10mA the right voltage falls over it. Since it wasn't a searchable part that makes replacing it with the right fake-resistor a lot harder once it's blown.

So a tiny hobby-bulb, if you can still find those could do. I have never seen those glass tubes in retail anywhere and these were definitely self-designed by the device manufacturer.

EDIT: You can also try if you can get a piece of Flex PCB in a gap somewhere and make a construction that harpoons into a hole in the centre. By adding your own pattern of traces to it you can make it very specific. Then if it is opened again, the FPCB rips apart or away: connection broken.

All in all, it really depends on your domains of most-experience, the required specificity, reliability and the maximum production cost, really. There's a 1001 ways to do it.

(End of EDIT)

Reversible By you, but not others:

Electro-Magnetically resettable switch:

If you need many-time corruptible, you are looking at things with resettable nature. You could look for a switch that can be set through releasing pressure (like a micro switch) but only reset by activating a coil, once the lid is closed again. I'm sure I have seen one working the other way around: set by pushing in, reset by pulsing 12V on a coil.

Since the coil is connected to the PCB and the switch looks like a normal "can't operate while opened" most engineers will assume it's a normal switch till it's too late and you can then decide to either reset it or not with the coil, depending on your intentions.

Unfortunately I do not remember the brand of the switch I had seen, else I would have searched their catalogue for the opposite type.

I just had a look at Digikey and Omron, Omron has the type of switch, but only as a rocker, so they can always be reset by hand, but they call it "Remote Resettable Switch" maybe you will have more luck finding a brand with those words.

EDIT: Added:

Latching Relay

A Latching relay is a cool little toy, it works just like a toggle switch: You set it to one side and it stays there, when you activate a second coil or magnetise the coil the other way, it flips over.

How do you use that? Here's the trick:

You can buy a single-coil bi-stable relay or single-coil latching relay, such as this one:

Mouser Listing for a Single Coil Relay

KEMET's datasheet of that relay, in case Mouser discontinues and KEMET doesn't

If you look at its datasheet you see that Kemet also has other voltages, EE2-xxS???, where XX is the voltage, 3 for 3V, 5 for 5V, 12 for 12V and such. The S means single-coil latching, that's what you want, the ??? are connection options, I'll leave that to you to choose.

Now these relays use a magnet on the rocker inside the little plastic box, so if you power the coil one way, the magnet is pulled towards it, when you power it the other way, the rocker is pushed away.

Can you see it coming?

Mount a strong enough neodymium magnet in your box (shield it so it doesn't cause trouble on the outside) somewhere near where the relay is on the side of your PCB, such that it has to move past the relay to open the box.

To anyone who hasn't read this post it will look like some relay needed for operation of your circuit, especially if you mount a bogus reed-contact near the magnet (they might short your bogus reed, without avail). But when the lid moves off the box, the magnet moves past the relay and pulls the relay into its "box has been opened" position and by magnetising the relay through some secret code, function or whatever you can reset the status when you have serviced the device yourself.

NOTE: This is a trick that works with many single-coil latching relays, but not with all, some are shielded. The tiny ones like the KEMET one I linked usually aren't, but you must always test a specific relay type with your chosen magnet before you specify it as a mass-production item!

(And I feel a bit stupid for not thinking of the relay right away)

EDIT3:

Because I was curious, I tried the Relay solution with the EE2 type from NEC (I'm too lazy to see if KEMET and NEC are the same these days, but the type numbers work exactly the same), supplied by Farnell/Element14 and it works an absolute charm. You will probably need a good neodymium magnet, but it is powerless, resettable. I built a little test-rig with an old linear motor and a home built PC-USB controller and it reports 100% success rate with 500 tests.

Types tested:

  • EE2-3SNUH
  • EE2-5SNUH
  • EE2-12SNUH

It didn't work with my smallest magnet (the one I stock for signalling with tiny Reeds), and one step up was quite ridiculous (10x10x10mm). It worked better at the coil side, which is logical. I expect a 5x5x2mm magnet to be sufficient, but some experiments in your exact set-up will still be needed.

Asmyldof
  • 18,299
  • 2
  • 33
  • 53
4

It depends if you are trying to detect a casual breach of the enclosure or a more deliberate intrusion. Since your premise is that no power is available, electronic means are out.

Putting a bit of paint on a screw (pick an oddball color) will allow most most casual entries to be visually detected.

Putting a custom label with permanent adhesive over a countersunk screw will allow most entries to be visually detected unless the person has access to your custom labels or identical counterfeits. A further step would be to put something in a cavity beneath the label that would be dissolved if the label was chemically removed.

Pretty much any mechanical solution has the problem that you have to be able to close up the enclosure and (in theory) the attacker could do the same thing you are doing during assembly and foil the method. There are various security seals commercially available (used on cargo containers, trucks, cryogen dewars etc.) If they are serialized, they are pretty secure:

http://www.americanseals.com/sites/default/files/pull_tight_plastic_seals-model_pts-8005-big.jpg

If you can allow a backup battery (or a RAM/RTC+RAM chip with built-in battery), that could be used to store information on a switch closure. This method is used to detect chassis intrusion on some secure PCs. There are chips designed for this kind of application such as the M41ST87W as @HannoBinder mentioned and even the DS3655 and similar parts (NDA required to get the datasheet), which is very expensive.

Spehro Pefhany
  • 376,485
  • 21
  • 320
  • 842