====== Swift Navigation / Carnegie Robotics Duro ====== [{{:swiftnav:duro:swiftnav_duro.png?400 |Photo credit Carnegie Robotics}}]
Duro™ is a ruggedized, high-performance and low-cost GNSS receiver with Real Time Kinematics (RTK) technology for a centimeter-level positioning accuracy. GNSS multi-band and multi-constellation support enable Duro to offer fast RTK convergence times and high position availability. [[https://carnegierobotics.freshdesk.com/support/solutions/articles/154000199758-duro-specification-and-user-manual|Duro Specification and User Manual]]
Duro is a [[swift_nav_piksi_multi|Piksi Multi]] receiver on a carrier board inside a ruggedized enclosure. Practically everything that makes it a GNSS receiver - the module, its specs, the 20-pin and 60-pin connectors, the pinouts, the firmware and the OS - is a property of the Piksi Multi, and that now lives on the [[swift_nav_piksi_multi|Piksi Multi page]]. What is left on this page is what is actually Duro: the enclosure, its connectors, its power supplies, the extras on its carrier board, and the Unicontrol firmware image that surplus units ship with. A variant of the Duro, called "Duro Inertial" also exists. As far as I have been able to determine, the hardware is identical, but it has additional software that enables the IMU to be used for inertial navigation in the event of GNSS loss. ===== Specs ===== The receiver specs are the Piksi Multi's - see [[swift_nav_piksi_multi|that page]]. What the Duro adds is the enclosure and the power system: * 10-35v DC input, 5-6w consumption, from capable DC-DC supplies on the carrier board * 0.25A of 5v and 1A of 12v available on the serial and aux connectors, for powering external devices * Standard M12 connectors throughout (see Connectivity) * A microSD slot * A Micro USB port (this is USB0 on the 20p, going to the Piksi Multi's two ttyACM interfaces) * Sealed, ruggedized enclosure - the back access panel voids the warranty if opened, and the ports behind it cost you the IP rating ===== Connectivity ===== Like just about every other commercial GNSS receiver, especially rugged ones, the Duro uses unique connectors for power, serial, ethernet, etc. Unfortunately un-casing the unit does not readily provide access to these signals internally, so using the connectors as intended is the best course of action for working with the Duro. The connectors used are standard M12, which are slightly more available than LEMO or Fischer, and the user manual documents them well, if you choose to make your own cables. Behind an access panel there is a microSD slot and MicroUSB port. Using these is not sanctioned by Swift Navigation or Carnegie Robotics and will ruin the device's IP rating. At the time of this writing, Carnegie Robotics [[https://shop.carnegierobotics.com/collections/duro-accessories|still sells the interface cables]] for the Duro, and they are relatively affordable. ==== MicroUSB ==== There is a MicroUSB port behind the service door on the rear of the unit, and this actually gives us pretty much everything needed to get started and use the device. Officially, we are not allowed to use it. The Duro does nothing clever here - it wires the module's USB0 out to the connector. On a Linux host the port enumerates as three virtual TTYs using the common device class abstract control module, ''ttyACM0'', ''ttyACM1'' and ''ttyACM2'' if no other cdc_acms are present. Which one is which on the gadget side, and what each is good for, is on the [[swift_nav_piksi_multi|Piksi Multi page]]. The third ACM device only enumerates on the device running the Uni firmware, it is not present in the stock firmware - that third port is also where the shell is, see Shell Access below. In my own testing, the Duro does work when powered from MicroUSB alone, pulling just shy of 5w in normal use. Ethernet and microSD work, I have not tested the RS-232 interfaces. I don't see any warnings or complaints in the logs, and performance appears unchanged. It's probably not a good idea. ==== microSD ==== In addition to the Micro USB port, there is a microSD + SIM slot under the rear cover. It is quite challenging to insert a card from this port alone, because the slot doesn't have the usual guide rails - fine tipped tweezers will be required. It is much easier if you remove the bottom panel first. The SIM slot is likely connected to the interface used by a once-optional WWAN interface (some Duro boards have miniPCIe slots, other have xbee radio connectors). The microSD slot is wired to the Piksi Multi's SDIO pins (HDC1 48-57), so how the card is mounted, which filesystems work and how logging behaves are all firmware, not Duro - that side is on the [[swift_nav_piksi_multi|Piksi Multi page]]. The microSD card cannot be used to install firmware from at boot time, only a flash drive connected to the USB host port can do that (per the documentation, I haven't yet tested this.) ===== Notes and Curiosities ===== Provided in no particular order, the below are bits and pieces I have discovered when researching or using the Duro specifically, that I may want to refer back to in the future, or that others may find interesting. Module-level notes are on the [[swift_nav_piksi_multi|Piksi Multi page]]. * Based on photos from ebay and mentions in documentation, there seem to be quite a few model numbers and revisions of the Duro. 00862-04, 00862-03, 00862-002, 00862-01, 00728-01, 00522-01 (Duro Inertials may be 00759-01 and 00759-02, but I have seen them marked 00862-02 as well). * An [[https://web.archive.org/web/20200811154010/https://support.swiftnav.com/support/solutions/articles/44001850760-duro-specification-and-user-manual|August 2020 capture]] of the Duro specification page states "Duro contains 32 GB on-board storage for data logging which is not yet supported but planned to be released with a future firmware release." but it's not clear if this ever happened. The latest revision of the Duro User Manual (4.4) which has Carnegie Robotics branding, clearly states "Warranty is voided if Duro back access panel is opened." [{{ :swiftnav:duro:cell_duro.png?direct&200|Early revision Duro with an SMA connector for WWAN. Photo credit Swift Navigation}}] * The Duro carrier board has two 10 pin headers arranged in what appears to be the appropriate footprint for an XBee module, and there is space inside the enclosure for one. The microSD slot is also shared with a SIM slot. In early documentation there are photos of the Duro with an SMA connector next to the TNC connector - presumably there were plans to give the Duro its own connectivity, but they were abandoned. The product summary document from March 2018 describes the cellular modem as a beta feature. * There are at least two variants of the Duro carrier board, 0036402Rev5 and 0036401Rev03. The 02 board is what is in my unit, and seems to be the newer board. The 01 board has 2017 datecodes, and the XBee headers are mounted on a custom mini-PCIe card. The 02 has the footprint for this mini-PCIe card, but it is not populated. The 01 board also has a small LiPo pack mounted, the 02 again does not have it installed, but has the footprint. * 0036401Rev03 {{:swiftnav:duro:carriers:0036401rev03_top.png?direct&300|}} {{:swiftnav:duro:carriers:0036401rev03_bottom.png?direct&300|}} * 0036402Rev05 {{:swiftnav:duro:carriers:0036402rev5_top.png?direct&300|}} {{:swiftnav:duro:carriers:0036402rev5_bottom.png?direct&300|}} ===== Host-board 24C32 EEPROM (I2C 0x50) ===== The Duro carrier board carries a ''24C32WP'' (ST M24C32-W, 2.5-5.5v, SOIC-8) at I2C address 0x50 on the module's ''i2c-1'' bus, which it shares with an M41T62 RTC at 0x68. I dumped the EEPROM in-circuit with a CH341A programmer + SOIC-8 clip, board unpowered. Exactly one thing lives in the 4 KB: the 6-byte string ''DUROV0'' at offset 0x0000 (''44 55 52 4F 56 30''). Everything from 0x0006 to 0x0FFF is erased (0xFF). Two back-to-back reads were byte-identical. It is a chassis-identity flag, nothing more: * ''/etc/init.d/copy_duro_eeprom.sh'' (started from ''S18cfg'') copies the first 6 bytes of the sysfs eeprom node to ''/cfg/duro_eeprom'' and greps for ''DUROV'', setting ''/etc/flags/is_duro'' * ''pfwp'' (''lib/firmware/piksi_firmware.elf'') uses that flag to enable the CAN termination setting; ''ports_daemon'' and ''piksi_leds'' read it through ''device_is_duro()'' in ''libpiksi.so'' * nothing else in the rootfs reads the chip - the sysfs path appears only in that one script The Piksi Multi module does not need it. The HW spec's boot requirement is power plus any one interface, I2C1 is a host/peripheral interface (HDC2 44/46, with SCL as an output) and the supported bare-module integration through the 20-pin leaves I2C unconnected. It is carrier plumbing, and it is the only thing that tells the firmware "this box is a Duro" - which matters if you ever put a pulled module on your own board. Live read, no clip and no risk, on a bootable Duro (the whole 4 KB are exposed; the boot script only ever copies the first six bytes): dd if=/sys/devices/soc0/amba/e0005000.i2c/i2c-1/1-0050/eeprom \ of=/tmp/duro_24c32.bin bs=4096 count=1 ==== 00862023922100185 ==== Here are some notes and observations specific to my experience with the Duro I received in March 2026. * My unit arrived in a non-default condition (in more ways than one). The IP address assigned was not 192.168.0.222/24, and UART1 was not configured to receive SBP commands from Swift Console. The microUSB port (which enumerates three ttyACM# devices on a linux host) does have SBP read/write access to the duro on ttyACM0, so I was able to access it and reconfigure it. * In addition to running a non-default configuration, this unit also was configured with a firmware not built by Swift Navigation. The firmware version and build ID are both "Unicontrol3D_482", and was built in 2023-02-03, just a couple of months before the final version released (3.0.17), but so far I have not been able to get the latest vanilla firmware installed - the Swift Console does not recognize the existing image and will not overwrite it. * Most of the changes to this firmware image seem to revolve around the addition of telemetry services. There are remote support tools as well, for exporting logs and metrics, and possibly for allowing external users to connect, but I don't know if these are from Swift or Unicontrol. * There is also a machine identifier file with some calibration data, which is kind of neat to see. This unit seems to have last been used in an excavator with a few different bucket types. You can take a look at that configuration file here: [[swift_nav_duro:00862023922100185_machine.yml|machine.yml from 00862023922100185]] More about the program that uses this config file farther down. === Shell Access === This unit also came with shell access, which I have not found on any of the other four Duros I bought. On my Linux host the port enumerates three ACM devices: ''ttyACM0'' is the SBP interface I used to configure the unit, and ''ttyACM1'' is mapped to ''ttyGS1'' on the module, which has a vt100 getty running. Point minicom or putty at it and you are at a root prompt, no password. SSH is enabled by default with no password for root as well, and lots of standard tools are included. [{{ :swiftnav:piksi_tty_motd.png?250|Root shell on the Uni-firmware Duro}}] === Unicontrol Init Scripts === This gets its own block, and if any hobbyist out there gets one of these Unicontrol Duros and wants to do anything with it, they're going to go down the same path. I quickly discovered logs filling up with CAN bus errors, but it wasn't clear to me how to get rid of them. After some time looking at the init system, it became clear that Unicontrol firmware modifications largely exist as clearly-marked init scripts, and are easily disabled. root@piksi:/persistent # ls -l /etc/init.d/S99unicontrol* -rwxr-xr-x 1 root root 524 Mar 20 2022 /etc/init.d/S99unicontrol_0_customization -rwxr-xr-x 1 root root 143 Mar 20 2022 /etc/init.d/S99unicontrol_1_remote_support_setup -rwxr-xr-x 1 root root 116 Mar 20 2022 /etc/init.d/S99unicontrol_2_stats -rwxr-xr-x 1 root root 140 Mar 21 2022 /etc/init.d/S99unicontrol_3_config_upgrader -rwxr-xr-x 1 root root 122 Mar 21 2022 /etc/init.d/S99unicontrol_4_can_setup -rwxr-xr-x 1 root root 200 Mar 21 2022 /etc/init.d/S99unicontrol_5_machine -rwxr-xr-x 1 root root 143 May 24 2022 /etc/init.d/S99unicontrol_6_support_tunnel ''S99unicontrol_4_can_setup'' is right there - and really all it does is call ''/var/can-setup/can-setup.sh'' - can we stop it? #!/bin/sh # # Start the can1 network # #Default configuration DO_NOT_START= CAN_BITRATE=250000 CAN_RESTART_MS=100 #Check customization file if [ -f /persistent/customization.config ]; then source /persistent/customization.config fi #Skip auto-starting if [ "$DO_NOT_START" -eq "1" ]; then echo "DO_NOT_START: can"; exit 0 fi #Start the network echo "Starting canbus error reporter" /var/can-setup/log_can_startup_errors.sh & if [ -z "$CAN_RESTART_MS" ]; then echo "Starting can1 network: " /sbin/ip link set can1 type can bitrate $CAN_BITRATE else echo "Starting can1 network (restart param $CAN_RESTART_MS): " /sbin/ip link set can1 type can bitrate $CAN_BITRATE restart-ms $CAN_RESTART_MS fi /sbin/ip link set can1 up It looks like we can, and fairly easily! It sources ''customization.config'' and checks the status of ''DO_NOT_START''. That config file resides in the very small, but aptly named and persistent, ''/persistent/'' directory. I didn't want to simply set this to ''1'' and potentially break a bunch of things, so I scanned through the entire file system to see what else checked a ''DO_NOT_START'' variable, and was please to find that it's only Unicontrol stuff that I am comfortable disabling: $ grep -rnw / -e '"$DO_NOT_START" -eq "1"' ./var/can-setup/can-setup.sh:17:if [ "$DO_NOT_START" -eq "1" ]; then ./var/machine/run_machine.sh:16:if [ "$DO_NOT_START" -eq "1" ]; then ./var/remote_support/remote_support_setup.sh:19:if [ "$DO_NOT_START" -eq "1" ]; then ''customization.config'' also has a variable ''DO_NOT_START_REMOTE_SUPPORT'', which is only checked by the ''remote_support_setup.sh'' script, which will exit if either of those variables is true. In addition to remote support and canbus configuration, the ''run_machine.sh'' script also checks these variables. ''machine'' appears to be the program that configures the Duro for the specific piece of equipment it is installed on - in this case of this unit, an excavator. This is great, because I don't want any of those components running - especially ''machine'' - it consumes the lion's share of available RAM and quite a few CPU cycles, and the remote support stuff makes constant API calls with a token that is no longer valid. I quickly learned that it is not as simple as setting those variables to true, because before they are read the Unicontrol init scripts actually overwrite ''customization.config'' with a bare-bones copy stored in ''/var/customization/''. After that, the aptly named "config upgrader" init script is supposed to phone home and grab the latest version of the config file and machine definition file. All of this makes sense in the context of how this thing was deployed, but it's just a big headache for me. Honestly, this is a great template for embedded systems design in general, as far as I can tell the developers who built this did a really good job, and reverse engineering it has been a fun task. Thankfully, and somewhat ironically, Unicontrol's custom init scripts actually save us here. The first one that is called after the rest of the system boots is ''S99unicontrol_0_customization'' and it does three things: it checks to see if ''customization.config'' exists in the persistent directory, then it checks to see if that config file has ''CUSTOM_SCRIPT'' defined, and if it does, it runs that script. So what we can do is use this script to stop or remove the other init scripts before they wipe out my own locally created configuration file. Since the customization script runs first, this gives us an easy pathway - I simply created a script in the persistent directory called ''init_override.sh'' which removes the other S99unicontrol init scripts. I could have only removed the one that deletes my config file, but seeing as I am not using any of them, they can all go. #!/bin/sh rm -f /etc/init.d/S99unicontrol_1_remote_support_setup rm -f /etc/init.d/S99unicontrol_2_stats rm -f /etc/init.d/S99unicontrol_3_config_upgrader rm -f /etc/init.d/S99unicontrol_4_can_setup rm -f /etc/init.d/S99unicontrol_5_machine rm -f /etc/init.d/S99unicontrol_6_support_tunnel It is then referenced in ''customization.config'' as ''CUSTOM_SCRIPT=/persistent/init_override.sh'' and we reboot the system. When it unpacks the linux image into RAM and works its way through the init scripts it will hit ''S99unicontrol_0_customization'' which will find the override script (not yet deleted from the persistent storage!) and //poof// all of the other Unicontrol stuff is gone, there are a couple of vanilla init scripts that run afterwards, and then the unit is operating as normal, with a mostly vanilla configuration. If we ever want that stuff to run again, all we have to do is comment out the ''CUSTOM_SCRIPT'' line in the config file, reboot again, and all those intit scripts will run again - but make sure the config file is backed up (or duplicated under another name in /persistent/) because of course it will be deleted. ===== Photos ===== My Duro is a late model, with Carnegie Robotics branding. It is not clear to me when it was manufactured, but the [[https://www.marvell.com/content/dam/marvell/en/public-collateral/phys-transceivers/marvell-phys-transceivers-alaska-88e1512-product-brief.pdf|Marvell PHY]] on the carrier board has a late 2021 date code. Since writing the first version of this page I have bought four more Duros, mostly to get at the Piksi Multi modules inside them, and I have started pulling the modules and building my own carrier board for them - that work is on the [[swift_nav_piksi_multi|Piksi Multi page]]. Photos of the internals and of the bare modules will show up over there. Note that the Verbatim microSD card was not included in the unit, I placed it in the slot to demonstrate how it fits. {{gallery>:swiftnav:duro:photos}} ===== Documents and Files ===== All of these are currently readily available on the public web, these copies are provided as backups.