From 3f1672996d839293f056046e5db50fca90fbcd26 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Mon, 4 Sep 2023 10:07:29 +0200 Subject: [PATCH] update CAN uml for last fix --- UML/can.pdf | Bin 2342 -> 2488 bytes UML/can.uxf | 47 +++++++++++++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/UML/can.pdf b/UML/can.pdf index 14c421afbcf36c54da4fe22a814626c7cc2ff1ed..cc045a62b87ea7d0ef08c1a04b45dda632309461 100644 GIT binary patch delta 1627 zcmaisc{tPw9L94rn2dXh9LX_M%Fmb+Wyn=igydM8D@X1elhM{_JW0toCWLX#iY=K6 zlL=86)5wu%Sc9ZSu5q+9NZNM)+UL>p?Du)z=lQ;$=kvT3N-X6}9SJxFo29>p3B-z>w6s zo&DA>l)s)8D0KMi6jV;$sGq)AD<;YPmrSk3`3U3{ZsK`O|TUErieo%Za5`>?@ph5!l=bJ<#cV=!1@4)7;WQ z{ID1;H4OiPwaK%-sL^^nIoO`p_xx~;&~Cmo+558E>x9z2X(_XV-#paY9M#hXW+VdX zVF9^MQCEIFlG&igKk4Y$LbA`bEpi{MC2D;^{;pQR4FDQtNYzvo6PtO@6?ct%#Of)!Y5onws^`#AzL605t4 z=A8$9TGdHx{?pfWBq9u60zH>LHwVjz-Cb7!pCz3z^a&6NVywt2=}(4Y6TPUYW@86S zvS5kqog=t;I$l=+h;QBis)DJypZE3Tbd4zv$4Cjnu8&_IcG9rBA2O2|wOr}8+BhXX z-sihMwSKoG-~^i0VP*KiOZLta^^@+~Y7T5uuLDwtz^@tu&kkI=Fh{SCE=vo8L?-Qj z%Os^ZB=Zb+x?-QLdweS78p;{Do?d$tC-bP}=om+A|43okJC4hyGy{Uupx^$Yw{S7+ zf5Icfz8`pN^5KU+9NcMquk~4A zY1tWyxQHwx^H`MqctJecozwLWs!l1KyrTMf)<*W4zY}Z-H|g1Qwcx5z8zuMU4iR`> zvKw%Ze4{Ln&rF~%j@xw-Yl#BU!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#~=0irOm*;ytJfOUAiFjb_S}$OOsLP$Nq2Dk9 z?rhDGP?Pw2npVDV^v>*WUPyHsPKUL@1FWJ9TD36S!Ps|8A$;LN0LqS$^c=`E`CRQ3K2hVxX(xidkN(JM# zts{Y`>>hWh7~=4iG0~3vYNo_{l8oVoTwH-bP*3x!Wi{}#M}S$w0Si05>)k-ya`i(# zV7Ozr+c6>|G(TAe@V9tR(;)R?N!SN7d(Y+$0lwm~oYKMiX(%O{=T{grlbu^eUMLNote 645 - 255 - 675 - 525 + 75 + 750 + 765 _*How to use CAN interface*_ @@ -23,19 +23,30 @@ CAN_setSender(idSender); CAN_startBehaviour(); *Somewhere for process input can message:* -void receiveCan(uint8_t idSender, uint8_t idMsg, uint32_t canData) { +void receiveCan(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t canData) { ..... } *For send can message: * -CAN_sendCanMsg(uint8_t idRecipient, uint8_t idMsg, uint32_t data); +CAN_Send(uint8_t idRecipient, uint8_t idMsg, uint32_t data); +CAN_send_4_bytes( + uint8_t idRecipient, + uint8_t idMsg, + uint8_t byte0, + uint8_t byte1, + uint8_t byte2, + uint8_t byte3); +CAN_send_2_bytes(uint8_t idRecipient, uint8_t idMsg, uint16_t data); +CAN_send_1_byte(uint8_t idRecipient, uint8_t idMsg, uint8_t data); +CAN_send_0_byte(uint8_t idRecipient, uint8_t idMsg); +CAN_send_rtr(uint8_t idRecipient, uint8_t idMsg); Relation - 360 - 330 + 375 + 255 90 135 @@ -47,8 +58,8 @@ evInit UMLSpecialState - 360 - 315 + 375 + 240 30 30 @@ -58,37 +69,37 @@ evInit UMLState - 240 - 435 + 255 + 360 270 90 - STCA_PROCESS + PROCESS Relation - 450 - 465 + 465 + 390 180 180 lt=-> -m1=evCAsend +m1=evSend m1=\n/sendCan() 10.0;40.0;10.0;100.0;100.0;100.0;100.0;10.0;40.0;10.0 Relation - 135 - 465 + 150 + 390 300 180 lt=-> -m1= evCAnewMsg +m1= evNewMsg m1= \n/receiveCan() 100.0;40.0;100.0;100.0;10.0;100.0;10.0;10.0;70.0;10.0