[Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-07 Thread Thắng Lê
Hi EMC developers, can i ask for a way to write a new firmware to get yaskawa absolute encoder. My knowedge is limit so i cant find the way by myself therefore i need a little bit help. The yaskawa abs_encoder is a serial abs_encoder but it's using quadrature. >From the the yaskawa document belo

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-07 Thread andy pugh
On 7 March 2018 at 10:57, Thắng Lê wrote: > can i ask for a way to write a new firmware to get yaskawa absolute encoder. ... > So first of all, i need a way to confirm the data i send is true. i assume > i can use combo 5i25-->7i74--> converter rs-485 to rs-232 ( or usb) --> pc > to debug in term

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-08 Thread Thắng Lê
Thank Andy, that is a big help! So all the things i need to do are: + Writing a firmware file absyaskawa.vhd with VHDL language then add in xilinx library so i can flash new firmware for my mesa card (i'm very new with FPGA,i need to learn VHDL first). + Modifying the abs_encoder.c file to add

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-08 Thread andy pugh
On 8 March 2018 at 09:39, Thắng Lê wrote: > + Writing a firmware file absyaskawa.vhd with VHDL language then add in > xilinx library so i can flash new firmware for my mesa card (i'm very new > with FPGA,i need to learn VHDL first). > + Modifying the abs_encoder.c file to add new HAL pin for y

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-08 Thread andy pugh
On 8 March 2018 at 09:39, Thắng Lê wrote: > + Writing a firmware file absyaskawa.vhd with VHDL language then add in > xilinx library so i can flash new firmware for my mesa card (i'm very new > with FPGA,i need to learn VHDL first). You might not need to do this. It looks like the absolute dat

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
sorry, my abs_encoder is 15 bit type, showing at page 56 (63 is pdf page), it hasn't phase S. The problem is phase A has 2 functions, send serial data and incremental pulses so i think i will connect it to 1 UART port and 1 encoder counter port, after receive serial data, i will reset counter. See

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
i'm stucked at uarts because i dont really understand how UART work , i see there are many files like mesa_uart.c, mesa_uart.comp, uart.c, pktuart.c, I guess uart.c and pktuart.c contains uart's functions and mesa_uart.comp or mesa_pktgyro_test.comp will use these functions so i just need creat a c

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
When i try run mesa_uart or mesa_pktgyro_test in halcmd, terminal shows me "*undefined symbol: hm2_uart_read" or " undefind symbol: hm2_pktuart_send" *. Any idea why do this happen? 2018-03-10 11:55 GMT+07:00 Thắng Lê : > i'm stucked at uarts because i dont really understand how UART work , i > s

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
in my 2.8 pre linuxcnc, i also changed the path in mesa_uart.comp to compile it 2018-03-10 14:45 GMT+07:00 Thắng Lê : > When i try run mesa_uart or mesa_pktgyro_test in halcmd, terminal shows me > "*undefined symbol: hm2_uart_read" or " undefind symbol: > hm2_pktuart_send" *. Any idea why do this

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-10 Thread Rene Hopf
> On 10. Mar 2018, at 08:45, Thắng Lê wrote: > > When i try run mesa_uart or mesa_pktgyro_test in halcmd, terminal > shows me "*undefined > symbol: hm2_uart_read" or " undefind symbol: hm2_pktuart_send" *. Any idea > why do this happen? hm2_pktuart_send is provided by https://github.com/LinuxC

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-10 Thread andy pugh
On 10 March 2018 at 09:25, Rene Hopf wrote: > hm2_pktuart_send is provided by > https://github.com/LinuxCNC/linuxcnc/blob/af15a4d90e1d51d5309db65fe1c9511e486df411/src/hal/drivers/mesa-hostmot2/pktuart.c > you need to load that before you load the others. Specifically something like this at the

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-13 Thread Thắng Lê
unfortunately, channel A use serial interface with ASCII 7bits, i guess i cant use mesa_uart without modify uart.c. Does pktuart allow me to change frames? I was looking at hm2_pktuart_setup function, there is an option "Bit 20..16 Frames received", is this what i need? 2018-03-10 17:40 GMT+07:00

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread andy pugh
On 14 March 2018 at 04:38, Thắng Lê wrote: > unfortunately, channel A use serial interface with ASCII 7bits, i guess i > cant use mesa_uart without modify uart.c. Does pktuart allow me to change > frames? I was looking at hm2_pktuart_setup function, there is an option > "Bit 20..16 Frames receive

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread andy pugh
On 14 March 2018 at 16:43, andy pugh wrote: > Looking at the VHDL files both UART and pktUART have a 4-bit field for > bit-count, so that rather suggests that there should be a way to set > the number of bits to a value other than 7. Maybe not: https://github.com/LinuxCNC/hostmot2-firmware/blob

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread Peter C. Wallace
On Wed, 14 Mar 2018, andy pugh wrote: Date: Wed, 14 Mar 2018 16:43:39 + From: andy pugh Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder On 14 March 2018 at 04:38, Th??ng L?? wrote: unfortunately

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread Rene Hopf
> On 14. Mar 2018, at 17:54, Peter C. Wallace wrote: > > Typically there would be no issue sending and receiving 7 bit characters with > the PacketUART (just mask bit 7 on RX and set it to the line idle (high) > state on TX ) thats not how uart works, if there is a stop bit, and usually there

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread Peter C. Wallace
On Wed, 14 Mar 2018, Rene Hopf wrote: Date: Wed, 14 Mar 2018 22:53:59 +0100 From: Rene Hopf Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder On 14. Mar 2018, at 17:54, Peter C. Wallace wrote: Typically

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Thắng Lê
Mar 2018, Rene Hopf wrote: > > Date: Wed, 14 Mar 2018 22:53:59 +0100 >> From: Rene Hopf >> Reply-To: EMC developers >> To: EMC developers >> Subject: Re: [Emc-developers] writing new firmware to read yaskawa >> absolute >> encoder >> >&

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread andy pugh
On 16 March 2018 at 08:52, Thắng Lê wrote: > The data frame is: 1 bit start + character 7 bits + 1 bit even parity + 1 > bit stop. I dont need creat this Frame for TX, if there is anyway that i > can configure this Frame for RX without touching uart firmware and > component source? It sounds li

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Thắng Lê
this is a great idea but how can i right-shift the data? Both your way and Peter's way seem have to touch UART source. I dont mind to modify it but if need to change firmware is a bit problem with me 2018-03-16 17:53 GMT+07:00 andy pugh : > On 16 March 2018 at 08:52, Thắng Lê wrote: > > The dat

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread andy pugh
On 16 March 2018 at 16:27, Thắng Lê wrote: > this is a great idea but how can i right-shift the data? Both your way and > Peter's way seem have to touch UART source No, you can shift the raw data in the HAL component that interprets the data. -- atp "A motorcycle is a bicycle with a pandemoniu

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Peter C. Wallace
On Fri, 16 Mar 2018, Th?ng L? wrote: Date: Fri, 16 Mar 2018 23:27:57 +0700 From: "[UTF-8] Th?ng L?" Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder this is a great idea but how can i right-shif

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Thắng Lê
ah, i understood what you mean. thank you very much 2018-03-16 23:30 GMT+07:00 andy pugh : > On 16 March 2018 at 16:27, Thắng Lê wrote: > > this is a great idea but how can i right-shift the data? Both your way > and > > Peter's way seem have to touch UART source > > No, you can shift the raw d

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Peter C. Wallace
On Fri, 16 Mar 2018, Th?ng L? wrote: Date: Fri, 16 Mar 2018 23:43:49 +0700 From: "[UTF-8] Th?ng L?" Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder ah, i understood what you mean. thank you very m

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-21 Thread Thắng Lê
t;> Subject: Re: [Emc-developers] writing new firmware to read yaskawa >> absolute >> encoder >> >> ah, i understood what you mean. thank you very much >> > > 2018-03-16 23:30 GMT+07:00 andy pugh : > > On 16 March 2018 at 16:27, Thяяng Lяя wrote: >&

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-21 Thread Peter C. Wallace
On Wed, 21 Mar 2018, Th?ng L? wrote: Date: Wed, 21 Mar 2018 15:20:12 +0700 From: "[UTF-8] Th?ng L?" Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder i'm using mesa_uart to read serial data but

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-21 Thread Thắng Lê
t; From: "[UTF-8] Th?ng L?" >> Reply-To: EMC developers >> To: EMC developers >> Subject: Re: [Emc-developers] writing new firmware to read yaskawa >> absolute >> encoder >> >> i'm using mesa_uart to read serial data but i have a issue. Some

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-22 Thread Thắng Lê
data will become invalid >> >> (you would also expect to see the framing error bit set in this >> circumstance) >> >> >> >> 2018-03-16 23:52 GMT+07:00 Peter C. Wallace : >> >> On Fri, 16 Mar 2018, Th?ng L? wrote: >>> >>> Date: Fri, 16 Mar

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Thắng Lê
> FIFO or disable RX from these 7 bits. I guess u mention pktuart, right? >> >> >> >> 2018-03-22 0:28 GMT+07:00 Peter C. Wallace : >> >>> On Wed, 21 Mar 2018, Th?ng L? wrote: >>> >>> Date: Wed, 21 Mar 2018 15:20:12 +0700 >>>> From:

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Peter C. Wallace
On Fri, 23 Mar 2018, Th?ng L? wrote: Date: Fri, 23 Mar 2018 16:04:47 +0700 From: "[UTF-8] Th?ng L?" Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder i guess i cant contact UART on mesa 5i25 by linu

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Peter C. Wallace
On Fri, 23 Mar 2018, Peter C. Wallace wrote: Date: Fri, 23 Mar 2018 07:14:38 -0700 (PDT) From: Peter C. Wallace Reply-To: EMC developers To: EMC developers Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder On Fri, 23 Mar 2018, Th?ng L? wrote: Date

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Gene Heskett
>> I'm not very clearly understand when i read it,i dont see how to > >> clear FIFO or disable RX from these 7 bits. I guess u mention > >> pktuart, right? > >> > >> 2018-03-22 0:28 GMT+07:00 Peter C. Wallace : > >>> On Wed, 21 Mar 2018, Th?

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Thắng Lê
2018-03-23 21:14 GMT+07:00 Peter C. Wallace : > On Fri, 23 Mar 2018, Th?ng L? wrote: > > Date: Fri, 23 Mar 2018 16:04:47 +0700 >> From: "[UTF-8] Th?ng L?" >> Reply-To: EMC developers >> To: EMC developers >> Subject: Re: [Emc-developers] writi