# apu02 Cables To connect the Moxa with my apus I had to customize the cables I got from [aliexpress](https://www.aliexpress.com/item/32945212998.html?spm=a2g0s.9042311.0.0.10a84c4dRNyK7K). Till now I never had to create my custom serial console cable, so to me this was a new experience. ##### Finding the combination I first had to find out the correct combination of cables since it did not work with these cables right away so I put a breadboard in between the cables. [![Breadboard in the middle](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/IMG_20200315_155533.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/IMG_20200315_155533.jpg) To connect the wires to the breadboard I did crimp connectors to them. [![Crimped male connectors](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/IMG_20200315_160545.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/IMG_20200315_160545.jpg) For this I used a crimping tool and a set of connectors. [![Crimping tool](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/IMG_20200315_063259.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/IMG_20200315_063259.jpg) Then the fun started, based on the information from [pcengines](https://www.pcengines.ch/db9cab1.htm) and from the [Moxa CN2510 Manual](https://www.moxa.com/en/products/industrial-edge-connectivity/serial-device-servers/terminal-servers/cn2510-series#resources) about the expected wiring I tried to apply it to the existing cable. ##### Check the cable I checked the wiring using a Fluke 115. [![Fluke 115](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/IMG_20200315_063222.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/IMG_20200315_063222.jpg) ##### Pin combinbations Finally I had the correct wiring transferred to my cable. For the RJ45 the Moxa needs the following wiring: | Pin | Collor | Signal Type | | ----|:-----------:|:-----------:| | 1 | transparent | DSR | | 2 | green | RTS | | 3 | white | GND | | 4 | orange | TxD | | 5 | brown | RxD | | 6 | red | DCD | | 7 | blue | CTS | | 8 | yellow | DTR | From the DB9 Connector these colors are assigend to the follwing Pins, the apu expects a wiring of a null modem cable. | Pin | Collor | Signal Type | | ----|:-----------:|:-----------:| | 1 | brown | DCD | | 2 | red | RxD | | 3 | white | TxD | | 4 | green | DTR | | 5 | orange | GND | | 6 | blue | DSR | | 7 | transparent | RTS | | 8 | yellow | CTS | ##### The mapping Based on this information I came up with the following mapping: [![color](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/color_turn.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/color_turn.jpg) | Pin | Collor | | ----|:-----------:| | 1 | blue | | 2 | yellow | | 3 | - | | 4 | red | | 5 | white | | 6 | orange | | 7 | transparent | | 8 | green | The the RJ45 crimping tool came to use. [![Crimp tool](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/IMG_20200315_063138.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/IMG_20200315_063138.jpg) And the custom cable got produced. [![Cable](https://naumann.dev/uploads/images/gallery/2020-03/scaled-1680-/IMG_20200315_105201.jpg)](https://naumann.dev/uploads/images/gallery/2020-03/IMG_20200315_105201.jpg)