{"action":"created","issue":{"url":"https://api.github.com/repos/o-gs/dji-firmware-tools/issues/77","repository_url":"https://api.github.com/repos/o-gs/dji-firmware-tools","labels_url":"https://api.github.com/repos/o-gs/dji-firmware-tools/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/o-gs/dji-firmware-tools/issues/77/comments","events_url":"https://api.github.com/repos/o-gs/dji-firmware-tools/issues/77/events","html_url":"https://github.com/o-gs/dji-firmware-tools/issues/77","id":328622374,"node_id":"MDU6SXNzdWUzMjg2MjIzNzQ=","number":77,"title":"Ph3 Pro/Adv - Recording communication between OFDM and ESC Center Board","user":{"login":"mefistotelis","id":11463396,"node_id":"MDQ6VXNlcjExNDYzMzk2","avatar_url":"https://avatars1.githubusercontent.com/u/11463396?v=4","gravatar_id":"","url":"https://api.github.com/users/mefistotelis","html_url":"https://github.com/mefistotelis","followers_url":"https://api.github.com/users/mefistotelis/followers","following_url":"https://api.github.com/users/mefistotelis/following{/other_user}","gists_url":"https://api.github.com/users/mefistotelis/gists{/gist_id}","starred_url":"https://api.github.com/users/mefistotelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mefistotelis/subscriptions","organizations_url":"https://api.github.com/users/mefistotelis/orgs","repos_url":"https://api.github.com/users/mefistotelis/repos","events_url":"https://api.github.com/users/mefistotelis/events{/privacy}","received_events_url":"https://api.github.com/users/mefistotelis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-06-01T18:44:29Z","updated_at":"2018-06-04T12:48:03Z","closed_at":null,"author_association":"COLLABORATOR","body":"This is not really an issue, but rather a tutorial.\r\n\r\nThere is a 6-pin ribbon cable which connects OFDM Board to ESC Center Board:\r\n- On OFDM side, the connector is marked as `CENTER` - see [OFDM board photos](https://github.com/o-gs/dji-firmware-tools/wiki/P3X-OFDM-Receiver-board#board-view).\r\n- On ESC Center side, it is merged with VPS cable into one connector marked `VIEW/OFDM`, though the words are a bit separated from it - see [ESC center board photos](https://github.com/o-gs/dji-firmware-tools/wiki/P3X-ESC-center-board#board-view).\r\n\r\nHere's the pinout on OFDM side:\r\n![ofdm_connectors](https://user-images.githubusercontent.com/11463396/40856840-8a8925c0-65d9-11e8-8ce9-8c01f918a16c.png)\r\n\r\nAnd pinout from ESC Center side:\r\n![esc_centr_ofdm_connectors](https://user-images.githubusercontent.com/11463396/40856986-fd1bb530-65d9-11e8-9f06-ac0f75c3412f.png)\r\n\r\nTo record communication between Flight Controller and OFDM, you need to connect two USB-to-TTL converters to the `RX`, `TX` and `GND` pins of OFDM side, or to the `RX1`, `TX1` and `GND` pins on ESC Center side. You need two USB-to-TTL converters, as you need two \"receive\" lines - you will dump communication in both directions.\r\n\r\nYou can pinch wires, or put needles into connectors, or prepare a new ribbon cable which will extend the existing one, and add a second route for the 3 pins that need connecting to USB-to-TTL device.\r\n\r\nHere's an example of the extension ribbon cable for the OFDM side:\r\n![ofdm_esc_cable](https://user-images.githubusercontent.com/11463396/40857538-bfea6bf0-65db-11e8-98f2-8a4fd801f91a.jpg)\r\n\r\nThe connectors to be used should be 6-pin with 1.25mm pitch. They are easy to buy from any electronics supplier. The socket can have more pins - in the picture above, 8-pin socket is used; 6-pin plug can be inserted into it without much issues.\r\n\r\nHere's an example of the complete setup:\r\n![ofdm_usb-to-ttl-setup](https://user-images.githubusercontent.com/11463396/40857594-dd5ff2cc-65db-11e8-9f60-04f4b3ea6535.jpg)\r\n\r\nAfter all the connections are done, you can use `comm_serial2pcap.py` to dump the communication to a PCAP file on PC.\r\nExample for PC running Linux (recommended):\r\n```\r\nsudo ./comm_serial2pcap.py -b 256000 -u 3 -e -vvv -w p3x_ofdm_to_center_run_001.pcap /dev/ttyUSB0 /dev/ttyUSB1\r\n```\r\n\r\nThe PCAP files can be opened with Wireshark, after the [proper dissectors are installed](https://github.com/o-gs/dji-firmware-tools/tree/master/comm_dissector).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/o-gs/dji-firmware-tools/issues/comments/394342491","html_url":"https://github.com/o-gs/dji-firmware-tools/issues/77#issuecomment-394342491","issue_url":"https://api.github.com/repos/o-gs/dji-firmware-tools/issues/77","id":394342491,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDM0MjQ5MQ==","user":{"login":"dnapapas","id":39813126,"node_id":"MDQ6VXNlcjM5ODEzMTI2","avatar_url":"https://avatars2.githubusercontent.com/u/39813126?v=4","gravatar_id":"","url":"https://api.github.com/users/dnapapas","html_url":"https://github.com/dnapapas","followers_url":"https://api.github.com/users/dnapapas/followers","following_url":"https://api.github.com/users/dnapapas/following{/other_user}","gists_url":"https://api.github.com/users/dnapapas/gists{/gist_id}","starred_url":"https://api.github.com/users/dnapapas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnapapas/subscriptions","organizations_url":"https://api.github.com/users/dnapapas/orgs","repos_url":"https://api.github.com/users/dnapapas/repos","events_url":"https://api.github.com/users/dnapapas/events{/privacy}","received_events_url":"https://api.github.com/users/dnapapas/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T12:48:03Z","updated_at":"2018-06-04T12:48:03Z","author_association":"NONE","body":"Is this something that can work? USB hub and USB to RS232 converters w/ftdi chipset.\r\nSomething else I found,\r\n![usb-com232-plus-4](https://user-images.githubusercontent.com/39813126/40918332-f87622da-67d3-11e8-9372-7539e17eccc9.jpg)\r\n"}}
{"actor":{"display_login":"dnapapas"}}