Posts: 18 Threads: 3 Likes Received: 4 in 4 posts Likes Given: 0 Joined: Dec 2017 Reputation: 1 I've just got one of these FCs for use on a 75mm craft. I see it has two UARTS and also pad S5 that can be allocated to - among other things - soft serial. I have never tried to use soft serial before (or any resource allocation) but as I have the (ELRS) Rx on UART1 and want to keep UART2 free for things like GPS or black box logging, and I need smart audio for a Fyujon combined ELRS Rx and VTx, this seemed to be the moment to try it for smart audio. The Darwin data says: S5: (PB3) can be resourced to soft serial for smartport (it also says RSSI: PA0, TIM5_CH1, can be resourced for soft serial or camera control resource camera_control A00) resource SERIAL_TX 11 PB3 didn't work (syntax error), but resource SERIAL_TX 11 B03 did, smart audio worked fine. The CLI warned me that B03 was already in use for motor 5, but as there isn't a motor 5, I carried on. However, unfortunately motor 3 stopped working. But, change it back as resource MOTOR 5 B03 and the motor works again, but no soft serial, of course. So, I'm stuck. How do I get soft serial onto S5 without screwing anything else up? Answers gratefully received. • Posts: 2,358 Threads: 118 Likes Received: 812 in 659 posts Likes Given: 128 Joined: Feb 2021 Reputation: 20 U got my interest… I use this fc and have crossfire and a vtx on the uarts.. would love to get black box on it to “dial it in”.. Isn’t there something about crossfire RXs and a uart on it? I can’t remember ? I wonder if ELRS has a possible function? • Posts: 2,477 Threads: 76 Likes Received: 1,376 in 1,029 posts Likes Given: 802 Joined: Apr 2022 Reputation: 41 I think Snow posted about remapping resources on another thread, recently. I don't personally know what command you need. If you need an answer quickly, hop on to Betaflight's Discord and ask, someone will know. Try Not, Do or Do Not - Yoda • Posts: 18 Threads: 3 Likes Received: 4 in 4 posts Likes Given: 0 Joined: Dec 2017 Reputation: 1 22-Jan-2023, 07:52 PM (This post was last modified: 22-Jan-2023, 07:53 PM by nmw01223.) (22-Jan-2023, 07:03 PM)Pathfinder075 Wrote: I think Snow posted about remapping resources on another thread, recently. I don't personally know what command you need. If you need an answer quickly, hop on to Betaflight's Discord and ask, someone will know. Thanks. After a bit of research I think I've got the commands worked out, but what I need to know is what IO pin pad S5 is connected to on this specific Darwin FC. I have emailed Darwin but as it's the Chinese new year I'm not expecting a reply any time soon, so I was hoping someone might have got it going on this FC. • Posts: 18 Threads: 3 Likes Received: 4 in 4 posts Likes Given: 0 Joined: Dec 2017 Reputation: 1 There was some talk of combined Rx and VTx with a common CPU where such things could be done - a bit like Ghost I guess. As far as I know at the moment the only combined one at the moment is the Fyujon, and that is two completely independent circuits on the same PCB. • Posts: 2,477 Threads: 76 Likes Received: 1,376 in 1,029 posts Likes Given: 802 Joined: Apr 2022 Reputation: 41 Try Not, Do or Do Not - Yoda • Posts: 18 Threads: 3 Likes Received: 4 in 4 posts Likes Given: 0 Joined: Dec 2017 Reputation: 1 22-Jan-2023, 10:36 PM (This post was last modified: 23-Jan-2023, 10:24 AM by nmw01223.) (22-Jan-2023, 08:01 PM)Pathfinder075 Wrote: Have you looked at Oscar's tutorial? I have, yes. Actually I have now solved it for anyone interested - it is important to remove motor drive 5 from the IO pin as well as allocating soft serial, though why that screwed up motor 3 I don't know. There are times when you can have two functions on the same pin, but this isn't one of those. So the correct series of commands to get soft serial on to pad S5 is: resource MOTOR 5 none resource SERIAL_TX 11 B03 That puts softserial1 on that pin (soft serials are offset by 10, presumably to allow for more hardware uarts), and all the motors still work. And, to get it back as it was: resource SERIAL_TX 11 none resource MOTOR 5 B03 Posts: 2,358 Threads: 118 Likes Received: 812 in 659 posts Likes Given: 128 Joined: Feb 2021 Reputation: 20 22-Jan-2023, 11:22 PM (This post was last modified: 22-Jan-2023, 11:22 PM by Rob Axel.) I have a fc with the esc toasted.. I may give this a shot.. if I pull it off.. can you suggest a black box logger? • Posts: 18 Threads: 3 Likes Received: 4 in 4 posts Likes Given: 0 Joined: Dec 2017 Reputation: 1 22-Jan-2023, 11:28 PM (This post was last modified: 22-Jan-2023, 11:30 PM by nmw01223.) (22-Jan-2023, 11:22 PM)Rob Axel Wrote: I have a fc with the esc toasted.. I may give this a shot.. if I pull it off.. can you suggest a black box logger? Can't I'm afraid, a friend got a very small cheap one and it worked OK though, so there must be some around. Not sure how it will help you with a dead ESC though? • Posts: 4,073 Threads: 75 Likes Received: 2,548 in 1,858 posts Likes Given: 3,949 Joined: May 2021 Reputation: 121 (22-Jan-2023, 11:22 PM)Rob Axel Wrote: I have a fc with the esc toasted.. I may give this a shot.. if I pull it off.. can you suggest a black box logger? OpenLager. The Happymodel or JHEMCU one are usually in stock. I’ve got the JHEMCU one, but here’s a link to the hm one. https://speedyfpv.com/products/happymode...gJlCvD_BwE Dangerous operations. Disclaimer: I don’t know wtf I’m talking about. I wish I could get the smell of burnt electronics out of my nose. • Posts: 2,358 Threads: 118 Likes Received: 812 in 659 posts Likes Given: 128 Joined: Feb 2021 Reputation: 20 I meant the remapping.. see if the uart responds properly .. THEN, do it to my good esc I have installed • Posts: 18 Threads: 3 Likes Received: 4 in 4 posts Likes Given: 0 Joined: Dec 2017 Reputation: 1 (22-Jan-2023, 11:38 PM)Rob Axel Wrote: I meant the remapping.. see if the uart responds properly .. THEN, do it to my good esc I have installed Ok, yes, makes sense. • |