Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
f51a97c7
Commit
f51a97c7
authored
11 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
added debug output for sending IEEE802.15.4 frames
parent
fa83bb4f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sys/net/sixlowpan/sixlowmac.c
+6
-0
6 additions, 0 deletions
sys/net/sixlowpan/sixlowmac.c
sys/transceiver/transceiver.c
+1
-0
1 addition, 0 deletions
sys/transceiver/transceiver.c
with
7 additions
and
0 deletions
sys/net/sixlowpan/sixlowmac.c
+
6
−
0
View file @
f51a97c7
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @}
* @}
*/
*/
...
@@ -37,6 +38,9 @@
...
@@ -37,6 +38,9 @@
#include
"ieee802154/ieee802154_frame.h"
#include
"ieee802154/ieee802154_frame.h"
#include
"net_help/net_help.h"
#include
"net_help/net_help.h"
#define ENABLE_DEBUG (0)
#include
"debug.h"
char
radio_stack_buffer
[
RADIO_STACK_SIZE
];
char
radio_stack_buffer
[
RADIO_STACK_SIZE
];
msg_t
msg_q
[
RADIO_RCV_BUF_SIZE
];
msg_t
msg_q
[
RADIO_RCV_BUF_SIZE
];
...
@@ -164,6 +168,7 @@ void set_ieee802154_fcf_values(ieee802154_frame_t *frame, uint8_t dest_mode,
...
@@ -164,6 +168,7 @@ void set_ieee802154_fcf_values(ieee802154_frame_t *frame, uint8_t dest_mode,
frame
->
fcf
.
frame_ver
=
0
;
frame
->
fcf
.
frame_ver
=
0
;
frame
->
fcf
.
src_addr_m
=
src_mode
;
frame
->
fcf
.
src_addr_m
=
src_mode
;
frame
->
fcf
.
dest_addr_m
=
dest_mode
;
frame
->
fcf
.
dest_addr_m
=
dest_mode
;
print_802154_fcf_frame
(
frame
);
}
}
void
set_ieee802154_frame_values
(
ieee802154_frame_t
*
frame
)
void
set_ieee802154_frame_values
(
ieee802154_frame_t
*
frame
)
...
@@ -206,6 +211,7 @@ void send_ieee802154_frame(ieee_802154_long_t *addr, uint8_t *payload,
...
@@ -206,6 +211,7 @@ void send_ieee802154_frame(ieee_802154_long_t *addr, uint8_t *payload,
memset
(
&
buf
,
0
,
PAYLOAD_SIZE
);
memset
(
&
buf
,
0
,
PAYLOAD_SIZE
);
init_802154_frame
(
&
frame
,
(
uint8_t
*
)
&
buf
);
init_802154_frame
(
&
frame
,
(
uint8_t
*
)
&
buf
);
memcpy
(
&
buf
[
hdrlen
],
frame
.
payload
,
frame
.
payload_len
);
memcpy
(
&
buf
[
hdrlen
],
frame
.
payload
,
frame
.
payload_len
);
DEBUG
(
"IEEE802.15.4 frame - FCF: %02X %02X DPID: %02X SPID: %02X DSN: %02X
\n
"
,
buf
[
0
],
buf
[
1
],
frame
->
dest_pan_id
,
frame
->
src_pan_id
,
frame
->
seq_nr
);
/* mutex unlock */
/* mutex unlock */
mutex_unlock
(
&
buf_mutex
,
0
);
mutex_unlock
(
&
buf_mutex
,
0
);
...
...
This diff is collapsed.
Click to expand it.
sys/transceiver/transceiver.c
+
1
−
0
View file @
f51a97c7
...
@@ -508,6 +508,7 @@ static uint8_t send_packet(transceiver_type_t t, void *pkt)
...
@@ -508,6 +508,7 @@ static uint8_t send_packet(transceiver_type_t t, void *pkt)
switch
(
t
)
{
switch
(
t
)
{
case
TRANSCEIVER_CC1100
:
case
TRANSCEIVER_CC1100
:
#ifdef MODULE_CC110X_NG
#ifdef MODULE_CC110X_NG
DEBUG
(
"Send packet to %"
PRIu16
"
\n
"
,
p
.
dst
);
cc110x_pkt
.
length
=
p
.
length
+
CC1100_HEADER_LENGTH
;
cc110x_pkt
.
length
=
p
.
length
+
CC1100_HEADER_LENGTH
;
cc110x_pkt
.
address
=
p
.
dst
;
cc110x_pkt
.
address
=
p
.
dst
;
cc110x_pkt
.
flags
=
0
;
cc110x_pkt
.
flags
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment