Difference between revisions of "Using 10359 mux with 10393"

From ElphelWiki
Jump to: navigation, search
(Created page with "==Setup== ===Firmware image=== [https://community.elphel.com/files/393/20171115/ '''20171115'''] or apps-autocampars version at least 1.0.46 root@elphel393:~# cat /etc/elphe...")
(No difference)

Revision as of 12:02, 15 November 2017

Setup

Firmware image

20171115 or apps-autocampars version at least 1.0.46

root@elphel393:~# cat /etc/elphel393/packages/apps-autocampars 
1.0.46

Connection

Fig.1 10393 ports
  • a mux board can be connected to any sensor port
  • up to 4x mux boards at the same time (2- do not require extra power modifications)
  • sensor boards can be connected to any unused ports
Fig.2 10359 mux board (older revision)
  • if the number of connected mux boards is 3+ then:
quick mod: see Fig.2
lift pins 3,4 on J1, put teflon tape under them and solder a wire to those lifted pins connected. Then add a MOS transistor or a switch that will apply external 3.3 V to W2 when those J1.3, J1.4 have 
power.

Modified device tree

Download and use this devicetree.dtb. The easiest way is to overwrite the device tree on the BOOT partition of a recovery SD card and then boot from it.

Application mask (assuming 10389 is not connected)

Without the 10389 the application mode is set in /etc/elphel393/default_10389.xml

root@elphel393:~# cat /etc/elphel393/default_10389.xml 
<?xml version="1.0" standalone="yes"?>
<board>
        <model>10389 not present</model>
        <rev>B</rev>
        <serial>F80000</serial>
        <app>MT9P006</app>
        <mode>15</mode>
</board>

To edit on the camera, use nano:

ssh root@192.168.0.9
root@elphel393:~# nano /etc/elphel393/default_10389.xml

To enable programming mux board(s) - set corresponding bits in [19:16]=0x?, [15:0]=0x7777 - then convert to decimal. Examples:

  • mux on port 0 (bit 16):
<mode>96119</mode>  (=0x17777)
  • mux on port 3 (bit 19):
<mode>554871</mode> (=0x87777)
  • 2 mux boards on port 1 & 2:
<mode>423799</mode> (=0x67777)

Then

root@elphel393:~# sync
root@elphel393:~# reboot -f

Comments

device tree

  • decompile device tree
~$ dtc -I dtb -O dts -o devicetree.dts devicetree.dtb
  • the only change that is made to work with the mux board is:
-elphel393-detect_sensors,port-mux = "none none none none";
+elphel393-detect_sensors,port-mux = "detect detect detect detect";
  • compile device tree
~$ dtc -I dts -O dtb -o devicetree.dtb devicetree.dts