Difference between revisions of "NWMUDS:SendTo"

 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
|-
 
|-
 
| 3
 
| 3
| u8, unknown. Normally 0x1. This is written into the NWM-module data frame header.
+
| u8 [[NWMUDS:Bind|data_channel]]
 
|-
 
|-
 
| 4
 
| 4
Line 56: Line 56:
 
|-
 
|-
 
| 1
 
| 1
| When set, broadcast the data frame via the destination MAC address, even when the NetworkNodeID isn't set for broadcast?
+
| When set, broadcast the data frame via the destination MAC address, even when the NetworkNodeID isn't set for broadcast.
 
|}
 
|}
  
Line 62: Line 62:
  
 
=Description=
 
=Description=
This sends a data frame, while connected to the UDS network. This is the sending version of [[NWMUDS:PullPacket]]. BufSize is 4-byte aligned version of "Actual data size".
+
This sends a data frame, while connected to the UDS network. This is the sending version of [[NWMUDS:PullPacket]]. BufSize is 4-byte aligned version of "Actual data size". The actual_datasize must be <= 0x5C6.

Latest revision as of 00:32, 9 April 2016

RequestEdit

Index Word Description
0 Header code [0x00170182]
1 Unused u32. Normally 0x1.
2 u16 destination NetworkNodeID.
3 u8 data_channel
4 BufSize >> 2
5 Actual data size
6 u8 flags
7 (BufSize<<14) | 0x402
8 Pointer to the input buffer

ResponseEdit

Index Word Description
0 Header code
1 Result code

FlagsEdit

Bit Description
0 Unknown, normally set.
1 When set, broadcast the data frame via the destination MAC address, even when the NetworkNodeID isn't set for broadcast.

This command only uses the input flags field for checking the above 2 bits, nothing more.

DescriptionEdit

This sends a data frame, while connected to the UDS network. This is the sending version of NWMUDS:PullPacket. BufSize is 4-byte aligned version of "Actual data size". The actual_datasize must be <= 0x5C6.