Skip to content

Commit af65b2a

Browse files
committed
feat: log Transport Service bridge node IDs
With Z-Wave LR, the node ID change the representation from 8-bit to 16-bit. Different bugs have appear because of the incorrect or representation. Therefore, we are adding debug logs on the transport service bridge to debug and follow the correct representation of node IDs. Relates-to: ZGW-3457 Origin: #47 Signed-off-by: Laudin Molina Troconis <laudin.molinatroconis@silabs.com>
1 parent 4d55f9b commit af65b2a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/transport/ZW_SendDataAppl.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,12 @@ PROCESS_THREAD(ZW_SendDataAppl_process, ev, data)
810810
if (SupportsCmdClass(current_session_ll->fb->param.dnode,
811811
COMMAND_CLASS_TRANSPORT_SERVICE))
812812
{
813-
DBG_PRINTF("SEND_EVENT_SEND_NEXT_LL | SupportsCmdClass | ZW_TransportService_SendData \n");
813+
DBG_PRINTF("SEND_EVENT_SEND_NEXT_LL | SupportsCmdClass | ZW_TransportService_SendData\n"
814+
"snode=%u dnode=%u frame_len=%u dnode_low8=%u\n",
815+
(unsigned)current_session_ll->fb->param.snode,
816+
(unsigned)current_session_ll->fb->param.dnode,
817+
(unsigned)current_session_ll->fb->frame_len,
818+
(unsigned)(current_session_ll->fb->param.dnode & 0xFFu));
814819
//ASSERT(current_session_ll->param.snode == MyNodeID); //TODO make transport service bridge aware
815820
rc = ZW_TransportService_SendData(&current_session_ll->fb->param,
816821
(u8_t*) current_session_ll->fb->frame_data,

0 commit comments

Comments
 (0)