Using pktuart with 7i80hd

More
03 Oct 2019 05:24 #146951 by andypugh
Replied by andypugh on topic Using pktuart with 7i80hd
You would typically write a handler component to access the pktuart.
An example is here (for UART, but the principle is the same)
github.com/LinuxCNC/linuxcnc/blob/master...ivers/mesa_uart.comp

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

More
03 Oct 2019 08:49 #146966 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
I'm starting to think part of my problem is the realtime environment. I'm working on uspace right now. I should choose this first. Which of the three should be?

You may have seen that mesa_uart was at first try. Setup is fine, but after start error occurred:
#halcmd: hm2_eth: ERROR: used llio-> read in realtime task (addr = 0x6600)
It works fine by others, but not to me.

I was oblivious to the pktuart trial, I did it mechanically (read the documentation syndrome :). Unfortunately, I'm under pressure now, but I want to do it later.

I need to move now: xmega - usb - python - hal.

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

More
03 Oct 2019 16:14 #146993 by andypugh
Replied by andypugh on topic Using pktuart with 7i80hd
You will probably just have to ignore that (printed once) error message.
It is more of a warning than an error.

pktuart access without an llio->read would be very difficult.

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

More
03 Oct 2019 16:21 - 03 Oct 2019 16:21 #146994 by PCW
Replied by PCW on topic Using pktuart with 7i80hd
I dont think the PktUART has that issue, its the standard UART that has problems with Ethernet (it should probably be re-written so that it gets along with Ethernets packetized read and writes rather than doing random I/O, or just drop it and use the PktUART)

I tested with the mesa_pkt_gyro comp and it does not have any complaints when
run with Ethernet cards (well other that the fact that I complains about no data since I don't have gyro connected)
Last edit: 03 Oct 2019 16:21 by PCW.

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

More
03 Oct 2019 18:58 #147010 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
Yes, there might be something about the ethernet handler. I attached the relevant part of the log.
One interesting thing is that there is no wired loop on the outputs, nevertheless the data arrives on rx.
The other is that it sends all 16 u32 data but after the first byte parser error and 3 bytes are lost.
Attachments:

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

More
04 Oct 2019 01:56 #147070 by andypugh
Replied by andypugh on topic Using pktuart with 7i80hd
Have you ever attached your HAL component?

Does the pkt_gyro test work?

linuxcnc.org/docs/2.8/html/man/man9/mesa_pktgyro_test.9.html

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

More
04 Oct 2019 03:28 #147086 by PCW
Replied by PCW on topic Using pktuart with 7i80hd
Yes it worked on a 7I96 Ethernet card (at least it loaded without serious complaint on a running LinuxCNC system)

It did complain that there was no data which is expected I guess

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

More
04 Oct 2019 04:24 #147090 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
No, this was the mesa_uart component.

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

More
04 Oct 2019 04:45 #147094 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
Let's wait a bit for the evaluation. I look at it on another machine because latency is very suspicious. AMD A6-7400K 6 core 3.5GHz and had to turn off the watchdog.
This machine was free to play. I attach the hal script.
Attachments:

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

More
04 Oct 2019 04:49 #147095 by andypugh
Replied by andypugh on topic Using pktuart with 7i80hd
Are you using the current, or the fixed, version of mesa_uart?

(and the header says "pktuart"?)

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

Moderators: PCWjmelson
Time to create page: 0.185 seconds
Powered by Kunena Forum