Firmware updates for the STM32/Gotek HxC floppy emulators !

Post Reply
Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

sorry i don't have these kind of encoder here. no way for me to test it properly... :(
tzok wrote:
Wed Jun 13, 2018 6:41 pm
As you probably know,...
no i don't and btw i don't understand why you post this : Your rotary issue was resolved some months ago, isn't it ? :

http://torlus.com/floppy/forum/viewtopi ... 225#p17543

tzok
Posts: 79
Joined: Sat Jan 27, 2018 2:52 pm

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by tzok »

Yes - it became much more responsive and is no more loosing pulses when mowed faster, but still it requires two "clicks" to move one one position. You said it's noisy and can't do anything better. Yet now, I know that it can work on this hardware as it should.

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

tzok wrote:
Wed Jun 13, 2018 7:01 pm
Yes - it became much more responsive and is no more loosing pulses when mowed faster, but still it requires two "clicks" to move one one position.
Ok will try to figure out with the one i have here.

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

Jeff wrote:
Wed Jun 13, 2018 7:04 pm
tzok wrote:
Wed Jun 13, 2018 7:01 pm
Yes - it became much more responsive and is no more loosing pulses when mowed faster, but still it requires two "clicks" to move one one position.
Ok will try to figure out with the one i have here.
Btw why have an menu option for this ? If the "one step one click" mode is working properly, no need to have the others mode, isn't it ?

tzok
Posts: 79
Joined: Sat Jan 27, 2018 2:52 pm

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by tzok »

There are different rotary encoder available on the market, they generate different patterns. Single option won't cover all encoders. That's why I've mentioned FF - the basic option (simple) is like yours. It will work with these Chinese encoders with a "blue base". The "green base" ones will require "half cycle" decoding - so on basic setting will require two clicks to move by one position. FF had a Gray code pattern option, but on this green encoder it results in going 2 positions at each click (if I hold it between clicks it will be 1 position).

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

Ok then this mean that i can't really test the firmware. i have only one rotary here. And i understand that you have only one too ?

tzok
Posts: 79
Joined: Sat Jan 27, 2018 2:52 pm

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by tzok »

I believe it is fairly simple - after each click both lines toggle. On a "proper" Gray pattern encoders, only one line changes at a click.

Heres how mine works:
Image
(zoomed area shows 4 "clicks" in one direction).

So for this encoder you have to remember which line toggled first (direction), and perform action on second line toggles (commit)... but it is a mechanical encoder, and rarely happens that only one line will toggle ;) so cases when one line toggles forth and back, while second one stays solid, must be ignored (when both lines are on same level, you have to reset waiting for commit and go back to waiting for direction). Unfortunately also such thing may happen:
Image
...so next turn will start like this:
Image
Last edited by tzok on Wed Jun 13, 2018 10:49 pm, edited 1 time in total.

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

Ok then try this one and let me know :

https://hxc2001.com/vrac/HxCUSBFE_ROT1.UPD

tzok
Posts: 79
Joined: Sat Jan 27, 2018 2:52 pm

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by tzok »

It works ok for my ("green base") encoder... but it will likely cause problem to the "blue base" encoders.

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

tzok wrote:
Wed Jun 13, 2018 10:53 pm
It works ok for my ("green base") encoder... but it will likely cause problem to the "blue base" encoders.
The question is : Is this fix the "need 2 step to add 1" issue ?

if so i will add the menu to select between the old & new behaviour.

tzok
Posts: 79
Joined: Sat Jan 27, 2018 2:52 pm

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by tzok »

Yes it did fixed that issue.

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

tzok wrote:
Wed Jun 13, 2018 11:04 pm
Yes it did fix that issue.
ok fine ! :D.

Quite busy tonight to make a proper release, but i think that i will make a new release with this menu tomorrow

tzok
Posts: 79
Joined: Sat Jan 27, 2018 2:52 pm

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by tzok »

Thank you for your help!

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

Firmware update ! :
17 June 2018: Firmware STM32 USB HxCFloppyEmulator v3.1.25.1a ( -> In the WIP Folder !)

- Internal improvements.

- "Double steps per increment" rotary support added.

- New menu entries :
-----> Head settling time. (7 digits gotek meny entry number 6).
-----> Rotary type. (7 digits gotek menu entry number 7 - 0=Single Step, 1=Double Step, 3=Disable.).
https://hxc2001.com/download/floppy_dri ... rmware.zip

https://hxc2001.com/download/floppy_dri ... _notes.txt

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: New Alpha version Firmware - Volunteer Testers needed !

Post by Jeff »

Firmware update ! :
19 June 2018: Firmware STM32 USB HxCFloppyEmulator v3.1.26.1a ( -> In the "Next_WIP_Alpha_Firmware_And_Tools" Folder !)

- Fix the "clear settings"/reset factory function.
https://hxc2001.com/download/floppy_dri ... rmware.zip

https://hxc2001.com/download/floppy_dri ... _notes.txt

Post Reply