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
1af5ce05
Commit
1af5ce05
authored
Apr 23, 2015
by
Pavel Vaynerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Очередная корректировка лимитов в UDPPacket
parent
f4a6b530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
libuniset2.spec
conf/libuniset2.spec
+4
-1
UDPPacket.h
extensions/UNetUDP/UDPPacket.h
+2
-2
No files found.
conf/libuniset2.spec
View file @
1af5ce05
...
...
@@ -12,7 +12,7 @@
Name: libuniset2
Version: 2.0
Release: alt28.
1
Release: alt28.
2
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.2
- unet-udp: special build... change maximum for digital and analog data. Set A=1500, D=5000.
* 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.
...
...
extensions/UNetUDP/UDPPacket.h
View file @
1af5ce05
...
...
@@ -51,9 +51,9 @@ namespace UniSetUDP
// Хотелось бы не вылезать за общий размер посылаемых пакетов 8192. (550,900 --> 8133)
// ------
// временное резрешение на A=800,D=5000! DI/DO
//
800*8 + 5000*4 + 5000/8 = 270
25 байт максимальный размер данных + служебные заголовки
//
1500*8 + 5000*4 + 5000/8 = 326
25 байт максимальный размер данных + служебные заголовки
static
const
size_t
MaxACount
=
8
00
;
static
const
size_t
MaxACount
=
15
00
;
static
const
size_t
MaxDCount
=
5000
;
static
const
size_t
MaxDDataCount
=
1
+
MaxDCount
/
8
*
sizeof
(
unsigned
char
);
...
...
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