- Posts: 174
New Hubsan Upgraded Version on the way
- midelic
- Offline
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
I think I already tried that (check for 0x1a) without luck, well don't worry, I'll come back to you when I'm really desperate.PhracturedBlue wrote: The only thing I see is that you don't check for write completion before switcing to Rx mode. After 3msec that really shouldn't be an issue, but it would be safer to verify that transmission has completed before strobing the A7105.
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
good luck!
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
No problem Midelic, you're always having good advices.midelic wrote: Never mind.
good luck!
Looks like the timing interval between 2 sent packets is not that important, I just tried with 13.5ms instead of 10 and there's no problem ! (at least with the H107L)PhracturedBlue wrote: my guess is that somehow you are going more/less than 10000us and are eventually getting out of sync.
My problem lies elsewhere.
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
on your for function I don't see any curly braces "{}" when start and end .. and cannot break of for,..... break of switch function.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
SeByDocKy wrote: For the 3 CS pins ... it's strange coz in fact, I can also select a channel with +5Mhz increment ....
Got it ! Those 3 CS pins can be used for simple 8 fixed frequencies selection, or as a spi bus:
www.flypix.co.uk/ftp/RTC6705-DST-001.pdf
Funny fact:
in the specs (5GHz Band Transmitter Specifications) it states absolute maximum rating 5725-5865 MHz, however in simple fixed frequency selection table it states it can go as low as 5645 MHz (CS: 011 Band E)
We proved 5645 MHz is working
I guess this is a typo and it can do 5625-5865.
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- proteus
- Offline
- Posts: 41
video and frequency change, work fine with my devo8s
more than the telemetry and everything will be operational
I am impressed
Please Log in or Create an account to join the conversation.
- magic_marty
- Offline
- Posts: 706
GPS Auto Pilot function
Compass sensor
GPS RTH
Stable Mode with GPS and altitude Hold
Flight time around 25 minutes
Failsafe to return home & Landing
Low voltage protection
TX (FPV TX or Normal TX with Hubsan standard)
almost sounds to good to be true but i guess we will see soon
www.hubsan.com/products/HELICOPTER/H109.htm
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
PhracturedBlue wrote: If you need a hand, let me know, and I'll spend some time actually going over it, but probably not today.
The bug is very easy to reproduce:
Looks like there's an issue with the u8 A7105_ReadReg(u8 address) function, in hubsan_cb(), just add a single register read after sending frame:
A7105_WriteData(packet, 16, state == DATA_5 ? channel + 0x23 : channel);
A7105_ReadReg(A7105_00_MODE);
I found that if you add a few nop loops here and there in ReadReg() it will work longer before losing connection.
Anyone with a H107D wants to test a firmware with (supposedly) working voltage telemetry ? Don't attempt to actually fly , there's a big risk of connection drop it's only to check if telemetry is working. Thanks, and happy new year !
Devo 7e:
speedy.sh/GknHH/deviation-devo7e-Unknown.zip
Devo 8s:
speedy.sh/T7mRR/devo8.dfu
Devo 10:
speedy.sh/mceNN/devo10.dfu
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I don't see anything in the manual that would prevent querying the status that way.
Please Log in or Create an account to join the conversation.
- Daryoon
- Offline
- Posts: 260
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
In A7105_ReadReg() you'll see we play some games with the SPI interface. This is a) tohandle the bi-direction SDIO port, and b) to follow the instructions in the STM32 manual which state that you should shut down the SPI interface after a single clock has happened to ensure you only do one read as otherwise the 1st read will trigger a 2nd one.
The MCU is running at 72MHz, so 20 nops should be plenty to guarantee a single read occurs, but maybe something screwy is going on here.
A trace of the SPI bus would likely indicate the issue. I'll try to hook mine up tomorrow if you don't beat me to it.
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
HAPPY NEW YEAR!
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Don't hook up your analyzer yet, I think I just found the trick, let me empty a few batteries to confirm it's working fine
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- New Hubsan Upgraded Version on the way