Commit f4a6b530 authored by Pavel Vaynerman's avatar Pavel Vaynerman

Увеличил лимити для UDPPacket: для аналоговых 800 для дискретных 5000

parent 465feb0f
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
Name: libuniset2 Name: libuniset2
Version: 2.0 Version: 2.0
Release: alt28 Release: alt28.1
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
...@@ -409,6 +409,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname ...@@ -409,6 +409,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# .. # ..
%changelog %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 * Mon Apr 20 2015 Pavel Vainerman <pv@altlinux.ru> 2.0-alt28
- optimization: use std::unordered_map instead of std::map - optimization: use std::unordered_map instead of std::map
......
...@@ -49,9 +49,12 @@ namespace UniSetUDP ...@@ -49,9 +49,12 @@ namespace UniSetUDP
}__attribute__((packed)); }__attribute__((packed));
// Хотелось бы не вылезать за общий размер посылаемых пакетов 8192. (550,900 --> 8133) // Хотелось бы не вылезать за общий размер посылаемых пакетов 8192. (550,900 --> 8133)
// ------
// временное резрешение на A=800,D=5000! DI/DO
// 800*8 + 5000*4 + 5000/8 = 27025 байт максимальный размер данных + служебные заголовки
static const size_t MaxACount = 550; static const size_t MaxACount = 800;
static const size_t MaxDCount = 900; static const size_t MaxDCount = 5000;
static const size_t MaxDDataCount = 1 + MaxDCount / 8*sizeof(unsigned char); static const size_t MaxDDataCount = 1 + MaxDCount / 8*sizeof(unsigned char);
struct UDPPacket struct UDPPacket
......
/home/pv/Projects.com/uniset-2.0/extensions/SharedMemory/uniset2-smemory ../../SharedMemory/uniset2-smemory
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment