[LinuxCNC/linuxcnc PR#630] Adds PORT pin type to hal.

未分类 bolang 5个月前 (10-15) 31次浏览

Issue #630 | 状态: 已关闭 | 作者: curtdutt | 创建时间: 2019-08-08


A HAL port pin is a hal pin that acts as a real time one way byte oriented data stream An output port on any component may be connected to an input port on any other component via a signal. Data written on the output pin becomes accessible to the input pin. A HAL port signal may link only a single writer and a single reader. A port buffers data with a user definable buffer size.

Includes:
Documentation on how to use a port object.
a ctypes wrapper for the hal api (pyhal.py)
a test to exersice hal port code along with pyhal.py
changes to allow halcmd to understand and manipulate ports.


评论 (9)

#1 – andypugh 于 2019-08-08

OK, let’s see how this goes.
It seems like a nice for the Mesa “stream” data type and the 7i73 LCD amongst other things.


#2 – curtdutt 于 2019-08-08

Great thank you Andy,

and thanks to everyone else for their support and help over the last year.

I’ll get the laser code pull request set up next.

On Thu, Aug 8, 2019 at 4:56 PM andypugh wrote:

> Merged #630 <https://github.com/LinuxCNC/linuxcnc/pull/630> into master.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/LinuxCNC/linuxcnc/pull/630?emailsource=notifications&emailtoken=AACTC454YTKVXSQMCCJ4PELQDSB7HA5CNFSM4IKNFJN2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOS6WJDGY#event-2544669083>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AACTC46TF24PCJ5SXFNZZZ3QDSB7HANCNFSM4IKNFJNQ>
> .
>


#3 – andypugh 于 2019-08-08

Buildbot isn’t happy:
http://buildbot.linuxcnc.org/buildbot/builders/1301.rip-precise-rtai-i386/builds/5266
(click on stdio to see the compile error)


#4 – curtdutt 于 2019-08-09

ok ill get it fixed first thing tomorrow.

why didnt,this show up in travis? is there a way i can reproduce this on
one of my machines?

On Thu, Aug 8, 2019, 5:13 PM andypugh wrote:

> Buildbot isn’t happy:
>
> http://buildbot.linuxcnc.org/buildbot/builders/1301.rip-precise-rtai-i386/builds/5266
> (click on stdio to see the compile error)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/LinuxCNC/linuxcnc/pull/630?emailsource=notifications&emailtoken=AACTC4YG37SAYCCTPRUVWVDQDSD55A5CNFSM4IKNFJN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD345KEA#issuecomment-519689488>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AACTC4ZVHUNX52YTG3PXSDLQDSD55ANCNFSM4IKNFJNQ>
> .
>


#5 – curtdutt 于 2019-08-09

Ok pull request for the fix created.

On Thu, Aug 8, 2019 at 8:13 PM Curtis Dutton wrote:

> ok ill get it fixed first thing tomorrow.
>
> why didnt,this show up in travis? is there a way i can reproduce this on
> one of my machines?
>
> On Thu, Aug 8, 2019, 5:13 PM andypugh wrote:
>
>> Buildbot isn’t happy:
>>
>> http://buildbot.linuxcnc.org/buildbot/builders/1301.rip-precise-rtai-i386/builds/5266
>> (click on stdio to see the compile error)
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/LinuxCNC/linuxcnc/pull/630?emailsource=notifications&emailtoken=AACTC4YG37SAYCCTPRUVWVDQDSD55A5CNFSM4IKNFJN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD345KEA#issuecomment-519689488>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AACTC4ZVHUNX52YTG3PXSDLQDSD55ANCNFSM4IKNFJNQ>
>> .
>>
>


#6 – andypugh 于 2019-08-09

> ok ill get it fixed first thing tomorrow. why didnt,this show up in travis?

Looking at the buildbot waterfall plot: http://buildbot.linuxcnc.org/buildbot/waterfall it looks like only the RTAI builds failed. It is possible (likely, even) that the Travis builds don’t run on an RTAI kernel.


#7 – andypugh 于 2020-04-23

Minor thing, but builds are showing a warning:
http://buildbot.linuxcnc.org/buildbot/builders/1402.rip-wheezy-rtpreempt-i386/builds/4368/steps/compile/logs/warnings%20%285%29

(And they are not wrong)


#8 – andypugh 于 2021-03-10

Literally seconds of looking have not turnedup the sample code pull request. Did you create it?


#9 – curtdutt 于 2021-03-13

I will do my best to get the pull request together ASAP. Stay tuned.


原始Issue: https://github.com/LinuxCNC/linuxcnc/pull/630

喜欢 (0)