Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IEC61107 Mode C protocol #775

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Conversation

KraPete
Copy link
Contributor

@KraPete KraPete commented Jul 5, 2024

  • Add IEC61107 Mode C protocol
  • Add LUNA three-phase electricity meter template

  * Add IEC61107 Mode C protocol
  * Add LUNA three-phase electricity meter template
@KraPete KraPete requested a review from a team July 5, 2024 05:09
@KraPete KraPete requested review from a team and sikmir as code owners July 5, 2024 05:09

void TIecModeCDevice::PrepareImpl()
{
Port()->SleepSinceLastInteraction(std::chrono::milliseconds(200));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

200мс это из стандарта?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На самом деле это не описано. Есть минимальное время, через которое счётчик должен отвечать при установке сессии, это надо чтобы переключать настройки порта и т.п. Оно может быть 200мс или 20 мс. Но конкретно для энергомеры ce102 я экспериментально нашёл, что надо минимум 100 мс тишины перед запросом на открытие сессии. Поэтому добавил не 100мс, а 200, как по стандарту для ответа счётчика

@KraPete KraPete merged commit 349a803 into master Jul 16, 2024
11 checks passed
@KraPete KraPete deleted the feature/SOFT-3832-energy-meter branch July 16, 2024 05:45
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.

None yet

2 participants