Skip to content

rebase#5

Open
ToSa27 wants to merge 462 commits intoToSa27:pn-historianfrom
rtlabs-com:master
Open

rebase#5
ToSa27 wants to merge 462 commits intoToSa27:pn-historianfrom
rtlabs-com:master

Conversation

@ToSa27
Copy link
Owner

@ToSa27 ToSa27 commented Aug 23, 2021

attempt to rebase...

olbjo and others added 30 commits December 11, 2020 11:08
Stores the following TLVs from incoming LLDP
packet:
* Port Description
* Management Address

Getter functions now report error if requested
variable was not found in received LLDP packet,
even if an LLDP packet has been received.

Unit tests were added for LLDP.
The timers for clearing allowed MAC address, for flashing LED and
for sending a delayed response should be independent of eachother.
This increases the max size of port description
strings from 16 to 60 by default. The default
value of 60 is arbitrary, but hopefully large
enough to contain any received string.
A mutex is created as to allow thread safe
access to I&M1.IM_Tag_Location.

Unit tests were added.
Stack size for SNMP thread was increased for
rt-kernel port due to increased stack utilisation.
Improve logging for pdport file reading
Document which string length constants that include a terminator.
Remove redundant string manufacturer_specific_string from structs.
Renamed OS_BUF_MAX_SIZE to PNAL_BUF_MAX_SIZE
Improve sampleapp handling of LEDs and buttons
Three fields were removed from the configuration
struct pnet_lldp_port_cfg_t related to the current
link status of an Ethernet port.

A new pnal function is introduced to retrieve
this information from the Ethernet driver.
The new functions are only stubs at the moment.
The previous version referred to a version of osal that in turn
referred to a submodule commit that does not exist.
This is requested by users that use p-net for testing of
IO-controller applications.

Add configuration flag for default diagnosis mechanism
Also improve argument validation to diagnosis functions.
Fixes a bug where the LED state from one module (in a slot) was
overwritten by data in next module/slot.
- Prepare configuration for multiple ports
- Remove interface name parameter from pnet_init_only()
- Add description on how how to configure a bridge for multi-port
  configuration in linux.
- Parameter moved to general configuration pnet_cfg_t
olbjo and others added 29 commits January 13, 2023 10:36
- Introduces a a separate write action list for
  internal transfers QSPI -> SRAM
Fixes problem with receiving several DCP identity requests
in fast succession. Without this fix allocated responses
in some situations were not freed.

fixes #500
pnal_get_hostname for rt-kernel and STM32Cube could dereference a NULL
pointer if lwip had not been configured with a hostname. Check before
using hostname and return error if no hostname has been set.

Fix #475
Correct spelling errors

Update tutorial organisation

Build the documentation via Cmake

Contibutions by Fredik Karlberg and Jonas Berg
Fixes a session leak found during Security Level 1 testing.
Having support for shared device is at its core the same as having
support for more than one AR. This commit adds such support.

The main changes are:
- Added handling more than one concurrent AR.
- Better separation of real and expected identifications.
- Added submodule ownership handling.
- Change the PNET_MAX_AR configuration setting to be the actual number
  of application relations.

Change-Id: Ie8792cf66317a834391430a7a785e5702f69fe22
The IOCRBlockReq PDUs need to be checked against the resources
available. This change adds such checks and error responses when
the checks fail.
The RPC specification says that there is a maximum size of a PDU that
can be sent between client and server without further negotiation.
This change adds a check of the size of a received PDU and a Reject
response when the check fails.
This commit fixes #548. The xemacps descriptor queues are becoming
corrupt, due to both lwip and p-net using the same driver but p-net
does not check if the driver is busy. To resolve the issue, the LWIP
core needs to be locked before it is called by p-net.
Fixes build issues on rt-kernel target.
For outgoing fragmented RPC messages, the header size was accounted for
an extra time for each fragment except the first one. This change
corrects that.
Change an error message to be slightly more helpful.
When restarting the sample service the script for
exporting output gpios exited with errors and
the service was never started.
This is fixed by only exporting gpios if they are
not already exported.
Extend recommended  delay from start of snmpd to start of
pn_dev application.
This fixes an issue seen while running the ART Topology test
where SNMP requests failed because the pn_dev snmpd
integration had not been started.
With the latest kernel, the syntax for adding/removing vcap entries
has been changed. Therefore update also the scripts to use new syntax.
While at this update also the documentation.
Signed-off-by: Elena Popa <elena.popa@nxp.com>
Signed-off-by: Elena Popa <elena.popa@nxp.com>
This should match the order number in
the sample application.
Signed-off-by: Elena Popa <elena.popa@nxp.com>
Since p-net may be compiled without asserts
(e.g. release builds for STM32Cube), it could be
the case that expressions with side effects were
not evaluated; this would cause incorrect behaviour.

While the rt-kernel port does not use CC_ASSERT,
it has also been changed in the same manner for
consistency.
Automated RT-Tester: DCP_ResetToFactory (v2.44)
When performing a Reset Communication Parameter factory reset,
the IP suite is zeroed. However, this was only done to p-net's
non-volatile storage. Thus, p-net would respond to ARP requests destined
to the old IP address until the IP address is changed or after a reset.

This commit also resets the network interface.
6930de2 added an additional call to pnal_set_ip_suite.
@elupus elupus deleted the master branch May 19, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.