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
f4a6b530
Commit
f4a6b530
authored
Apr 23, 2015
by
Pavel Vaynerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Увеличил лимити для UDPPacket: для аналоговых 800 для дискретных 5000
parent
465feb0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
libuniset2.spec
conf/libuniset2.spec
+4
-1
UDPPacket.h
extensions/UNetUDP/UDPPacket.h
+5
-2
uniset2-smemory
extensions/UNetUDP/tests/uniset2-smemory
+2
-2
No files found.
conf/libuniset2.spec
View file @
f4a6b530
...
...
@@ -12,7 +12,7 @@
Name: libuniset2
Version: 2.0
Release: alt28
Release: alt28
.1
Summary: UniSet - library for building distributed industrial control systems
...
...
@@ -409,6 +409,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# ..
%changelog
* Thu Apr 23 2015 Pavel Vainerman <pv@etersoft.ru> 2.0-alt28.1
- unet-udp: special build... change maximum for digital and analog data. Set A=800, D=5000.
* Mon Apr 20 2015 Pavel Vainerman <pv@altlinux.ru> 2.0-alt28
- optimization: use std::unordered_map instead of std::map
...
...
extensions/UNetUDP/UDPPacket.h
View file @
f4a6b530
...
...
@@ -49,9 +49,12 @@ namespace UniSetUDP
}
__attribute__
((
packed
));
// Хотелось бы не вылезать за общий размер посылаемых пакетов 8192. (550,900 --> 8133)
// ------
// временное резрешение на A=800,D=5000! DI/DO
// 800*8 + 5000*4 + 5000/8 = 27025 байт максимальный размер данных + служебные заголовки
static
const
size_t
MaxACount
=
55
0
;
static
const
size_t
MaxDCount
=
9
00
;
static
const
size_t
MaxACount
=
80
0
;
static
const
size_t
MaxDCount
=
50
00
;
static
const
size_t
MaxDDataCount
=
1
+
MaxDCount
/
8
*
sizeof
(
unsigned
char
);
struct
UDPPacket
...
...
extensions/UNetUDP/tests/uniset2-smemory
View file @
f4a6b530
/home/pv/Projects.com/uniset-2.0/extensions/SharedMemory/uniset2-smemory
\ No newline at end of file
../../SharedMemory/uniset2-smemory
\ No newline at end of file
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