-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pixracer: Configurable single-wire #39
Comments
@kd0aij If you agree my first proposal would be to hook it up and see how the signal behaves, then to read the data on the bus to ensure we get everything on our side, then write something after the frame from the RX (just anything so we see if the signal looks good). That would be enough to call the hardware good. Sending real sensor data (like battery voltage) is a bonus. |
frsky_telemetry daemon on port ttyS6 is sending altitude (looks like lpos.z) successfully to a Taranis X9D through a D4R-II RX |
With a diode connecting the TX to the RX from the PixRacer, the Voltage of the TX signal is +2.4v. The waves appear very square. Mark is proceeding with updating the frsky_telemetry application to use the X-Type signaling. |
The cable is a tough question. We provided the cable we did so it could be spliced as the user requires. FrSky uses one 4 pin connector on the X series receivers, yet on the connected FrSky devices use a standard 3pin .1 Servo style female connector. I think the best approach is I will order both cable and offer to sell as accessories on the site. |
@pkocmoud My signals (with RX connected directly to TX) look better than yours. I suggest you test with the diode shorted to see if I'm right. |
WIP on SmartPort telemetry daemon is here: PX4/PX4-Autopilot#3529 |
A couple of observations: This here would be how to do single-wire properly behind the inverter that we already have: We never have non-inverted single-wire. So we could shut off the the TX line together with the inversion signal and use a block like the one below for FrSky and for S.BUS: |
"singlewire" there is just a junction? and your intent is to be able to run the uart in full-duplex mode also? I think Phil's goal is to change R13 so that it's an optimal implementation, but that depends on whether we require both full and half duplex or just half duplex |
The link in my post above has the full schematic for "SINGLEWIRE". |
We only have two configurations:
I would not be aware of anything in the RC space that would depart from that scheme. |
clarifiying the RC space requirements
|
I sure am lost in the words. How about a requirements chart (rich spread sheet) that list all the Protocols and has TX, RX listed and the sense with respect to the CPU. Like:
Then add a column for existing interface solution for only that protocol where it says insert image |
Also it would be nice to have bit rates listed too. |
good idea. The requirements must specify precisely which protocols must be supported by the hardware and which are mutually exclusive (one element of a set must be chosen and whether that selection must be made at compile time or deferred to run time). If this isn't already written down, I suggest that the hardware should support CPPM, DSM or SBUS input (selected at runtime based on which decoder succeeds), and SmartPort output compiled in. Nothing else. Once this is agreed upon, the remaining tasks become well-defined. |
@davids5 The key is to have ownership here. Its not a technical problem. I gave you the complete spec already (we need plain serial or inverted single-wire serial and nothing else). @kd0aij If you would like to create the complete list (which will reduce to just the two things I provided above again) I'm fine with it, but I want to know who assumes responsibility in validating the interface. I feel you're up to speed now so you could certainly handle that. @davids5 Its not necessarily helpful to discuss the full specs with everybody, since they only make sense if everybody understands virtually every radio protocol out there. We don't have the luxury to be able to train several people in all those, and so the table will remain meaningless. |
And the R12 hardware can provide the bidirectional 1-wire support on the USART8 pins (with the right cable) with no hardware change at all. Further testing of PX4/PX4-Autopilot#3553 is invited. I'll look further into singlewire mode and the circuit recommended by the Taulabs here: https://github.com/TauLabs/TauLabs/wiki/User-Guide:-FrSKY-S.PORT-telemetry |
The F4 has no hardware inverter. It's older than the F3 family. |
Can you put up a photo in the PR of the cable so people can rebuild it and know where to connect it on the RX? |
Thanks, I hadn't looked at the F3 yet. |
I did, it works fine. I asked Nick to post a graphic. From: Mark Whitehorn [mailto:notifications@github.com] Thanks, I hadn't looked at the F3 yet. — |
So if we don't change the smartport logic of R12 at all, we can also use it as a non-inverted TTL uart port. |
Agree......+ if we separate the PB0 and PC7, and connect PB0 directly to RC_INPUT, our RC_INPUT port is fine too. That means we can proceed with R12 with just fix of a track. |
@kd0aij @pkocmoud This is to track the S.PORT electrical spec.
The text was updated successfully, but these errors were encountered: