Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
UNIVERSAL CONTROL MODULE FOR ELECTRICAL LOCK, RETROFIT AND METHOD FOR OPERATING
Document Type and Number:
WIPO Patent Application WO/2017/071712
Kind Code:
A1
Abstract:
A control unit (23) for retrofit to electromechanical or magnetic door locks (2). The control unit (23) comprises a casing (20) with an electrical exits port (35a, 35b, 35c, 35d) that is connected to the electrical connectors of a standard electromechanical door lock (2) in order to provide an additional way of controlling the lock (2). Especially, the external control unit (23) receives lock commands from a mobile device, such as a telephone (22), for locking or unlocking the door lock (2).

Inventors:
OVERGAARD HENNING (DK)
Application Number:
PCT/DK2016/050341
Publication Date:
May 04, 2017
Filing Date:
October 27, 2016
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DANALOCK IVS (DK)
International Classes:
E05B47/00
Domestic Patent References:
WO2011128901A12011-10-20
WO2006098690A12006-09-21
Foreign References:
US8552875B22013-10-08
US5083448A1992-01-28
US20020183008A12002-12-05
US5903226A1999-05-11
Other References:
See also references of EP 3397827A4
Attorney, Agent or Firm:
PATRADE A/S (DK)
Download PDF:
Claims:
CLAIMS

1. A method for retrofitting an external control unit (23) to an existing electrically activated door lock (2) in a door (1) and causing locking and unlocking of the door lock (2) by the retrofitted external control unit (23),

wherein the door lock (2) comprises

- a locking mechanism (4, 6, 7) that is electrically controllable for keeping the door (1) closed or open upon activation of the locking mechanism (4, 6, 7) by electrical power;

- a first power supply (10) electrically connected to the locking mechanism (4, 6, 7) by a first electrical wire connection (11) for causing activation or deactivation of the locking mechanism (4, 6, 7) by electrical current from the first power supply (10) to the locking mechanism (4, 6, 7) through the first wire connection (11);

- a first power source (19) electrically connected to the first power supply (10) by a second wire connection (21) for providing electrical current to the locking mechanism (4, 6, 7) via the first power supply (10);

- a first controller (5, 14, 17, 17') functionally connected to the power supply (10) for causing the first power supply (10) switching on or off the electrical current from the first power source (19) through the second wire connection (21), through the first power supply (10), and through the first wire connection (11) to the locking mechanism (4, 6, 7);

wherein the method comprises providing an external control unit (23) in addition to the power supply (10) and the first power source (19) and the first controller (5, 14, 17, 17');

wherein the external control unit (23) comprises

- a second power source (36, 40) different from the first power source

(19) and configured for supply of electrical current for activation of the locking mechanism (4, 6, 7);

- a housing (34), and inside the housing a microprocessor (33) and a short range wireless digital data signal transceiver (25) that is electroni- cally connected to the microprocessor (33) for transfer of the digital data signals between the transceiver (25) by the microprocessor (33);

- a first electrical connection port (35a, 35b) in the housing (34) connect- able via a first switch mechanism (45) to the second power source (36, 40) for receiving electrical current from the second power source (36, 40) ; wherein the m icroprocessor (33) is operationally connected to the first switch mechanism (45) and configured for causing the first switch mechanism (45) switching on and off the current through the first con- nection port (35a, 35b) according to program med operational steps in the m icroprocessor (3) ,

- a further electrical connection port (35c, 35d) provided with a two pole wire connector (48c, 48d) with a second switch m echanism (46c, 47c, 46d, 47d) between its two poles for electrically connecting or disconnect- ing the two poles with each other for operating the lock (2) by connecting or breaking a current circuit; the m icroprocessor (33) being operationally connected to the second switch m echanism (46c, 47c, 46d, 47d) for causing it electrically connecting or disconnecting the two poles with each other according to program med operational steps in the m icroprocessor (33) .

the m ethod further com prising

- electrically connecting the first connection port (35a, 35b) or the further connection port (35c, 35d) by a third wire connection (24, 24') to the lock (2) as an additional control mechanism for locking or unlocking the lock (2) ;

- providing a mobile device (22) configured for short range wireless digital data signal com m unication and establishing a short range wireless digital data com m unication link (26) between the mobile device (22) and the transceiver (25) and exchanging digital data be- tween the mobile device (22) and the m icroprocessor (33) via the transceiver (25) ;

- as part of the digital data exchange between the mobile device (22) and the m icroprocessor (33) , initiating a com m and session and sending a digital locking or unlocking com mand from the mobile device (22) to the m icroprocessor (33) and operating the first switch m echanism (45) or the second switch mechanism (46c, 47c, 46d, 47d) by the m icroprocessor (33) in accordance with the digital locking or unlocking com mand for causing corresponding locking or unlocking of the lock (2) .

2. The m ethod according to claim 1 , the method further com prising identifying whether the door lock (2) com prises a relay ( 1 2) as part of the power supply ( 1 0) or not, and in the case that the power supply (1 0) does not com prise a relay ( 12) , identifying the first connection ( 1 1 ) giving electrical access to the locking mecha- nism (4, 6, 7) and connecting the third wire connection (24) to the first connection port (35a, 35b) of the external control unit (23) and to the first wire connection (11); upon receipt of the digital command by the microprocessor (33), operating the locking mechanism (4, 6, 7) by the external control unit (23) by feeding current from the second power source (36, 40) through the first connection port (35a, 35b) of the external control unit (23) to the locking mechanism (4, 6, 7) via the third wire connection (24) and via the first wire connection (11) as a further mechanism of operating the lock (2). 3. The method according to claim 1 or 2, the method further comprising identifying whether the door lock (2) comprises a relay (12) as part of the power supply (10) or not; and

- in the case that the power supply (10) does comprise a relay (12), identifying whether the relay (12) comprises a current input to the relay (12) for operating the relay (12) by an external current; in the affirmative, electrically connecting the third wire connection (24') to the first connection port (35a, 35b); upon receipt of the digital command and as a consequence thereof, operating the locking mechanism (4, 6, 7) by the external control unit (23) by feeding current from the second power supply (36) via the first connection port (35a, 35b) via the third wire connection (24') to the relay (12) as part of the power supply (10) as a further mechanism of operating the lock (2); or alternatively

- in the case that the first power supply (10) does comprise a relay (12), identifying whether the relay (12) has two current output poles for operating the first power supply (10) in dependence of the current output poles being electrically connected to each other or not; in the affirmative, electrically connecting the two pole wire connector (48c, 48d) of the further connection port (35c, 35d) with the two current output poles of the relay (12) in the first power supply (10) by the third wire connection (24'); as a consequence of receiving the digital command by the microprocessor (33), operating the locking mechanism (4, 6, 7) by the exter- nal control unit (23) by electrically connecting or disconnecting the two poles of the two pole wire connector (48c, 48d) with each other by a second switch mechanism (46c, 47c, 46d, 47d) and thereby closing or breaking a current circuit from the relay (12) in the first power supply (10), and as a consequence of the closing or breaking the current circuit, causing the first power supply (10) to operate supply of current to the locking mechanism (4, 6, 7) from the first power source (19) via the first wire connection (11).

4. The method according to claim 2, wherein the locking mechanism (4, 6, 7) comprises a extendable-retractable lock bolt (4) in a door panel (1') of the door cooperating with a notch in a door fram e ( 1 ') ; or wherein the locking mechanism (4, 6, 7) comprises a movable shutter cooperating with a lock bolt; wherein the m ethod comprises activating the driving unit (6) by current from the external control unit (23) , thereby extending or retracting the lock bolt (4) or the moveable shutter.

5. The m ethod according to any preceding claim , further com prising, providing a battery (36) as part of the second power source (36, 40) inside the housing (34) of the external control unit (23) , the battery (36) being electrically connected to the m icroprocessor (33) , to the first and second switch m echanism (45, 46c, 47c, 46d, 47d) , and to the first and further connection ports (35a, 35b, 35c, 35d) .

6. The m ethod according to claim 6, wherein the battery (36) a voltage less than 1 2 volts and the method com prises providing a transform er (40) and stepping-up the voltage from the battery (36) to a value in the interval of 1 2V-24V, electrically connecting the battery (36) to the first connection port (35a, 35b) through the transform er (40) , and providing the stepped- up current to the first connection port (35a, 35b) . 7. The method according to any preceding claim , further com prising, as part of the com mand session, by the mobile device (22) or by the m icroprocessor (33) of the external control unit (23) or by both in cooperation automatically creating a session encryption key and in encrypted form , by encryption with the session encryption key, exchanging digital data between the mobile device (22) and the m i- croprocessor (33) by the short range wireless digital data com m unication link (26) .

8. The m ethod according to any preceding claim , further com prising, providing a plurality of door locks (2) and an equal plurality of external control units (23) and connecting one of each of such external control units (23) to one of each of the plurality of door locks (2) ; prior to establishing a com mand session between the mobile device (22) and one of the control units (23) , establishing a short range wireless digital data com m unication link between the mobile device (22) and the m icroprocessors (33) in all of the plurality of external control units (23) and ex- changing wireless digital data without encryption between the mobile device (22) and the plurality of external control units (23) ; from each m icroprocessor (33) of the plurality of external control units (23) subm itting a unique identifier, I D, of the corresponding external control unit (23) to the mobile device (22) ; receiving the individual I Ds on the mobile device (22) and indicating theses on a user inter- face (27) of the mobile device (22), and by the mobile device (22) receiving an indication from a user for selection of one of the IDs among the other identifiers on the user interface (27), the indication being a pointer action on the user interface or a keyboard action on the mobile device (22); as a response to the indica- tion, initiating and executing the command session only with the external control unit (23) that corresponds to the specifically selected ID.

9. A method according to any preceding claim, wherein the method comprises automatically establishing a short range wireless digital data communication link (26) between the mobile device (22) and the external communication unit (23) when the mobile device (22) is within a communication range with the external control unit (23), and as a response of the established communication link (2) with a short range communication signal strength being above a pre-set level, the pre-set level being above 20% of a maximum signal strength, automatically initi- ating the command session without interference from a user and causing an unlocking action.

10. A method according to any preceding claim, wherein the method comprises, installing the locking mechanism (4, 6, 7) in the door (1) and operating the mechanism by the first power source (19), the first power supply (10) and the first controller (5, 14, 17, 17') for at least one year; then at a later point in time retrofitting the external control unit (23) to the lock as a second lock control mechanism. 11. An external control unit (23) for connection to an electromechanical lock (2) operated by a method according to any preceding claim, the external control unit (23) comprising

- a power supply (36, 40, 45);

- a housing (34), and inside the housing (34) a microprocessor (33) and a short range wireless digital data signal transceiver (25) configured for receiving digital data commands from a mobile device (22) and which is electronically connected to the microprocessor (33) and configured for transmission of digital data signals between the transceiver (25) to the microprocessor (33);

- a first electrical connection port (35a, 35b) in the housing (34) for receiving electrical power from the power supply (36, 40) and providing this electrical power to the lock (2) by a wire connection (24, 24') between the first connection port (35a, 35b) and the lock (2); wherein the microprocessor (33) is operationally connected to the first connection port (35a, 35b) via a first switch mechanism (45) for causing switching on and off the current through the first connection port (35a, 35b) according to program m ed operational steps,

- a further electrical connection port (35c, 35d) provided with a two-pole connector (48c, 48d) and with a second switch mechanism (46c, 47c, 46d, 47d) between the two poles of the two-pole connector (48c, 48d) for electrically connecting or disconnecting the two poles with each other for operating the lock (2) by connecting or breaking a current circuit; the m icroprocessor (33) being operationally connected to the second switch m echanism (46c, 47c, 46d, 47d) for causing the second switch mechanism (46c, 47c, 46d, 47d) to electrically connect or disconnect the two poles with each other according to program med operational steps.

1 2. An external control unit according to claim 1 1 , wherein the further connection port (35c, 35d) comprises a second electrical connection port (35c) with a second two-pole connector (48c) , and the second switch m echanism (46c, 47c, 46d, 47d) comprises a fail-open relay (46c) that disconnects the two poles of the second two-pole connector (48c) in default condition and connects the two poles of the second two-pole connector (48c) in active condition caused by supply of current to the fail-open relay (46c) ; and wherein the further connection port (35c, 35d) comprises a third electrical connection port (35d) with a third two-pole connector (48d) and the second switch m echanism (46c, 47c, 46d, 47d) comprises a fail- closed relay (46d) that connects the two poles of the third two-pole connector (48c) in default condition and disconnects the two poles of the third two-pole connector (48c) in active condition caused by supply of current to the fail-closed relay (46c) .

1 3. An external control unit according to claim 1 1 or 12, wherein the power supply (36, 40, 45) com prises a battery (36) that is electrically connected to the first connection port (35a, 35b) through a transformer (40) for stepping-up battery voltage from a value less than 1 2 V to a value in the interval of 1 2 V-24V.

1 4. An external control unit according to claim 13, wherein the wherein the first switch m echanism (45) is digitally connected to the m icroprocessor (33) for receiving and executing digital com m ands for adj ustment of the voltage at a current exit of the transform er (49) , the current exit being connected to the first electrical connection port (35a, 35b) .

1 5. Use of an external control unit according to any one of the claims 1 1 - 1 4 for electrically operating a door lock as a secondary tool in addition to a first electrical door locking mechanism .

Description:
Universal control m odu le for electrical lock, retrofit and m ethod for operating

Fl ELD OF THE I NVENTI ON

The present invention relates to wireless control modules for electrom echanical locks. I n particular, it relates to retrofit of a control unit to an already existing electrically operated door lock in order to provide a secondary tool for operating an existing lock.

BACKGROUND OF THE I NVENTI ON

Electrom echanical door locks are operated by various methods, for example by a wired remote control, which in the simplest form is a push button provided re- m otely from the door, for exam ple in an apartment rem otely from the entrance door of the building. For accessing a building, it is also known to use keypads that are configured to open a lock when receiving an input of a predeterm ined alpha- num erical code. Furthermore, wireless com m unication systems between locks and remote controls are com m on, such as based on infrared signals. The latter type of com m unication is typically used in garage doors, the term door here including various types of garage ports. Typically for each type of lock, there is a specific type of com m unication , and one infrared remote, typically, can only be used for a single lock. Generally, latest modern locks, which are telephone operated for locking and opening, are becom ing increasingly com mon , not only to provide better comfort to the user but also for improving the security. However, the change from an older, simpler lock type to the modern advanced lock system is an expensive and m echanically not always easy task. Especially, the fitting of the door lock inside door panels m ay require that the door itself is modified or changed, which is often not desired. Also, the existing remote operation of door locks typically has to be changed, which is not always wanted, especially when a certain system is well established. For this reason , it is desirable to provide a retrofit lock system for electromechanical door locks which is easy to install. Especially, for such system , it is desirable to provide a retrofit system that provides the sam e high security, including encrypted com m unication, and versatility as modern type telephone operated door locks, preferably, including the use of one telephone for operating various locks. Also, it is desirable to provide a retrofit im provem ent such that a large variety of locks can be operated with a single wireless device.

DESCRI PTI ON / SUMMARY OF THE I NVENTI ON

It is therefore an objective of the invention to provide an im provem ent in the art. I n particular, it is an objective of the invention to provide a universal module that can be operated by wireless signals, especially from a mobile phone, and which can be configured for control of a large variety of electrom echanical door locks. A further obj ective is to provide the module for retrofit on existing locks. These obj ectives are obtained with a retrofit wireless control system and method for electrom echanical locks as explained in more detail in the following. The retrofit system as described in the following concerns retrofitting and operating an external control unit provided to an existing electrically activated door lock for causing locking and unlocking by the retrofitted external control unit. Such system is especially suitable for the following type of lock. The door lock com prises a locking m echanism that is electrically controllable for keeping the door closed or open upon activation of the locking mechanism by electrical power. For exam ple, the door lock is of the electromechanical type and comprises an extendable-retractable lock bolt in a door panel co-operating with a notch in a door frame. Alternatively, the locking m echanism comprises a movable shutter co-operating with a lock bolt, the movable shutter typically provided in the fram e of a door. A com bination of these two is also possible. The lock bolt or the shutter, are driven by an electromechanical driving unit, for exam ple motor or solenoid, which in the case of a lock bolt is typically mounted inside the door panel, also called door leaf, and which in case of the shutter typically is mounted in- side the door frame, as it is typical in strike locks.

I n such electrom echanical locks, the locking mechanism is activated by current from a first power supply that is electrically connected to the locking m echanism by a first electrical wire connection causing activation or deactivation of the lock- ing m echanism by electrical power from the first power supply, for exam ple comprising an electrical relay, to the locking m echanism through the first wire connection. A first power source, for exam ple a battery, a generator, or a connection to the public power grid, is electrically connected to the first power supply by a second wire connection for providing power to the first power supply. The first power supply, for example comprising relay, is optionally provided in or on a casing for the lock but can also be provided remotely from the lock casing.

As a different alternative, the locking mechanism is a m agnetic lock without a driving unit.

I n order to control the first power supply, for example comprising an electrical relay, a first controller is functionally connected to the first power supply for causing the first power supply turning on or off electrical power from the first power source through the second wire connection, further through the first power supply, and through the first wire connection to the locking m echanism . I n the simplest form , the controller is a push button or door handle. I n more advanced system s, the controller is an alphanum eric key pad, a remote control or a mobile device, such as a mobile telephone or pager. This type of lock is of traditional type and com monly used.

For extension of the capabilities in controlling the door lock, an external control unit is provided in addition to the first power supply and the first power source and the first controller. Thus, it is an additional control unit for retrofit, which is provided, installed, and operated at a substantial later time than the mounting of the door lock, for exam ple at least one month or even at least one year later, although , typically, it is several years later.

The external control unit comprises a second power source different from the first power source and configured for supply of electrical current suitable to drive the locking m echanism in addition to driving the locking m echanism by the electrical current from the first power source.

The external control unit comprises a housing, inside which a m icroprocessor is provided as well as a short range wireless digital data signal transceiver that can com m unicate with a wireless device, such as a m obile telephone. The transceiver is electronically connected to the m icroprocessor for exchange of digital data signals between the transceiver and the m icroprocessor. The m icroprocessor is program m able for operation of the lock when receiving com m ands from a mobile de- vice, such as a mobile telephone, especially a smartphone.

For exam ple, in such case, the sm artphone would be equipped with a computer application , a so called APP, which provides the user with a suitable user interface on the display of the smartphone, facilitating the locking and unlocking of the door lock. Also, such APP can be used to autom atically cause opening of the door by using of the external control unit when the sm artphone is in the vicinity of the external control unit. The external control unit com prises a first electrical connection port in the housing for providing of electrical power to the lock by a wire connection between the connection port and the lock. Typically, the external control unit would be provided on the door panel or the frame, depending on the location of the driving unit, but it can also be mounted at some distance, although typically within a distance of a few meters and seldom at more than 1 0 m eter distance. I nside the housing, first electrical connection port is connectable via a first switch mechanism to the second power source for receiving electrical current from the second power source. The m icroprocessor is operationally connected to the first switch mechanism and configured for causing the first switch mechanism switching on and off the current through the first connection port according to program med operational steps in the m icroprocessor.

The current from the first electrical connection port can optionally be used for directly operating a lock mechanism , such as a solenoid or m otor. However, som e lock com prise a first power supply with an electrically operated relay that opens or closes supply of electrical current from the first power source. The external control unit can then instead be used to operate the lock directly or to operate the electrically operated relay of the first power supply. For exam ple, the user or installing person identifies that the door lock comprises a relay as part of the power supply or not, and in the case that the power supply does not comprise a relay, the first connection is identified which is giving electrical access to the locking mechanism and the third wire connection is electrically connected to the first connection port of the external control unit and to the first wire connection. Upon receipt of the digital com m and by the m icroprocessor the locking m echanism is operated by the external control unit in the following way. Current is fed from the second power source through the first connection port of the external control unit to the locking m echanism and via the third wire connection and via the first wire connection. The external control unit, thus, works as a further m echanism of operating the lock directly.

I n the case that the power supply does comprise a relay, the user or installer is identifying whether the relay comprises a current input to the relay for operating the relay by an external current. I n the affirm ative, the third wire connection is electrically connected to the first connection port. Upon receipt of the digital com m and by the m icroprocessor the locking mechanism is operated by the external control unit in the following way. Electrical current is fed from the second power supply via the first connection port via the third wire connection to the re- lay. The external control unit, thus, works as a further m echanism of operating the lock by operating a relay of the first power supply.

Some relays do not cause locking or unlocking by supply of external power but use an electrical circuit which when closed or broken causes the relay to initiate locking or unlocking of the door. For exam ple, such circuit can be closed by a simple push button.

For such types of relays in the first power supply, the further feature is useful. For such cases, the external control unit comprises a further electrical connection port provided with a two pole wire connector with a second switch mechanism between its two poles for electrically connecting or disconnecting the two poles with each other. These are used for operating the lock by connecting or breaking a current circuit. The m icroprocessor is operationally connected to the second switch m echanism for causing it electrically connecting or disconnecting the two poles with each other according to program m ed operational steps in the m icroprocessor. The further electrical connection port or ports of the external control unit can then be electrically connected by a wire connection to the lock as an additional control for locking or unlocking the lock. For exam ple, the user or installing person identifies that the door lock comprises a relay as part of the power supply or not, and in the case that the power supply does com prise a relay, it is identified whether the relay com prises two current output poles for operating the first power supply in dependence of the current output poles being electrically connected to each other or not. I n the affirmative, the two pole wire connector of the further connection port is electrically connected with the two current output poles of the relay in the first power supply by the third wire connection . As a consequence of receiving the digital com mand by the m icroprocessor, the locking mechanism is operated by the external control unit in the following way. The two poles of the two pole wire connector are electrically connected with each other or disconnected from each other by second switch m echanism , which is arranged for closing or breaking a current circuit from the relay in the first power supply. As a consequence of the closing or breaking of the current circuit, the first power supply is caused to operate supply of current to the locking m echanism from the first power source via the first wire connection . In advantageous em bodiments, the external control unit comprises connection ports that can provide current to a lock and ports that can be used for closing or breaking existing electrical circuits. This m akes the external control unit versatile. For exam ple, relatively to the explanation above, the external control com prises

- a housing ;

- the second power supply, for example a battery, the battery optionally being provided inside the housing ;

- inside the housing a m icroprocessor and a short range wireless digital data sig- nal transceiver configured for receiving digital data com m ands from a mobile device and which is electronically connected to the m icroprocessor and configured for transm ission of digital data signals between the transceiver and the m icroprocessor;

- a first electrical connection port in the housing for receiving electrical power from the second power supply and providing this electrical power to the lock by a wire connection between the first connection port and the lock; wherein the m icroprocessor is operationally connected to the first connection port via a first switch mechanism for causing switching on and off the current through the first connection port according to program med operational steps,

- a further electrical connection port provided with a two-pole connector and with a second switch m echanism between the two poles of the two-pole connector for electrically connecting or disconnecting the two poles with each other for operating the lock by connecting or breaking a current circuit; the m icroprocessor being operationally connected to the second switch m echanism for causing the second switch mechanism to electrically connect or disconnect the two poles with each other according to program med operational steps.

Optionally, the further connection port com prises a second electrical connection port with a second two-pole connector, and the second switch mechanism com- prises a fail-open relay that disconnects the two poles of the second two-pole connector in default condition and connects the two poles of the second two-pole connector in operationally-active condition caused by supply of current to the fail- open relay; and wherein the further connection port comprises a third electrical connection port with a third two-pole connector and the second switch m echanism comprises a fail-closed relay that connects the two poles of the third two-pole connector in default condition and disconnects the two poles of the third two-pole connector in active condition caused by supply of current to the fail-closed relay. For voltage adj ustm ent, the first switch m echanism is digitally connected to the m icroprocessor for receiving and executing digital com m ands for adj ustment of the voltage at a current exit of the transformer, the current exit being connected to the first electrical connection port.

Such external control unit can be used for electrically operating a door lock as a secondary tool in addition to a first electrical door locking m echanism .

For exam ple in practice, the mobile device is configured for short range wireless digital data signal com m unication. Prior to locking or unlocking, a short range wireless digital data com m unication link is established between the mobile device and the m icroprocessor of the external control unit and digital data are exchanged between the mobile device and the m icroprocessor by the short range wireless digital data com m unication link. For exam ple, this initial data exchange is used for recognition , handshaking and potentially also for creating an encrypted com m unication line.

Once the m icroprocessor is ready for receiving a com m and for locking or unlocking the door, a com mand session between the mobile device and the m icroproces- sor is initiated and, as part of the com m and session, an operation com mand is sent from the mobile device to the lock for locking or unlocking of the lock. As a result of the receipt of the operational com mand by the m icroprocessor, the m icroprocessor, which is functionally connected to the first connection port in the external control unit, causes the first connection port to provide electrical current for the lock via the third wire connection . This current is causing the lock to correspondingly lock or unlock. T is current is provided either directly to the driving unit, or the current is provided to the relay that controls the flow of current through the driving unit. Correspondingly, a m agnetic lock can be operated in this way.

I n case of retrofit for different types of older locks, the external control unit has to be adj usted to fit the electrical requirements for the door lock. For example, this can be done by program m ing the m icroprocessor, by providing a suitable transform er inside the external control unit or by re-wiring inside the external control unit. However, in order to facilitate mounting, the external control unit is advantageously already provided with a num ber of installed alternatives for connection to various locks. I n such case, for the various alternatives, a plurality of connection ports are provided, for example one or more of these configured for providing current in the range of 1 2V-24V for directly controlling a driving unit of the lock- ing mechanism in the lock or configured for providing electrical signals causing a relay of the door lock to lock or unlock the door lock for the case that the door lock is a fail-open or fail-closed type of lock. I n a simple version, the external control unit can swap between 12 V and 24 V upon com mand by the m icroprocessor, the latter being program mable to cause the correct voltage adj ustm ent.

For exam ple, if the relay is constantly provided with electrical power from a power source in order to provide power to the locking mechanism constantly to keep the door closed, which is a "fail-open" condition, a connection port m ay be connected serially in the wire between the power supply and the relay and be provided with a switch to cut the power to the relay in order to cause opening of the door lock by the external control unit.

The driving unit is activated by current from the external control unit in addition to the functions that are already present for the door lock without the retrofitted external control unit. For example, the driving unit would then extend or retract the lock bolt into or from a notch in the door fram e, determ ined by the current from the external control unit. Alternatively, moveable shutter in the door fram e would be m oved by the driving unit in order to release a deadbolt.

Optionally, the external control unit can be operated with an external power source that is wired to the external control unit. Alternatively or in addition , the external control unit is provided with a battery inside the housing, wherein the battery is electrically connected to the m icroprocessor for providing current to the m icroprocessor.

I n som e embodim ent, the battery is functionally connected to a connection port, for example the first connection port, for providing current to it. I n such case, it is necessary that the battery provides the proper voltage. If the battery has a volt- age less than 1 2 volts, a transform er m ay be provided and the voltage stepped-up from the battery voltage to a desired value, typically in the interval of 1 2V-24V. This stepped-up current is then provided to the respective connection port.

I n some embodim ents, the system also provides increased safety against so- called sniffing and subsequent fraudulent opening of doors. Sniffing is an unauthorized action where the wireless signal is read by electronic receivers operated by unauthorised persons, so called "m an-in-the-m iddle", who later use the read signal to open the door in the attempt of burglary. For increased security, especially against sniffing and hacking, it is advantageous if digital encryption is used for the com mand to lock or unlock. For exam ple, as part of the com mand session , a session encryption key is created by the m obile device or by the m icroprocessor of the external control unit or by both in coopera- tion. This encryption key is then used for encryption and decryption of the digital data that are exchanged between the mobile device and the m icroprocessor by the short range wireless digital data com m unication

I n order to prevent sniffing of the encrypted signal and later unauthorized use of it, advantageously, the encryption key is only valid for a short period. This im plies that the operation com mand is only executed by the external control unit if the execution is within a predeterm ined time lim it. For example, such predeterm ined time lim it is calculated as a predeterm ined time period that runs from a digital time stam p that is subm itted as part of the encrypted operation com m and. For exam ple, the duration of the time period is a few second, optionally 3 seconds.

I n a practical em bodiment, the session encryption key has validity at most until the predeterm ined time lim it, and the operation com m and is carried out by the external control unit only if session encryption key is valid at the time of decryp- tion. If the encryption key is not valid, the decryption may not be carried out, and the external control unit does not perform any locking or unlocking action . It should be emphasized that the decryption and execution of the operation comm and are regarded as quasi sim ultaneously for practical purposes, because the time span between the decryption and the execution of the com m and is short as compared to the predeterm ined time period. These m easure reduce the risk for fraudulent unlocking of doors.

I n certain embodim ents, if the locking or unlocking is prior to the predeterm ined time lim it, the encryption key is only valid until the instance of locking or unlock- ing by the external control unit. Thus, in the case where the unlocking or locking action is perform ed prior to the predeterm ined tim e lim it, this action overrules the predeterm ined tim e lim it and the encryptions key loses its validity as soon as the locking or unlocking is performed, even in the event that the predeterm ined tim e lim it is later than the decryption and execution of the operation com mand. This im plies the advantage that one encryption key can only be used once for locking or unlocking ; no re-use of a session encryption key is possible for repeated locking or unlocking. For example, in the event of locking by an authorised person, unauthorised third parties cannot use the sam e encryption key for a subsequent unlocking action , even if the tim e span between the locking and unlocking is short.

The external control unit in cooperation with the m obile device can be digitally connected periodically to a remote security server system . The server system can be used to receive and store log files and is involved in dedicated param eter settings of the external control unit, such as autom ated locking or unlocking at certain times each day. For such session, session encryption keys are used, as well, if the transm ission of data is desired to be encrypted for such other sessions.

As it appears from the above in relation to the encrypted com m unication, the retrofit allows upgrading of old type locks to highly advanced m odern door locks at m inim um effort and cost. The m obile device, for exam ple a smartphone, as mentioned above, can be provided with a suitable computer application , a so called APP, in order to enhance the versatility of the system . For exam ple, the APP can be used to associate the smartphone with a plurality of external control units, each unit connected to one of a plurality of door locks.

I f a mobile device is associated with a plurality of external control units connected to a sim ilar number of retrofitted door locks, the method, optionally, involves the following more detailed steps. Prior to establishing a com m and session between the mobile device and one of the control units, a short range wireless digital data com m unication link is established between the mobile device and the m icroprocessors in all of the plurality of external control units, and wireless digital data are exchanged, for exam ple without encryption, between the mobile device and the plurality of external control units. From each m icroprocessor of the plurality of external control units, a unique identifier, I D, of the corresponding external con- trol unit is subm itted to the mobile device and checked for authorization. The authorized individual I Ds are received on the mobile device and are displayed on a user interface of the mobile device. The user may then select one or more of the I Ds among the other identifiers on the user interface, and give an indication , such as a pointer action on the user interface or a keyboard action on the mobile device for which door lock to lock or unlock. As a response to the indication, a com m and session is initiated and executed only with that specific external control unit or those specifically selected external control units that correspond to the specifically selected I D or I Ds. Alternatively or in addition, a simplified method is used. In this embodiment, a short range wireless digital data communication link is established between the mobile device, for example smartphone, and the external communication unit as soon as the mobile device is within a communication range with the external con- trol unit. Thus, no action from the user is required. As a response of the established communication link with a short range communication signal strength being above a pre-set level, for example the pre-set level being above 20% of a maximum signal strength, automatically initiates the command session without interference from a user and causes an unlocking action. This is very practical for the user in that the mobile device can be kept inside the pocket or bag, and the door would open just when coming near to the door.

The control unit is particular suitable for retrofit in connection with old, already existing and already mounted electromechanical or magnetic door locks. However, it is also possible to use the system for new locks which are of simple character in order to enhance the functionality.

The term "door lock" is to be understood broadly and also covers garage ports and ports for estates, among others.

SHORT DESCRIPTION OF THE DRAWINGS

The invention will be explained in more detail with reference to the drawing, where

FIG. 1 is a principle sketch of a door with a door lock;

FIG.2 is a drawing of a door with an electromechanical door lock;

FIG.3 is a principle sketch of a door lock with a control system;

FIG.4 is a principle sketch of an external control unit and system for controlling the door locks, for example as a retrofit;

FIG.5 is a sketch of an integrated circuit board with three connection ports.

DETAILED DESCRIPTION / PREFERRED EMBODI ENT

FIG. 1 illustrates a door 1 with a door panel 1' that is swinging in and out of a frame 1". The door 1 comprises a door lock 2 with a first lock part 2' in the door panel 1' and a second lock part 2" in the frame 1". The first lock part 2' and the second lock part 2" are interacting for locking the door 1. For example, the first lock part 2' is a lock module with a movable lock bolt and the second lock part 2" is a recess in which the lock bolt engages for locking. Alternatively, the second lock part 2" is a movable strike faceplate that releases a lock bolt from the locked position by moving away from the lock bolt. A further alternative is a magnetic lock, where a magnetic field is electrically created to hold an electrom agnet against an opposite magnetically interacting pole.

I n the following, the device is explained in relation to a movable lock bolt, however, the principles are universal and also apply for all three types of locks as mentioned above as well as further electrom echanical types of locks.

FI G. 2 shows a door 1 with a door panel 1 ' in which a first door lock part 2' of a door lock 2 is mounted. The first door lock part 2' com prises a handle 3 that, when depressed, retracts a movable locking elem ent, which in this illustrated case is a movable lock bolt 4 that engages with a catching recess in the door frame 1 " when extended and which is free from the catching recess when retracted. As an alternative or in addition to the handle 3 for operating the locking element to open or lock the door 1 , a keypad 5 with alphanum erical keys is used. I nput of an alphanumeric code causes the keypad 5 to subm it electronic data representing the code to an integrated circuit, which in turn activates a driving unit, for exam ple electrical motor or solenoid, that activates the locking element, particularly moves the lock bolt 4 into or out of the door panel 1 ' and respectively out of or into the catching recess. Alternatively, the door lock 2 could be of a different type, there the handle 3 retracts a strike plate into an opening position . As a further alternative or in addition to the keypad 5 or and handle 3, the first door lock 2 is equipped with a wireless receiver in functional connection with the locking elem ent for receiving and executing wireless digital com mands for locking or unlocking the door.

FI G. 3 illustrates an example of a lock part 2' with a casing 20. The first lock part 2' comprises the lock bolt 4, which extends into the casing 20 and is connected by a connector 7 to a driving unit 6, for example a m otor or solenoid, inside the casing 20 such that the lock bolt 4 can be driven in and out of the casing 20, as indicated by the double arrow 8. The driving unit 6 receives electrical current through electrical wire 1 1 . There are m ultiple possibilities to receive this electrical current, for example by the wire 1 1 extending out of the casing 20 and being connected to a power source, or the wire 1 1 being connected to an electrical port 1 8, typical a socket for a m ulti-pin connector. The electrical port 1 8, or the wire 1 1 directly, receives electrical power, typically a 12V or 24V voltage signal, the supply of which causes the driving unit 6 to be activated for retracting and/or extending the bolt 4.

As m entioned before, the lock 2 can be of a different type where the electrical power from such electrical port or from the wire 1 1 is used for activating a strike plate in a fram e 1 " or a m agnetic lock. The principles apply equally well.

The power delivered to the port 1 8, or to the wire 1 1 directly, is provided from a first power supply 1 0, as illustrated in FI G. 3. For exam ple, the first power supply 1 0 com prises a switch 1 7, which when closed conducts power, received by the first power supply 1 0 from a power source 1 9, through the first power supply 1 0 and delivers it to the driving unit 6 through port 1 8, or directly through wire 1 1 if the lock 2 does not have such port 1 8. For exam ple, the power source 1 9 is an external power source.

I n the simplest for, the first power supply 1 0 com prises a manual push button, which upon pressing or, alternatively, upon release closes the switch 1 7, which in turn closes the power circuit from the power source 1 9 through electrical wire 21 , optionally through port 1 8, and through electrical wire 1 1 to the driving unit 6.

Alternatively, the first power supply 1 0 com prises an electrical relay 1 2 which is electrically activated or de-activated, by an electrical signal. For example, such signal is received from a keypad 5 through wire connection 1 3 and/or from a m anual push button switch 1 7' through a different wire connection 13', optionally, electrically fed by current from a battery 1 9' or other type of power supply. Alternatively, the push button switch 1 7' is used to break a current circuit from the first power supply 1 0. Whether activation of the first power supply 1 0 occurs by supplying a current to the relay 12 or by breaking a current circuit from the relay 1 2 or by closing a current circuit to the relay 12 depends on the type of relay 1 2.

An alternative or addition is a rem ote control 14, the wireless signal 1 5 of which is received by a receiver 9 which , when activated, operates the switch 1 7, for example by delivering current to the relay 1 2 of the first power supply 1 0 through wire connection 1 3" or by breaking a current from the relay 1 2 in the first power sup- ply 1 0.

For example, third wire connection 24 to the port 1 8 or the wire 1 1 directly is provided from an external control unit for controlling the lock 2. Optionally, an alternative third wire connection 24' into the relay 1 2 of the first power supply 1 0 is provided from the external control unit as an additional electrical control mechanism . Such options are explained in more detail below.

The current pulse delivered to the first power supply 1 0, in case of the power sup- ply containing a relay 12, is optionally used to unlock the door 1 , keep it unlocked, or lock the door 1 . Alternatively, a steady current circuit from the first power supply 1 0 has to be broken or closed to cause locking or unlocking of the door. Different systems exist and various combinations are possible. For exam ple, an integrated circuit comprises a timer-based program m ing such that the door 1 is by default unlocked through daytim e and locked at night tim e. I n order to lock the door through daytim e, a power input to the relay 12 is necessary and for opening the door at night tim e, a breakage of a power supply is necessary.

The electrical pulse delivered to the first power supply 1 0 is of various kinds, dependent on the purpose and necessity. For exam ple, for driving a driving unit 6 with a lock bolt 4, the pulse needed for unlocking and locking can be relatively long. I n contrast thereto, the pulse length needed for a strike lock, typically, is relatively short. A pulse needed to break the m agnetic force between door panel 1 ' and door frame 1 " in a magnetic door lock can be relatively short, while the current necessary to hold it closed is relatively long. Dependent on the type of lock 2, the signal to the electrical relay 12 has to be managed accordingly. Whether the current causes locking or unlocking depends on whether the door lock 2 of the type where it is locked or unlocked in case of power failure, which is typically termed "fail-locked" and "fail- unlocked", respectively. Alternative term inology uses "fail-closed" and "fail-open".

The first power supply 1 0 is shown as external to the casing 20 but could in prin- ciples also be provided inside or on the casing 20. T e power source 1 9 is typically provided outside the casing 20, although this is not strictly necessary.

With respect to remote controls 1 4, typically, for each type of lock 2, there is a special com m unication system such that a remote control 14 that works for one lock 2 or type of lock 2 does not work for another lock 2 or another type of lock 2. I n order to provide a universal locking and unlocking system , the following im provement is provided. With reference to FI G. 2, an external control unit 23 is provided as an additional control of the lock 2. The external control unit 23 is electrically connected by an external wire 24 to the electrom echanical lock 2, or alternatively, by an external wire 24', as shown in FI G. 3, to the first power supply 1 0, especially if this first power supply 1 0 com prises an electrical relay 12. Such an external control unit 23 is potentially integrated or inserted into the door panel 1 '. Alternatively, such external control unit 23' is mounted onto the door panel 1 ', or equivalents onto a door frame 1 " around the door panel 1 '. A wire can be used to cross over from the door frame 1 " to the door panel 1 ', for example through a hinge. Other locations in the vicinity of the door 1 are possible, for example a wall mounting. If the door lock 2 is a strike lock with the strike plate in the door fram e 1 ", the external control unit 23 and the wire 24 would correspondingly be placed in or on the door fram e 1 ". It is pointed out that the system with the lock bolt 4 is exem plary, and the external control unit 23 can also be applied to m agnetic locks where a door panel 1 ' is held against a fram e 1 " by magnetic interaction .

FI G. 4 illustrates an example of the functioning of such an external control unit 23. The external control unit 23 is operated by wireless com m unication 26 with a mobile device 22, typically a mobile telephone. The external control unit 23 comprises a transceiver 25 and a m icroprocessor 33 which are functionally and electronically connected. They are typically incorporated within the housing 34 of the external control unit 23, although, they could also be provided externally and functionally connected to the external control unit 23. I n the following, it is assum ed that the transceiver 25 and the m icroprocessor 33 are inside the housing 34 of the external control unit 23, although, the invention can easily be modified for an external com m unication and control module 25. Com puter programs for the functioning of the external control unit 23 are stored and executed by the m icro- processor 33. The transceiver 25 is configured for digital com m unication with mobile device 22 via a short range wireless protocol com m unication line 26 when the mobile device 22 is in proxim ity of transceiver 25 of the external control unit 23.

I n the event that the transceiver 25 receives a digital wireless control signal for unlocking or locking the door lock 2, the signal is sent vie the transceiver 25 to the m icroprocessor 33, which initiates a corresponding electrical signal through one of the connection ports 35a, 35b, 35c, 35d, depending on the setup of the external control unit 23. The term electrical signal is used here for various electrical operations of the external control unit 23, such as

- sending a voltage pulse out of first connection port 35a or first alternative connection port 35b, typically a 1 2-24 V pulse;

- closing a current circuit between two wires that are connected to a second two pole connection port 35c; or

- breaking a current circuit between two wires that are connected to a third two pole connection port 35d. Due to the relatively sm all number of various signals for operating door locks 2, the external control unit 23 is provided with a plurality of connection ports 35a, 35b, 35c, 35d with cable sockets. For sake of illustration, the number of ports shown are four, however, a different num ber of ports is possible, for exam ple 3, 5, 6, 7, 8, 9, or 1 0 ports. Typically, however, at least three ports for example four, are used in order for the external control unit 23 to be versatile as explained in the following.

I n some embodim ents, the external control unit com prises one power exit 35a for feeding a driving unit directly with current, for exam ple 12V-24V power through wire 24 and wire 1 1 and an additional connection port 35b for feeding power to the relay 1 0. I n other embodiments, the two ports 35a and 35b are com bined in a single first connection port 35a

For example, in order to provide a 1 2-24 volts power signal from the external con- trol unit 23, the external control unit 23 is electrically connected to the power grid, such as to 1 1 0V or 220V current, optionally comprises a transform er 40 for reducing the voltage. Alternatively or in addition , a battery system 36 is incorporated in the external control unit 23. For example, the external control unit 23 is provided with a transformer 40 and a 3.3V battery is stepped up to 1 2-24V with the transformer 40, in which case a power supply from the power grid is supplem ented in case of power failure of the power grid connection is not needed. The latter is an advantage, as it facilitates the installation , especially, in retrofit situations. I n FI G. 4, the transformer 40 as well as the m icroprocessor and the transceiver 25 are shown as part of an integrated circuit board 41 which is connected with wires to the connection ports 35a, 35b, 35c, 35d and to the contacts of the battery 36. Not all components on the integrated circuit board 41 are illustrated for sake of sim plicity. For example, the external control unit 23 is set up to send electrical current, typically a 1 2V-24V current, from a first electrical connection port 35a via wire 24 to port 1 8 of the door lock 2 and further via wire 1 1 to driving unit 6 for causing the driving unit 6 to lock or unlock the door, respectively, by activating the lock bolt 4 or, alternatively, the strike plate. This possibility of locking or unlocking the door by external control unit 23 through first electrical connection port 35A is provided in addition to the existing control system of the lock 2 which was described in connection with FI G. 3. Alternatively, the external control unit 23 is set up to send electrical current via an alternative first connection port 35b and alternative wire 24' to the first power supply 1 0 of the lock 2, in particular the relay 12, in order to cause opening or locking of the door lock 2. However, if the signal for the relay 1 2 is of the same type than used for feeding a lock 2 directly, for exam ple a 1 2- 1 4 V signal, the alternative first connection port 35a can be used and program m ed for both feeding current directly to the lock 2, for example the port 1 8, and for feeding current to the relay 12. The latter is also possible if the voltage and current in the first connection port can regulated correctly and suitably by the m icroprocessor 33 in co-operation with a regulated transformer.

Whether the current for the relay 1 2 causes locking or unlocking depends on whether the door lock 2 is of the type where it is locked or unlocked in case of power failure, which is typically term ed "fail-locked" and "fail-unlocked", respectively.

Potentially, the different connection ports 35a, 35b, 35c, 35d are not only configured for different standards of electrical current through electrical port 1 8 of the lock 2, but m ay, optionally, also be configured with different types of sockets for different types of connectors.

For som e types of relay, the relay 12 has a two pole relay port, where an electrical connection between the two poles causes one type of operation and the disconnection causes another type of operation . I n order to operate such relay, the external control unit 23 has two ports 35c and 35d, one of which is connected to this type of relay 1 2 via wire 24'. Each of the two ports 35c, 35d has a two-pole connector. The second connection port 35c has a disconnection of the two poles as default and causes connection of the two poles upon electrical activation . The other port 35d has a connection of the two poles as default and causes disconnection upon electrical activation. By using either the second connection port 35c or the third connection 35d for a connection via wire 24' to the relay 12, the external control unit 23 can be adapted to the specific type of relay 1 2. Depending on which port is most suitable depends also on whether it is used for system of "fail- locked" and the other is used for systems of "fail-unlocked".

FI G. 5 illustrates an example of an integrated circuit board 41 in which the m icroprocessor 33 and the transform er 40 are shown, although further elem ents can be integrated, for exam ple the transceiver 25. Not all components on the integrated circuit board 41 are illustrated for sake of simplicity. Electrical current supply con- nections 43 in the board 41 are shown as thicker lines, whereas electronic comm and lines 44 are shown as thinner lines. The board 41 received electrical power through the electrical input 42 from a battery 36, the voltage of which is stepped up by a transformer to 1 2 V or to 24 V as controlled by a switching m echanism 45, which is electronically connected to the m icroprocessor 33 and which received electronic instructions from the m icroprocessor 33 in order to switch between on and off the current from the transformer and between various voltages, for example 1 2 V and 24 V or a voltage within a preprogram m ed range, upon instructions from the m icroprocessor 33. The current with the stepped up voltage is accessible by electrical wire connectors 48a in first electrical port 35a. The first electrical port 35a also takes the role of the earlier described alternative first electrical port 35b. I nstead of the battery 36, a different electrical power source is possible, for exam ple electricity from the grid. With reference to FI G. 3 and 5, either the third wire connection 24 between connection port 35a and driving unit 6 is connected or the alternative third wire connection 24' between the first connection port 35a and the first power supply 1 0.

The m icrocontroller 33 also controls a first relay 46c of the circuit board 41 , which is a fail-open relay, and the first relay switch 47c, which is closed when power is supplied to the first relay upon instructions from the m icrocontroller 33. When the first relay switch 47c is closed, the two-pole connector 48c in the second connection port 35c are electrically connected such that an electrical circuit from the relay 12 of the first power supply 1 0, as illustrated in FI G. 3 is closed. Furthermore, the m icrocontroller 33 also controls a second relay 46d of the circuit board 41 , which is a fail-closed relay, and the second relay switch 47d, which is open when power is supplied to the second relay 46d upon instructions from the m icrocontroller 33. When the second relay switch 47d is open , the two poles in the two- pole connector 48d of the third connection port 35d are electrically disconnected such that an electrical circuit from the relay 1 2 of the first power supply 1 0, as illustrated in FI G. 3 is broken . With reference to FI G. 3, the alternative third wire connection 24' is connected between connection port 35c or 35d and the first power supply 1 0.

The external control unit 23 is suitable for retrofit and upgrade of existing elec- trom echanical door locks 2. The advantage for the consumer is the availability to upgrade existing locks 2 with a high-tech door lock control system including wireless application by a mobile device 22, such as a telephone, without the need of exchanging the lock 2. As explained in detail above, the retrofit system has the potential not only for electrical connection to the driving unit 6 but also to a relay 1 2, as shown by the first power supply 1 0 in FI G. 3.

For such retrofit system , there exist different requirements with respect to the electrical current that has to be applied. Some locks need a voltage of 12 V while others need 24 Volts. Som e locks, such as doors with electrical door strikes, need a short signal, for example of less than one second, for withdrawing the locking elem ent, for exam ple strike plate, with a solenoid while others need a longer signal, for example between one and 5 seconds, while a motor is driving the locking elem ent, for exam ple lock bolt, in or out of locking engagement. Others again need a short signal to break a constant magnetic force in a magnetic lock. Despite the variety of signal requirements for various locks, international standardization im plies that the overall number of different systems with respect to the requirem ents for input through electrical port 1 8 are relatively few for the majority of electromechanical locks on the m arket. Correspondingly, for the m ajority of locks 2 on the m arket that also are equipped with an external port, there exist relatively few standards for external control through port 1 8. For exam ple, m any door locks operate at a voltage in the range of 1 2V-24V. The m icrocontroller 33 is accordingly program m able for controlling the delivery of a pulse length and voltage that is useful for the connected lock 2. As illustrated in FI G. 4, the system also com prises a digital data server system 31 for initial authentication of the external control unit 23 and the mobile device 22 and for updates of the data related to the com m unication between the mobile device 22 and the external control unit 23. Com m unication 28, 30 between the mobile device 22 and the server system 31 is done via the I nternet 29. The server system 31 com prises a com puter readable m emory 32 and a processor for storing and executing computer programs and comprises an encryption engine that is configured to process authentication requests from the mobile device 22 in connection with the initiation of a control function for the external control unit 23. Also, log files are transm itted to the server and stored in the database. When the mobile device 22 is in proxim ity of the external control unit 23, a wireless connection 26 is established between the mobile device 22 and the m icrocontroller 33 via the transceiver 25 of the external control unit 23. The wireless connection 26 is typically established according to a short-range wireless protocol, for exam ple Bluetooth , Wi- Fi or Zigbee. If the external control unit 23 has been pre- configured in a m emory of the mobile device 22, the mobile device 22 sends operational com m ands to the transceiver 25 and m icroprocessor 33 of the external control unit 23 through the wireless connection 26, for example upon user input from a user interface 27 displayed on the mobile device 22, such as a touch screen interface. The mobile device 22 is equipped with a corresponding computer application therefore. For example, the mobile device 22 is a sm art phone com prising a so called "App", which is specific term for an interactive com puter application in a sm art phone. For exam ple, the user may be prompted to select a unique individual identifier I D of the external control unit 23 in a list on the user interface 27 of the m obile device 22 by a pointer action or other indication m ethod and initiate the operation of the specifically selected external control unit 23. The m icroprocessor 33 in the external control unit 23 is program mable for activating the correct one of the connection ports 35a, 35b, 35c, 35d for providing electrical current to the driving unit 6 in the lock 2 via port 1 8 or via the relay 1 0 or wheth- er a current circuit has to be closed or broken .

Alternatively, the mobile device 22 is program med to automatically instruct the m icroprocessor 33 of the external control unit 23 to provide an electrical current to the lock 2 for causing unlocking when the mobile device 22 is within short range of the external control unit 23, the range given by the range necessary for the short range com m unication link on the wireless connection 26.

As it appears from the above description , the system with the external control unit 23 is very useful for retrofit in existing locks 2, where the norm al and original op- eration mode of the lock 2 can be maintained, for example the operation with the num erical keypad 5 or remote control 14, and the high-tech operation with a mobile device 22 can be added in a sim ple way. The addition of the function with the mobile device 22 implies the option of increasing the comfort for the user but also increasing the safety, as the software system can be frequently updated with newest safety features, including advanced encryption algorithms, through the server system 31 via the I nternet 29, which reduced the risk for unauthorized access, for example by so called hacking or sniffing of the wireless signals of the remote control 14. As m entioned above, the retrofit can be performed for locks with lock bolts or strike locks. Even for m agnetic locks, the retrofit can be used. Other options are available in the art, and the im portant aspect of the invention is that an electrom echanical lock with a port 1 8 can be upgraded to a high-tech opening system with a mobile device 22, typically a mobile phone. The connection ports 35a, 35b, 35c, 35d of the external control unit 23 can be configured to fit the specific type of lock. For ease of use, the external control unit 23 is provided with corresponding connection ports 35a, 35b, 35c, 35d that are suitable for the predom inant type of lock in the corresponding market where the external control unit 23 is sold. The user can then select the correct from the plurality of connection ports 35a, 35b, 35c, 35d port for connection to the door lock 2.

The term "door" is also meant to cover doors in a broad sense, for example, also including garage ports and entrance ports for estates in general.

Num ber references

I door

1 ' door panel

1 " door fram e

2 electrically activated door lock

2' first lock part

2" second lock part

3 handle

4 lock bolt

5 keypad, option as first controller

6 driving unit

7 connector between driving unit 6 and lock bolt 4

8 arrow indicating motion of lock bolt

9 receiver

1 0 first power supply

I I first wire connection for power to the driving unit 6

1 2 relay in first power supply 1 0

1 3 wire connection from keypad 5 to first power supply 1 0

1 3' wire connection between button switch 1 7' and first power supply 1 0

1 3" wire connection between receiver 9 and first power supply 1 0

1 4 remote control, option as first controller

1 5 wireless signal from remote control 14

1 7 switch in first power supply 1 0 1 7' button switch, option as first controller

1 8 electrical port in lock 2 for supply of current to the driving unit 6

1 9 power source

20 casing of external control unit 23

21 second wire connection

22 mobile device

23 external control unit

24 third wire connection between connection port 35a and driving unit 6

24' alternative third wire connection between connection port 35b, 35c, 35d and first power supply 1 0

25 transceiver in external control unit 23

26 wireless connection between m obile device 22 and transceiver 25

27 user interface of mobile device 22

28 com m unication between mobile device and internet 29

29 internet

30 com m unication between internet 29 and server system 31

31 server system

32 memory of server system 31

33 m icroprocessor in external control unit 23

34 housing of external control unit 23

35a first electrical connection port of external control unit 23 for feeding wire 1 1 directly

35b alternative first electrical connection port of external control unit 23 to feed first power supply 1 0

35c second electrical connection port for closing electrical circuit from first power supply 1 0

35d third electrical connection port for breaking electrical circuit from first power supply 1 0

36 power supply, ex. battery

37 electrical connection between port 35a-d and power supply 36

40 transformer

41 integrated circuit board in external control unit 23

42 circuit board electrical input

43 electrical connections in circuit board

44 control lines

45 switching mechanism for transform er 40

46c fail-open relais 46d fail-closed relais

47c switch in fail-open relais 46a

47d switch in fail-closed relais 46b

48a electrical two pole wire connectors in first electrical connection port 35a 48c electrical two pole wire connectors in second electrical connection port 35c 48d electrical two pole wire connectors in third electrical connection port 35d