Skip to content

Feature/fw 812 add 7 bits word length to uart#345

Open
egorpanchenko-cloud wants to merge 13 commits intodev/v6.8from
feature/FW-812_add_7_bits_word_length_to_uart
Open

Feature/fw 812 add 7 bits word length to uart#345
egorpanchenko-cloud wants to merge 13 commits intodev/v6.8from
feature/FW-812_add_7_bits_word_length_to_uart

Conversation

@egorpanchenko-cloud
Copy link

@egorpanchenko-cloud egorpanchenko-cloud commented Feb 17, 2026


Что происходит; кому и зачем нужно:
Необходимо научить wbec и его драйвер на linux работе uart в режиме 7e1.
Связанный PR в wb-embedded-controller


Что поменялось для пользователей:
Появится возможность подключения через MOD1 и MOD2 на WB8.5 к счётчикам компании "Энергомера", которые требуют работы в режиме 7e1, это изначальная цель тикета. Но так же появляется возможность подключаться через MOD1 и MOD2 и к другим устройствам, которые требуют форматы 7n, 7e, 7o. Раньше через эти порты можно было общаться только в режимах 8n, 8e, 8o.


Как проверял/а:
Вначале на столе разработчика, замкнув в петлю MOD1 на MOD2. Потом на стенде со счётчиками:
https://wirenboard.cloud/organizations/ebd1a3f3-5870-4572-8072-8261d94b334c/controllers/AOFJTE5
В 7-битном режиме общаются счётчики CE102M и CE301.
Так же проверил что не ломается совместимость с нашими модулями на стенде с парой WB M1W2 v.3 по одному на MOD1 и MOD2.:
https://wirenboard.cloud/organizations/ebd1a3f3-5870-4572-8072-8261d94b334c/controllers/AI34KN7B

Copy link
Contributor

Choose a reason for hiding this comment

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

Что-то лишнее

Copy link
Contributor

Choose a reason for hiding this comment

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

Аналогично - сделать 8 бит значение 0 по дефолту

Choose a reason for hiding this comment

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

Сделал.

ctrl_regs.ctrl.stop_bits = 0; /* 1 */

/* Data width (character size) */
switch (new->c_cflag & CSIZE) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Добавить коммент, с какой версии wbec поддерживается

Choose a reason for hiding this comment

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

Сделал.

@sikmir
Copy link
Contributor

sikmir commented Feb 18, 2026

только перед вливанием надо оставить 2 коммита.

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.

3 participants

Comments