Protocol Stacks

More
01 Aug 2012 14:56 #804 by PhracturedBlue
Replied by PhracturedBlue on topic Re: Protocol Stacks

FDR wrote: I have a CB100, which is 2401 compatible, so I can test it too.
But I have to figure out how to compile for the tx and make a dfu from that... :unsure:
I hasn't implemented the encoding in my dfu tool yet.

The encoding is part of utils/dfu.py. Even without knowing much python, it should not be too hard to figure out. Or you could just install python in mingw, then you could build there. I would not recommend trying to fly the firmware yet though. The todo list is still quite long.

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 22:25 - 04 Aug 2012 22:26 #881 by wuselfuzz
Replied by wuselfuzz on topic Protocol Stacks
First tests:

- Binding to an rx2801 worked, but an attached servo jittered like hell.
- Binding to an rx2435 (rx2401 series) didn't work.

Can't find the free DSM2 receiver and currently can't test with a 2601 series receiver, that one is still in my 4G6.
Last edit: 04 Aug 2012 22:26 by wuselfuzz.

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 22:32 - 04 Aug 2012 22:32 #882 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks

wuselfuzz wrote: First tests:

- Binding to an rx2801 worked, but an attached servo jittered like hell.
- Binding to an rx2435 (rx2401 series) didn't work.

Can't find the free DSM2 receiver and currently can't test with a 2601 series receiver, that one is still in my 4G6.

Yeah, I plugged my rx2801 in today and saw the same thing. build_data_pkt2801() is really messed up. I don't know what I was thinking, but I got the 2MSBs compeletely wrong. I'll be working on it tonight.

Not surprising since I've never tested it before. The devo stuff still works fine though.
Last edit: 04 Aug 2012 22:32 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 22:34 #883 by wuselfuzz
Replied by wuselfuzz on topic Protocol Stacks
Hehe, my only devo receiver is the one in the V100D08, I don't feel like breaking a brand new heli yet. :)

Found the DSM2 in my MiniMag, but I have to go to bed soon and visit my parents tomorrow.

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 05:13 #884 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks

wuselfuzz wrote: Hehe, my only devo receiver is the one in the V100D08, I don't feel like breaking a brand new heli yet. :)

Found the DSM2 in my MiniMag, but I have to go to bed soon and visit my parents tomorrow.

I got the Rx-2801 working now :)
Unfortunately, I realized I don't have any connectors small enough to power my Rx2609. I need to get some regular-to-mini plug adapters so I can use my servos and battery with my 2609.

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 18:26 #885 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks
My RX2609 s working now too (in both WK2601 and WK2801 mode)

I soldered some leads onto the board, so I could power it and it worked right away.
I found out that Walkera hooked up the micro-jst servo connectors backwards to how Hobby King sells them, so I also needed to reverse those.

I don't have anything that speaks the WK2401 protocol, so I can't test that one, but I'm encouraged that the WK2801 and 2601 protocols are working :)

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 18:34 #886 by FDR
Replied by FDR on topic Protocol Stacks
Congrats!
I see you two are working hard! :)
What can I help? I have a 4ch CB100 to try the WK-2401 protocol...

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 18:53 #887 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks

FDR wrote: Congrats!
I see you two are working hard! :)
What can I help? I have a 4ch CB100 to try the WK-2401 protocol...

Well, you can try loading the firmware onto your tx and see if it'll bind with your cb100. I would take the blades off 1st in case it actually works and ends up starting at full throttle.

I have no idea how to build the firmware on Windows, but here is the latest copy:


To use:
install it with the Walkera DfuSe tool.

power down and power up holding the 'Ent' key
your PC should detect it as an unformatted drive.
format the drive with default settings
copy the contents of the 'filesystem' folder to the new drive (not the folder itself though. you want tx.ini, models, media, etc in the root of the Tx drive)
power down and power the Tx back up. it should now work just like the emulator. Select WK2401 as the protocol, power off again, plug in your CB100 and power back on the Tx.

I thin wuselfuzz also has some WK2401 gear, so you could possibly wait for him too.

Deviation will not overwrite your models (if everything is working properly..I'd probably run the backup just in case) so you can go back to the Devo firmware by reflashing the firmware and library.

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 19:11 #888 by FDR
Replied by FDR on topic Protocol Stacks

PhracturedBlue wrote: I have no idea how to build the firmware on Windows, but here is the latest copy:


Where here?
Is that supposed to be an attachment? It won't allow .dfu file nor larger than 1MB, so please zip it...

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 19:14 #889 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks

FDR wrote:

PhracturedBlue wrote: I have no idea how to build the firmware on Windows, but here is the latest copy:


Where here?
Is that supposed to be an attachment? It won't allow .dfu file nor larger than 1MB, so please zip it...

I did zip it. This forum is very annoying about not telling you when it doesn't accept an attachment.

Try it again.

File Attachment:

File Name: devo8.zip
File Size:86 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 20:08 #890 by wuselfuzz
Replied by wuselfuzz on topic Protocol Stacks
Hi.

As of yesterday night, 2401 binding to an rx2435 did not work.

As of earlier today (I'm in CEST), 2801 binding did work and that servo jitter was gone.

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 20:27 #891 by FDR
Replied by FDR on topic Protocol Stacks
I confirm that: it doesn't bind.

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 20:39 - 05 Aug 2012 20:39 #892 by FDR
Replied by FDR on topic Protocol Stacks
I should give more detail:

I think it binded once, but I'm not certain, because I forgot, that I left my WK2402 turned on... (However it shouldn't bind after the first 10 seconds...)
The thing is: it was unreliable. For example once I set up the model data, but on the next turning on for binding, it was not correct (the mixers were resetted to none state).

It seems, that my sticks are quite off: they would need calibration. The receiver might not bind if throttle is not zero (or -100% in this case).

There were other minor issues too: it didn't turn off, when I was not on the main screen.
The trim page's trim step values were hard to change: single clicks were unreliable...

It is bedtime now, but tomorrow I will try to play with it a little longer...
Last edit: 05 Aug 2012 20:39 by FDR.

Please Log in or Create an account to join the conversation.

More
05 Aug 2012 23:15 #893 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks
I made some changes that may help with the WK2401. The state of the sticks will not affect binding, so the fact that calibration is off won't matter at all.

Were you using a stylus tp play with the spinbox? I cannot reliably change spinboxes without one. It is likely you'll need to calibrate your screen as well as your sticks. I'll add a page for that.

Please Log in or Create an account to join the conversation.

More
06 Aug 2012 02:14 #894 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks
Here's a new build. It may fix the wk2401. If it still doesn't bind, I'll provide a 'replay' build which just plays back some logs I have to see if that works.

The new build also has a (crude) calibration screen for touch and stick.
Attachments:

Please Log in or Create an account to join the conversation.

More
06 Aug 2012 05:56 #895 by FDR
Replied by FDR on topic Protocol Stacks
It didn't help, it still doesn't bind...

Please Log in or Create an account to join the conversation.

More
06 Aug 2012 06:23 - 06 Aug 2012 06:24 #896 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks
Try this one.
Also, in model1.ini add this in the radio section:
fixed_id=487193

(also try both WK2401 and WK2601 modes)

This is exactly the binding code that I see in the logs I got. If this doesn't bind it implies the initialization or timing is wrong.

Bed time here....I'll take it up in the morning
Attachments:
Last edit: 06 Aug 2012 06:24 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
06 Aug 2012 11:30 #899 by wuselfuzz
Replied by wuselfuzz on topic Protocol Stacks
I just ordered a logic analyzer. \o/

dangerousprototypes.com/open-logic-sniffer/

Please Log in or Create an account to join the conversation.

More
06 Aug 2012 13:52 #901 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks

wuselfuzz wrote: I just ordered a logic analyzer. \o/

dangerousprototypes.com/open-logic-sniffer/


That looks like a nice bit of kit. I'll be interested in how far 16kB goes as far as number of samples (you need to sample the SPI bus at 8MHZ to get reliable data). I generally like to look at logs that are 10-30 seconds long, and I doubt you'll be able to use such long logs with that. It shouldn't matter too much though, it just means you can't look at the whole log in one shot.

Please Log in or Create an account to join the conversation.

More
06 Aug 2012 14:07 #902 by PhracturedBlue
Replied by PhracturedBlue on topic Protocol Stacks
I spent some time double checking my code against the sample logs I got from renatopub. I don't see anything else wrong, so if it still doesn't work with the last build and fixed-id, I'm stumped. In that case, I guess I'll dump my logs and make sure what I see on the emulator is what I see from the Tx.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum