HI,
Are you planing to add write operation to your teplate?
I found some extension for you.
LBP_PDD_DATA_TYPE_STREAM = 0x06,
LBP_PDD_DATA_TYPE_BOOLEAN = 0x07,
new
LBP_PDD_DATA_TYPE_ENCODER 0x08
LBP_PDD_DATA_TYPE_FLOAT 0x10 // New for STMBL
LBP_PDD_DATA_TYPE_ENCODER_H 0x18
LBP_PDD_DATA_TYPE_ENCODER_L 0x28
I try change NonVolatile variables on my card by this sequence
halrun
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121"
loadrt setsserial cmd="set hm2_eth.xxx.xxx.xx.cust.0.NVBaudRate 5"
this command call write function 0x65 and
LBP_COMMAND_LOCAL_WRITE_NVMEM_FLAG = 0xEC, // 0x01 nvacces 0x00normal acces
I add to your code and now it is functional.
I have 7i92 and 7i76E and try get some information from sserial card connect to it.
mesaflash --card 7i92 --sserial --verbose
This command tels you all about card, address, name, param a mem locatin etc.
but at the and of report mesaflash want to know what is on addres 0x00 and 0x01. I dont know why.
This request scan all memory on card. I send back 0x00 and 0x00 and report finished without scan all memory.
If you want I can send you my experimental code extended for write, answer for LBP_COMMAND_LOCAL_WRITE_NVMEM_FLAG, add param address 0x4000, etc. for stm32f103
I made some more changes, for example select gtoc (list of variables) based on sw mode and hw mode. etc
And finaly I have ones more question.
Are you planning controll process sserial throught interrupts? I think it is better than in loop.
I am planning make code for panel (led, keys, encoder for spindle speed etc), this code consumes many time and the program may not be fast enough in loop.
My first experiment was on keil studio and there is no problem make it with interrupts.
thanks
Martin (fupe on linuxcnc)
HI,
Are you planing to add write operation to your teplate?
I found some extension for you.
LBP_PDD_DATA_TYPE_STREAM = 0x06,
LBP_PDD_DATA_TYPE_BOOLEAN = 0x07,
new
LBP_PDD_DATA_TYPE_ENCODER 0x08
LBP_PDD_DATA_TYPE_FLOAT 0x10 // New for STMBL
LBP_PDD_DATA_TYPE_ENCODER_H 0x18
LBP_PDD_DATA_TYPE_ENCODER_L 0x28
I try change NonVolatile variables on my card by this sequence
halrun
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121"
loadrt setsserial cmd="set hm2_eth.xxx.xxx.xx.cust.0.NVBaudRate 5"
this command call write function 0x65 and
LBP_COMMAND_LOCAL_WRITE_NVMEM_FLAG = 0xEC, // 0x01 nvacces 0x00normal acces
I add to your code and now it is functional.
I have 7i92 and 7i76E and try get some information from sserial card connect to it.
mesaflash --card 7i92 --sserial --verbose
This command tels you all about card, address, name, param a mem locatin etc.
but at the and of report mesaflash want to know what is on addres 0x00 and 0x01. I dont know why.
This request scan all memory on card. I send back 0x00 and 0x00 and report finished without scan all memory.
If you want I can send you my experimental code extended for write, answer for LBP_COMMAND_LOCAL_WRITE_NVMEM_FLAG, add param address 0x4000, etc. for stm32f103
I made some more changes, for example select gtoc (list of variables) based on sw mode and hw mode. etc
And finaly I have ones more question.
Are you planning controll process sserial throught interrupts? I think it is better than in loop.
I am planning make code for panel (led, keys, encoder for spindle speed etc), this code consumes many time and the program may not be fast enough in loop.
My first experiment was on keil studio and there is no problem make it with interrupts.
thanks
Martin (fupe on linuxcnc)