Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
fb597d63
Commit
fb597d63
authored
Aug 29, 2012
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(UDPNet): увеличил разрешённое количество датчиков передаваемых по сети
(600 аналоговых и 600 дискретных). И сделал "вылет" процесса, если количество оказывается больше..
parent
f20d00e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
libuniset.spec
conf/libuniset.spec
+4
-1
UDPPacket.h
extensions/UNetUDP/UDPPacket.h
+2
-2
UNetSender.cc
extensions/UNetUDP/UNetSender.cc
+3
-0
No files found.
conf/libuniset.spec
View file @
fb597d63
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
Name: libuniset
Name: libuniset
Version: 1.4
Version: 1.4
Release: alt
9
Release: alt
10
Summary: UniSet - library for building distributed industrial control systems
Summary: UniSet - library for building distributed industrial control systems
License: GPL
License: GPL
Group: Development/C++
Group: Development/C++
...
@@ -211,6 +211,9 @@ rm -f %buildroot%_libdir/*.la
...
@@ -211,6 +211,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
%changelog
* Wed Aug 29 2012 Pavel Vainerman <pv@altlinux.ru> 1.4-alt10
- (UDPNet): increase the resolution of the sensors over the network (600 analog, 600 digital)
* Mon Aug 20 2012 Pavel Vainerman <pv@altlinux.ru> 1.4-alt9
* Mon Aug 20 2012 Pavel Vainerman <pv@altlinux.ru> 1.4-alt9
- fixed bug in previous commit (bug in UniXML::iterator::find)
- fixed bug in previous commit (bug in UniXML::iterator::find)
...
...
extensions/UNetUDP/UDPPacket.h
View file @
fb597d63
...
@@ -41,8 +41,8 @@ namespace UniSetUDP
...
@@ -41,8 +41,8 @@ namespace UniSetUDP
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
UDPAData
&
p
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
UDPAData
&
p
);
}
__attribute__
((
packed
));
}
__attribute__
((
packed
));
static
const
size_t
MaxACount
=
2
00
;
static
const
size_t
MaxACount
=
6
00
;
static
const
size_t
MaxDCount
=
4
00
;
static
const
size_t
MaxDCount
=
6
00
;
static
const
size_t
MaxDDataCount
=
MaxDCount
/
sizeof
(
unsigned
char
);
static
const
size_t
MaxDDataCount
=
MaxDCount
/
sizeof
(
unsigned
char
);
struct
UDPPacket
struct
UDPPacket
...
...
extensions/UNetUDP/UNetSender.cc
View file @
fb597d63
...
@@ -292,6 +292,8 @@ bool UNetSender::initItem( UniXML_iterator& it )
...
@@ -292,6 +292,8 @@ bool UNetSender::initItem( UniXML_iterator& it )
dlog
[
Debug
::
CRIT
]
<<
myname
dlog
[
Debug
::
CRIT
]
<<
myname
<<
"(readItem): OVERFLOW! MAX UDP DIGITAL DATA LIMIT! max="
<<
"(readItem): OVERFLOW! MAX UDP DIGITAL DATA LIMIT! max="
<<
UniSetUDP
::
MaxDCount
<<
endl
;
<<
UniSetUDP
::
MaxDCount
<<
endl
;
raise
(
SIGTERM
);
return
false
;
return
false
;
}
}
}
}
...
@@ -303,6 +305,7 @@ bool UNetSender::initItem( UniXML_iterator& it )
...
@@ -303,6 +305,7 @@ bool UNetSender::initItem( UniXML_iterator& it )
dlog
[
Debug
::
CRIT
]
<<
myname
dlog
[
Debug
::
CRIT
]
<<
myname
<<
"(readItem): OVERFLOW! MAX UDP ANALOG DATA LIMIT! max="
<<
"(readItem): OVERFLOW! MAX UDP ANALOG DATA LIMIT! max="
<<
UniSetUDP
::
MaxACount
<<
endl
;
<<
UniSetUDP
::
MaxACount
<<
endl
;
raise
(
SIGTERM
);
return
false
;
return
false
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment