Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support MIPS architecture (openwrt) #513

Open
SupermanOfHeiLinPu opened this issue Jul 27, 2022 · 10 comments
Open

support MIPS architecture (openwrt) #513

SupermanOfHeiLinPu opened this issue Jul 27, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@SupermanOfHeiLinPu
Copy link

the os is openwrt

@pyhys pyhys added the enhancement New feature or request label Aug 8, 2022
@rich1111
Copy link

rich1111 commented Sep 5, 2022

Hi, i've build for MT7620A MIPS architecture by using OpenWRT's toolchain (all building via Jetbrain CLion tool). It is sccessfully built and running, and can discovery/configuration via Profinet Test tool. But while testing with Codesys PLC system, the Profitnet IO reporting errors. The Profinet controller reporting:

2022-09-05T08:06:38.484Z: Cmp=Profinet Controller, Class=1, Error=33554432, Info=0, pszInfo= Station 'rt-labs-dev': Connecting...
2022-09-05T08:06:38.493Z: Cmp=Profinet Controller, Class=1, Error=33554432, Info=0, pszInfo= Station 'rt-labs-dev': Received Connect Confirmation
2022-09-05T08:06:38.528Z: Cmp=Profinet Controller, Class=4, Error=50331648, Info=0, pszInfo=**** Station 'rt-labs-dev': CF81FD0B - Aborted: AR alarm.ind(err)

And by Wireshark package with "pn_rt" filter, it has following PROFINET IO Alarm:

Frame 3941: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface \Device\NPF_{D787D171-8ED3-4E24-9CD6-786E2213AE34}, id 0
Ethernet II, Src: 1VergeIn_29:c2:00 (54:36:9b:29:c2:00), Dst: AsixElec_f5:4e:f9 (00:0e:c6:f5:4e:f9)
PROFINET acyclic Real-Time, Alarm Low, ID:0xfe01, Len: 40
FrameID: 0xfe01 (Real-Time: Acyclic PN-IO Alarm low priority)
PROFINET IO Alarm
AlarmDstEndpoint: 0x0001
AlarmSrcEndpoint: 0x0001
PDUType, Type: ERR-RTA-PDU, Version: 1
AddFlags, Window Size: 1, Tack: 0
SendSeqNum: 0xffff
AckSeqNum: 0xfffe
VarPartLen: 0x0004
Status: Error: "RTA error", "PNIO", "RTA_ERR_CLS_PROTOCOL", "PDEV, no port offers required speed/duplexity (RTA_ERROR_ABORT)"

Dose it means that the MT7620A is not capable for Profinet IO RT ?

@SupermanOfHeiLinPu
Copy link
Author

SupermanOfHeiLinPu commented Sep 13, 2022 via email

@SupermanOfHeiLinPu
Copy link
Author

SupermanOfHeiLinPu commented Sep 13, 2022 via email

@rich1111
Copy link

Hi Superman,
Thank you for your response.
I've test your feature/wrt branch, it work very well.
But how to test your device with your GSD file? I use rt-labs's PLC_PRG sample.
I would like to implement the IO device just like rt-labs's DIO sample, so I need to modify rt-labs's GSD file?

@rich1111
Copy link

Hi Superman,

Can you let rt-labs's DIO sample work on MT76xx ?

@SupermanOfHeiLinPu
Copy link
Author

SupermanOfHeiLinPu commented Sep 20, 2022 via email

@SupermanOfHeiLinPu
Copy link
Author

SupermanOfHeiLinPu commented Sep 20, 2022 via email

@rich1111
Copy link

Hi Supperman,
Thank you for your response. I've try your GSD, but it can not add DIO/DI/DO devices.

@SupermanOfHeiLinPu
Copy link
Author

SupermanOfHeiLinPu commented Oct 11, 2022 via email

@rich1111
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants