Skip to content

domb84/ModifiedFilmScanner

Repository files navigation

# ModifiedFilmScanner

A project for extracting and modifying the M127 film scanner device.

---

## 📦 Firmware Dumping Instructions

1. **Install the CH341A Driver**  
   Download and install `CH341PAR.exe`.

2. **Detect Chipset**  
   Use `CH341A_CH347 Programmer V2.21` to auto-detect the chipset.

3. **Select Flash Chip**  
   Choose `MX25L3206E` as the target chip.

4. **Read and Verify ROM**  
   - Read the ROM and save the dump in a safe location.
   - Capture the ROM twice and perform a verify operation to ensure integrity.

---

## ⚙️ autoModify Script Prerequisites

To use the automation scripts, install OpenJDK via Chocolatey:

```powershell
choco install openjdk -y
```

---

## 📝 Firmware Notes

- Create a folder named `uengmode` on the SD card to trigger the device to flash with a JPEG and configuration file.
- Create a file named `engmode` on the SD card and it will boot straight to the film adjustment. It shows "Film type:8MM" compared to the normal scren.
- The camera firmware file must be named `FWDV180N.BIN` and placed on the SD card for flashing.
- The NT96650 firmware starts at hex offset `0x00004000` (matches the runcamhd header).
- Modifying the bitrate to more than 14800 seems to crash the capture before it starts
- Flashing the firmware seems to set the language back to Chinese. To set it back. Power the machine on, wait for it to show the frame, press menu once, then press down 6 times, then press OK. That should be the language menu.
- You should be able to configure the capture by adding a DCTCONFIG.bin to the SDCARD.
- You can create a DCTCONFIG.bin file here https://app.runcam.com/tool/setting?configId=86eadd10825c0c103b49b999eaa92f58. 
- This generates a binary file prefixed and suffixed with Roral008. This is referenced just before DCTCONFIG.bin. For the M127 this seems to be ANEKA001.
- Replacing Roral008 with ANEKA001 creates a flashable config file which updates the config
- Placing a filenamed "format" on the SD card causes the machine to boot with a message saying "Formatting SPI". It then boots back to chinese, presumably it defaults the machine.

## RUNCAM HEX VALUES

## RUNCAM HEX VALUES

| Offset      | Parameter      | Range/Values         | Description/Notes                                                                 |
|-------------|---------------|----------------------|-----------------------------------------------------------------------------------|
| 0x014C      | Hash/Version  | Changes per config   | Hash or version code, changes with every configuration change                      |
| 0x0124      | Date Code     | e.g., 02             | British appears to be 02                                                          |
| 0x015C      | Sharpness     | 00 to 04             | 00 = +2, 01 = +1, 02 = 0, 03 = -1, 04 = -2                                        |
| 0x0160      | Exposure      | 00 to 0C             | 00 = +2, 03 = +1, 06 = 0, 09 = -1, 0C = -2 (increments: +2, +1.7, +1.3, ..., -2)  |
| 0x0164      | Contrast      | 00 to 04             | 00 = +2, 01 = +1, 02 = 0, 03 = -1, 04 = -2                                        |
| 0x0168      | Saturation    | 00 to 04             | 00 = +2, 01 = +1, 02 = 0, 03 = -1, 04 = -2                                        |
| 0x016C      | Filter        | 00 to 0C             | 00 = Mono, 01 = Sepia, 02 = Cooler, 03 = Cool, 04 = Normal, 05 = Warm, 06 = Warmer |
| 0x0170      | White Balance | 00 to 05             | 00 = Auto, 01 = Sunny, 02 = Cloudy, 03 = Tungsten, 04 = Fluorescent1, 05 = Fluorescent2 |

I inadvertently dumped the following file when playing with various configuration files. This would appear to have dumped the possible values and supported parameters. I've not yet recreated this.

## CA_DUMP.RAW ##
Exposure Value=[2];Exposure compensation,0 : -2EV,1:-1EV,2: 0EV,3 : +1EV,4:+2EV
White Balance=[2];Set White BÿMance,0 :Auto,1: Daylight,2:Cloudy,3:Tungsten,4:Fluorescent,
Contrast=[2] ;Set Contrast ,0 :-2,1:-1,2:Normal,3:+1,4:+2,
Color Effect=[1];Set Color Effect,0 : Standard,1:Mono,2:Sepia,3:Cooler,4:Cool,5:Warm,6:W armer,
Saturation=[2];Set Image Staturation,0 :-2,1 :-1,2:Normal,3:+1,4:+2,
{MicroDVR mov 2012/10/09 v0.49}
{LDMICDVR,v1.1S,01/06/2012}



---

## 📚 Additional Resources

- See [`autoModify.ps1`](autoModify.ps1) for automating firmware extraction and modification.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published