USB haas operator panel interface

More
5 years 8 months ago #199809 by cmorley
while using a micro between the VFD and the computer in the system I have would be a fix for the ability to reset the VFD, it doesn't address the other issues.

Also I want to experiment with the STM32 as a sserial device.

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

More
5 years 7 months ago - 5 years 7 months ago #201162 by fupeama
Hi Chris,
that means you only need one IO.
Its ok. I try github.com/fdarling/mesa-smartserial-device-template . it is usable on stm32. there are 32bit in and 32 bit out.
the only thing i didn't find was the writing parameters. but that is not necessary now.
M
Last edit: 5 years 7 months ago by andypugh.

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

More
5 years 7 months ago #201242 by andypugh
That looks very interesting.

Does it create pins in HAL like a real sserial node?

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

More
5 years 7 months ago #201245 by cmorley

fupeama wrote: Hi Chris,
that means you only need one IO.
Its ok. I try github.com/fdarling/mesa-smartserial-device-template . it is usable on stm32. there are 32bit in and 32 bit out.
the only thing i didn't find was the writing parameters. but that is not necessary now.
M


I started on that and needed to modify the code for strm32 - I didn't get it to work yet as I ran out of time for it.
Do you have code edits you could share?

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

More
5 years 7 months ago #201488 by fupeama

andypugh wrote: That looks very interesting.

Does it create pins in HAL like a real sserial node?


Yes, it creates HAL pins. SSerial card tels LINUXCNC which data will be send/receive and LCNC create pins.
You can define read/write, size for each type in bits (8 bits are 256 steps) and min max value (IEEE-754). maximal 96 bits in and 96 out.
for type encoder are creates some parameters like scale automaticaly.....
you can add special parameters yourself, this value is not transfered in data packet but by address when changed (now I canot remember how).
M

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

More
5 years 7 months ago #201489 by fupeama

cmorley wrote:
I started on that and needed to modify the code for strm32 - I didn't get it to work yet as I ran out of time for it.
Do you have code edits you could share?


Yes I can,
Tomorrow on work. I can make simpliest example. send 1 bit to sserial card stm32f103c8 bluepill and turn on/off led and 1 bit back with led status.
Now I am working on versatile template, where will be possible to do select types from predefined lines and program makes everything itself. calculete PTOC, create variables etc. Of course except for HW pin operation.
Martin

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

Time to create page: 0.312 seconds
Powered by Kunena Forum