Comments (30)
No plans yet. I'll take a look though
from msrc.
If then please take a look also here: pkurucz/opentelem_to_bst_bridge#2
from msrc.
Which board do you plan to use? What sensors are you going to attach?
from msrc.
Telemetry seems to be limited to gps, battery and attitude
It seems that there are 2 protocols. One I2C and other serial. I plan to implement I2C, which is very similar to Spektrum XBUS
from msrc.
It is unclear how BST (I2C) protocol works. Whether sensors should be connected to I2C in slave or master mode. I expect them to be connected as slave and wait for a poll, not as master as seems to be in the link you posted
from msrc.
I plan to use Arduino board with APM32F103C. For me it would be the Rx supplying battery voltage enough. Yes, BST I2C is ok. Probably the board should be a slave and Crossfire master.
from msrc.
What is the APM32F103C for?
from msrc.
This one: https://www.aliexpress.com/item/4000807291937.html?spm=a2g0s.9042311.0.0.5a134c4dOWpE5i
from msrc.
Here is the branch with BST support
This first attempt is with I2C as slave
Flash as is. You need to connect BST SDA, SCL, and GND to arduino A4, A5 and GND respectively (don't connect Vcc between BST and Arduino as you will need to debug, so it will be feed from USB or USB-TTL, depending on your Arduino board). You don't need to connect any sensor yet. Debug is enabled. It will try to send telemetry for battery and gps. I'd be surprised if this works at first. Post the output of the arduino with a serial monitor at 115200
from msrc.
Thanks a lot, I will try it, but unfortunately the Ardu board still did not arrive. Then I will let you know.
from msrc.
Do you think it will work also on this board? https://www.banggood.com/Wholesale-ATMEGA328-328p-5V-16MHz-Pro-Mini-PCB-Module-Board-p-68534.html?rmmds=myorder&cur_warehouse=CN Two of them I have at home.
from msrc.
Yes, that's a good choice (unless you plan to use a castle esc or esc serial + gps serial). It's cheap and light
from msrc.
I checked it, but it seems it does not work. No new sensors in telemetry, only those from the Rx itself. I do not know, how to display output from Arduino with serial monitor, I am not familiar with Arduino IDE. I can only flash the board by it. Please, advice.
I plan to use this board with Arkbird FC, which GPS already has and I am using only simple ESC.
from msrc.
I'd suggest to solder angled pins for easy fashing and debug with serial monitor. See image. But be can try this without debugging
To confirm you are flashing the correct branch, please could you confirm that line 240 in msrc.cpp is DEBUG_SERIAL.println("BST");
from msrc.
I do not understand to what I should connect the board - to the board FTDI232 with USB converter, which I used for flashing? Do not know for what are the wires on the picture...
Yes, I can confirm the right line 240 in msrc.cpp
from msrc.
I've made some fixes to the bst branch. There was a bug on the crc
Please try with the updated code
Let me know if it works. If it doesn't I'll change the code to broadcast as a master on the i2c
Yes, for debug you have to connect only two wires: arduino-tx to ftdi-rx and arduino-gnd to ftdi-gnd (as well as bst on the other side)
from msrc.
I tried, but still only that old 10 sensors is there. The difference is, that the red LED on the Ardu board is not blinking now.
I can try to debug somehow. Please, send me the instructions, how to do.
from msrc.
Ok. Then try with this branch bst_master
The telemetry is send by I2C master broadcast
from msrc.
I am sorry, but still the same :-(
from msrc.
Daniel, any idea, how to proceed? In the Eagletree Vector project they are using pull-up resistors due to weak rise time at 328P. But do not understand, why are resistors connected to A2, A3 and not to Vcc. I tried A2, A3, but no change in behavior. Tomorrow I will check the signal by oscilloscope.
from msrc.
why are resistors connected to A2, A3 and not to Vcc
It would be the same. I believe it is used A2, A3 for easier soldering. To use A2, A3, it is needed to enable pins as output and set them high (lines 167-170, bst_telemetry.cpp)
Yes, you can try with external pull ups, either Vcc or analog pins, to discard signal issues
Another check would be to debug as explained
If I have some time, I'll check if the data send by msrc equals to the other project
from msrc.
There was an issue with the crc. Fixed. Now is sending same crc as bst_bridge project, but it is not aligned with betaflight crc. If this doesn't work I'm afraid I won't be working on it any more as this protocol is not well documented
I've updated the two branches, slave and master
Try both, hopefully it works
from msrc.
With the last (master) version it arrived signal on the outputs. With the previous versions not. But no new sensors in the telemetry, still only that old 10 from the receiver. Signals SCL, SDA on pictures:
from msrc.
Crc is correct (verified with betaflight) and it is emitting the same as bst bridge. Your circuit seems ok
As last attempt, I've made minor changes to bst_master. Try it
from msrc.
Still no new sensors:
When flashing I am opening file msrc.ino and program uses only 22% of memory. Is it ok?
Please, what should I launch and what should I see in the Arduino IDE, when I will connect it for debugging?
from msrc.
Yes, program size is correct
You have to open Tools->Serial Monitor and set baud rate to 115200. Do not connect Vcc between programmer and arduino as is already powered from the receiver
You should see
V0.8.0
BST MASTER
8 0 7B 0 7B 0 0 0 0 86
8 0 7B 0 7B 0 0 0 0 86
from msrc.
I can confirm, it is like you described:
from msrc.
I tried to use a Frsky receiver R-XSR and with S.PORT it is working well. But by Crossfire the lua script is still trying to connect:
Please, is the 0.8 version ok?
On your page you mention: The default sensor id is 10. Is it ok, if the current number of sensors for Crossfire is 10?
from msrc.
Lua script works with smartport only
from msrc.
ah, ok
from msrc.
Related Issues (20)
- Jeti EX Bus GPS not working HOT 8
- Jeti - How to give the sensor a name
- Futaba SBUS - BMP280 variometer bug HOT 5
- About RP2040 Indicators are not blinking HOT 1
- Hall effect RPM sensor HOT 2
- FS Ibus problem
- Some detailed info for readme... HOT 2
- debugging HOT 5
- FrySky R9MM Support? HOT 2
- XBUS Transistor HOT 2
- RP whit BMP problem HOT 1
- Improper Pathing in .vscode HOT 1
- Jeti issues HOT 4
- blheli_32 telemetry support?
- HobbyWing Platinum V5 telemetry support? HOT 1
- Hobbywing with Ethos Voltage Sensor > 50 Volt HOT 1
- No GPS on iBUS HOT 2
- having a similar problem to closed issue XBUS-Connection to AR8020T-Receiver #95 HOT 2
- possible support for Flysky SBUS HOT 1
- pinout image has error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msrc.