CuVoodoo

the sorcery of copper

User Tools

Site Tools


megacode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
megacode [2014/12/28 20:30] – [transmitting] kingkevinmegacode [2024/01/07 17:49] (current) – external edit 127.0.0.1
Line 1: Line 1:
 The [[http://www.linearcorp.com/|Linear]] [[http://www.linearcorp.com/radio_control.php|remote control]] solution from the [[http://www.linearcorp.com/radio_control.php#megacode|MegaCode series]] was used in the facility complex I was living for a short while, and I wanted to know how secure it is. Thus I reverse engineered it. The [[http://www.linearcorp.com/|Linear]] [[http://www.linearcorp.com/radio_control.php|remote control]] solution from the [[http://www.linearcorp.com/radio_control.php#megacode|MegaCode series]] was used in the facility complex I was living for a short while, and I wanted to know how secure it is. Thus I reverse engineered it.
  
 +At [[https://events.ccc.de/congress/2014/Fahrplan/events/6462.html|31c3]] I gave a [[https://media.ccc.de/browse/congress/2014/31c3_-_6462_-_en_-_saal_2_-_201412292245_-_megacode_to_facility_gates_-_kevin_redon.html#video|short talk]] about how to clone and record codes.
 In [[https://www.cuvoodoo.info/?post_type=podcast&p=69|episode #004]] I presented how the transmitting part works, and how to clone the radio remote controls. In [[https://www.cuvoodoo.info/?post_type=podcast&p=41|episode #005]] I presented how the receiving part works, so to record codes and analyze them. In [[https://www.cuvoodoo.info/?post_type=podcast&p=69|episode #004]] I presented how the transmitting part works, and how to clone the radio remote controls. In [[https://www.cuvoodoo.info/?post_type=podcast&p=41|episode #005]] I presented how the receiving part works, so to record codes and analyze them.
  
Line 113: Line 114:
 The recorded data can be view in audio editing tools such as [[http://audacity.sourceforge.net/|audacity]] by importing it as raw data, 24kHz, mono, 16 bits little endian. The recorded data can be view in audio editing tools such as [[http://audacity.sourceforge.net/|audacity]] by importing it as raw data, 24kHz, mono, 16 bits little endian.
  
-The code can also be extracted using [[https://git.cuvoodoo.info/kingkevin/megacode/blob/master/sdr/decode.rb|decode.rb]]+The code can also be extracted using [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/sdr/decode.rb|decode.rb]]
 <code> <code>
 ./decode.rb megacode.pcm ./decode.rb megacode.pcm
Line 150: Line 151:
 {{:megacode:318lipw1k-header3.jpg?250|}} {{:megacode:318lipw1k-header3.jpg?250|}}
  
-The firmware is available in [[https://git.cuvoodoo.info/kingkevin/megacode/tree/master/pic/318LPW1K-L|git]]. +The firmware is available in [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/pic/318LPW1K-L|git]]. 
-You can define the code to transmit in [[https://git.cuvoodoo.info/kingkevin/megacode/blob/master/pic/318LPW1K-L/eeprom.asm|EEPROM]].+You can define the code to transmit in [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/pic/318LPW1K-L/eeprom.asm|EEPROM]].
  
 ==== ACT-34B ==== ==== ACT-34B ====
Line 161: Line 162:
 {{:megacode:act34b-replace3.jpg?250|}} {{:megacode:act34b-replace3.jpg?250|}}
  
-The firmware is available in [[https://git.cuvoodoo.info/kingkevin/megacode/tree/master/pic/ACT-34B|git]].+The firmware is available in [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/pic/ACT-34B|git]].
 The two right buttons are used to send codes defined in the source. The two right buttons are used to send codes defined in the source.
 I planned to use the two left buttons to brute force codes but did not finish the implementation. I planned to use the two left buttons to brute force codes but did not finish the implementation.
  
 +===== receiving =====
 +
 +==== MDR ====
 +
 +I de-soldered the PIC16C54A micro-controller and replaced it with a pin compatible PIC16F1847:
 +
 +{{:megacode:mdr-replace1.jpg?250|}}
 +{{:megacode:mdr-replace2.jpg?250|}}
 +{{:megacode:mdr-replace3.jpg?250|}}
 +
 +The {{:megacode:mdr_schematic.pdf|schematic}} describes how the micro-controller is connected.
 +
 +The firmware receiving and recording codes is available in [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/pic/MDR|git]].
 +How it works and how to use it further is described in the [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/README.md|README]].
 +All codes are read out over I²C when the board is powered up.
 +They can be recorded/transferred on the PC using a logic analyzer.
 +
 +The original way the codes are recorded by the device in the EEPROM is described in the [[https://git.cuvoodoo.info/kingkevin/megacode/src/branch/master/README.md|README]]
 +==== MDR-U ====
 +
 +The MDR-U is basically the same as the MDR.
 +The board is different, but the peripheral and connections around the micro-controller.
 +It uses more surface mount components.
 +It is powered through the mains (CAUTION: neutral is used as 0V).
 +
 +Same as for the MDR, I de-soldered the PIC16C54A micro-controller and replaced it with a pin compatible PIC16F1847 (SOIC version).
 +The firmware is the same as the MDR.
 +
 +==== RF module ====
 +
 +aaronsp777 [[https://github.com/aaronsp777/megadecoder|implemented a receiver]] using a generic 315 MHz module, and an Arduino.
megacode.1419798627.txt.gz · Last modified: 2024/01/07 17:49 (external edit)