Feature/fw 812 add 7 bits word length to uart#345
Open
egorpanchenko-cloud wants to merge 13 commits intodev/v6.8from
Open
Feature/fw 812 add 7 bits word length to uart#345egorpanchenko-cloud wants to merge 13 commits intodev/v6.8from
egorpanchenko-cloud wants to merge 13 commits intodev/v6.8from
Conversation
pgasheev
requested changes
Feb 17, 2026
drivers/tty/serial/wbec-uart.c
Outdated
Contributor
There was a problem hiding this comment.
Аналогично - сделать 8 бит значение 0 по дефолту
| ctrl_regs.ctrl.stop_bits = 0; /* 1 */ | ||
|
|
||
| /* Data width (character size) */ | ||
| switch (new->c_cflag & CSIZE) { |
Contributor
There was a problem hiding this comment.
Добавить коммент, с какой версии wbec поддерживается
sikmir
reviewed
Feb 17, 2026
Contributor
|
только перед вливанием надо оставить 2 коммита. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что происходит; кому и зачем нужно:
Необходимо научить 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