Using Perimeter Detect

do you have any answer to give me for my last question?
Thx by advance!

  • Power quality monitors only +5V from the Raspberry Pi.
  • With Zymkey 4, the coin cell removal is not interpretted as an attack, so keys will not be deleted.
  • With Zymkey 5, the coin cell removal can be interpretted as an attack, and the response policy is set by the user prior to locking. Zymkey 5 is available on pre-order here:

ok thx! How the zymkey 5 will “work” to detect a coin cell removal during the next boot?

We do not disclose the details of “how” it works, but it will work :wink:

On the top of this guide it mentions Application Examples & Available Dev Kits as “Coming soon”. In a post on Oct '17 it was also said that a general use case app would be provided the next week. Are these items publicly available anywhere and if not, is there any plan to add them for the community? I’m looking for a step by step guide for taking a Zymkey 4i and Protokit4 and showing how to put them together with an example circuit using the perimeter-detect features.

Also it would be useful if someone answered the questions on this post:

Jason, thanks for pointing out that it would be helpful to have a a step-by-step guide explaining how to use perimter detect with protokit. We will take a look at this and get something posted by 2/11, and also repond to your specific questions. Thx

Thank you for the quick reply! I look forward to the post!


Here are answers to Sept '18 questions you referenced:

Greetings! Were you able to look at it?

Thank you!

@jason ,

We have added some examples of how to use perimeter detect with Protokit 4 - we will add more examples shortly:

I’m currently working on a project involving two zymkeys (4i) + two Raspberry Pi and I would like to use the perimeter detection feature.
I don’t need the Protokit 5 ( but I would be very interedted in buying the small adapter that is shown on the following page (intented for the legacy Protokit 4):
Perimeter Detect - Application Examples
It’s meant to to connect the microUSB to standard (easier to use) connector (as the one on the ProtoKit board).
The link provided to by some is no more valid. :cry:
Do you still sell these adapters?
Thanks in advance!

@squitel - the link is now fixed. The adapter is available.


I’m working on a project and I need to use the perimeter detection. I’m using the python library, but I doesn’t understand how to use the library.
I made a script to display the information and it’s works perfectly. (Here’s the script)

import zymkey
import time

while True:

But when I tried to set event action and retreive this event, the function wait_for_perimeter_event() always return None. Here’s the script I made :

import zymkey
import time

print(zymkey.client.set_perimeter_event_actions(1, action_notify=True, action_self_destruct=False))
print(zymkey.client.set_perimeter_event_actions(0, action_notify=True, action_self_destruct=False))
while True:
    res = zymkey.client.wait_for_perimeter_event()
    if not res:

Can you tell me what I did wrong ?
Thanks in advance !

@finbarr - Thank you very much!

When the Zymkey is in DEVELOPER MODE (temporary binding) AND Perimeter Event Actions set to “ “selfdestruct”.
Will the zymkey destroy all it’s key material when a detection event is triggered ?
Or does the zelfdestruct only work when de lock tab is cut ?


If the tab is NOT cut, and ‘selfdestruct’ is set, then the key material will NOT be destroyed.
If the tab IS cut, and ‘selfdestruct’ is set, then the key material will be destroyed.

Ok - that is clear.

and when the tab is cut with ‘selfdestruct’ set there is no way , even when logged on ‘legally’ to the Rpi,
to alter the settings from ‘selfdestruct’ to back ‘do nothing’ ( might be usefull in some cases).

Am I correct ?

@r2d2 You are correct - “self destruct” means “self destruct”. No back doors to unself destruct.

After self destruct, can I re-use the hardware, with creating new keys, or should I throw it to the bin and buy new one ?

1 Like

With Zymkey4, when set in production mode (tab cut) and self-destruct, the key slots are destroyed and not re-usable.