реклама на сайте
подробности

 
 
2 страниц V  < 1 2  
Reply to this topicStart new topic
> Какова максимальная пауза между 2-мя пакетами?
Andrew2000
сообщение Jul 14 2010, 19:00
Сообщение #16


Местный
***

Группа: Свой
Сообщений: 421
Регистрация: 25-12-04
Пользователь №: 1 675



Цитата(bookevg @ Jul 14 2010, 02:11) *

прежде чем писать - читайте стандарт, лежит тут
http://www.can-cia.de/index.php?id=441
Go to the top of the page
 
+Quote Post
bookevg
сообщение Jul 15 2010, 05:54
Сообщение #17


Местный
***

Группа: Свой
Сообщений: 320
Регистрация: 13-09-06
Пользователь №: 20 348



Цитата(Andrew2000 @ Jul 14 2010, 23:00) *
прежде чем писать - читайте стандарт, лежит тут

Если вы умный, то сразу приводите выписки из стандарта, а не ссылки. Моя ошибка заключается в том, что я неправильно указал число клоков.
Согласно стандарту пауза между DATA FRAMEs and REMOTE FRAMEs может составлять от 2клоков и более
Специально для Вас (не касаемся OVERLOAD FRAME):
1.
DATA FRAMEs and REMOTE FRAMEs can be used both in Standard Frame Format and Extended Frame Format; they are separated from preceding frames by an INTERFRAME SPACE.
2.
DATA FRAMEs and REMOTE FRAMEs are separated from preceding frames whatever type they are (DATA FRAME, REMOTE FRAME, ERROR FRAME, OVERLOAD
FRAME) by a bit field called INTERFRAME SPACE. In contrast, OVERLOAD FRAMEs and ERROR FRAMEs are not preceded by an INTERFRAME SPACE and
multiple OVER-LOAD FRAMEs are not separated by an INTERFRAME SPACE.
INTERFRAME SPACE
contains the bit fields INTERMISSION and BUS IDLE and, for ’error passive’ stations, which have been TRANSMITTER of the previous message, SUSPEND TRANSMISSION.
INTERFRAME SPACE contains the bit fields INTERMISSION and BUS IDLE and, for ’error passive’ stations, which have been TRANSMITTER of the previous message, SUSPEND TRANSMISSION.
2.1.INTERMISSION
consists of three ’recessive’ bits.
During INTERMISSION the only action to be taken is signalling an OVERLOAD condition
and no station is allowed to actively start a transmission of a DATA FRAME or REMOTE
FRAME.
Note:
If a CAN node has a message waiting for transmission and it samples a dominant bit at the third bit of INTERMISSION, it will interpret this as a START OF FRAME bit,
and, with the next bit, start transmitting ist message with the first bit of its IDENTIFIER without first transmitting a START OF FRAME bit and without becoming receiver.
2.2.BUS IDLE
The period of BUS IDLE may be of arbitrary length. The bus is recognized to be free and any station having something to transmit can access the bus. A message, which is pending for transmission during the transmission of another message, is started in the first bit following INTERMISSION.
The detection of a ’dominant’ bit on the bus is interpreted as START OF FRAME.
2.3.SUSPEND TRANSMISSION
After an ’error passive’ station has transmitted a message, it sends eight ’recessive’ bits following INTERMISSION, before starting to transmit a further message or recognizing the bus to be idle. If meanwhile a transmission (caused by another station) starts, the station will become receiver of this message.
Go to the top of the page
 
+Quote Post
cant
сообщение Jul 15 2010, 07:05
Сообщение #18


Местный
***

Группа: Участник
Сообщений: 216
Регистрация: 28-10-08
Из: Брест
Пользователь №: 41 243



Цитата(Yaumen @ Jul 8 2010, 13:43) *
Именно так и делал, номер пакета забит в ID, но устройств много и приходится использовать один большой буфер для сбора пакета, чтобы не лежал хлам из не до конца принятых пакетов использую таймаут, по истечении указанного времени, не принятое до конца сообщение выбрасывается из буфера.

Но вопрос был в другом. Меня смущает большие цифры получившегося рабочего таймаута. Одно успокаивает, что передатчик писал не я и вообще не наша контора, поэтому возможно там выполняется какая-то логика перед отправкой очередного CAN пакета, отсюда и задержки. Если в своих расчетах я учел все аспекты, то пора браться за осцилограф smile.gif


максимальный таймаут не ограничен. раз не Вы писали передатчик, то темболее нельзя читать по таймауту.... может там отскок на прерывание какое и таймаут у них гуляет от времени
Go to the top of the page
 
+Quote Post

2 страниц V  < 1 2
Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 20th July 2025 - 08:10
Рейтинг@Mail.ru


Страница сгенерированна за 0.01357 секунд с 7
ELECTRONIX ©2004-2016