USB haas operator panel interface

More
6 years 9 months ago #155644 by fupeama
Hi,

long time ago I try to "hack" sserial. It is posible.
I had to make new firmrware for my 7i76e, because i need ttl on p2 no rs485. Than I used logic analyzer and listen communication between 7i76e and 7i73
after a long time and many attempts my stm32f1 and 7i76e speeks together. Then I migrated to stm32f4, because f1 have not enough pins for keyboard, encoders etc.
(atmega is fine, but not for fast communication on 2,5Mb speed)
here is a very simple example.and log file from analyzer.



File Attachment:

File Name: rozbor.rar
File Size:1.41 MB


and source code made in stm32cubemx and uvision arm keil for f1 (no keyboard attached only sserial communication) and f4 (keyboard attached)
only for ilustration. I am not programmer.

File Attachment:

File Name: stm.rar
File Size:35.48 KB

Martin

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

More
6 years 9 months ago #155646 by cmorley
That awesome! can't wait to look at your work - thanks for posting.

Chris

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

More
6 years 9 months ago #155949 by andypugh

cmorley wrote: Besides it still doesn't work as a keyboard for entry (or at least it requires a custom component for the that)


One iteration of the matrix_kb HAL component was capable of generating keystrokes. But I wasn't sure that the OS call that I was using was thread-safe, so I removed the option.

It wasn't difficult to do. But it was difficult to test.

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

More
6 years 9 months ago #155971 by cmorley
The nice thing about the HID USB keyboard it will work as a boot keyboard.
Less of a concern on as system not used for development I guess.

It would be nice if there was an easy way to make the os RUN IN 'KIOSK' mode for such things as dedicated controllers.

Chris

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

More
6 years 9 months ago #156017 by tommylight

cmorley wrote: It would be nice if there was an easy way to make the os RUN IN 'KIOSK' mode for such things as dedicated controllers.

Chris

I did make Linuxcnc work in KIOSK mode when the Ubuntu 10.04 was in use, but it was to much trouble so never bothered with it again.
Some info here :
forums.linuxmint.com/viewtopic.php?t=219026
forums.linuxmint.com/viewtopic.php?t=234241
oneguyoneblog.com/2019/12/20/google-chro...-mode-on-linux-mint/
The following user(s) said Thank You: Mike_Eitel

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

More
6 years 8 months ago #156907 by cmorley

File Attachment:

File Name: haas_multi.ino.zip
File Size:1.35 KB


Here is the program I used for mapping the matrix - it prints to the serial port so you can see it in the monitor window.
it requires the modified version of the keypad library to use 32 bits rather then 16.
i didn't get a chance to clean it up - when i do I'll reupload it.

Chris

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

Time to create page: 0.091 seconds
Powered by Kunena Forum