Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Hideaki Tai
/
omni_main
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a460f700
authored
Nov 28, 2018
by
Hideaki Tai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update XBee settings
parent
e0041394
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
include/main.h
+14
-12
src/main.cpp
+1
-0
No files found.
include/main.h
View file @
a460f700
...
@@ -96,38 +96,38 @@ bool initEeprom(uint8_t hw_id)
...
@@ -96,38 +96,38 @@ bool initEeprom(uint8_t hw_id)
void
setupXBee
(
uint8_t
hw_id
)
void
setupXBee
(
uint8_t
hw_id
)
{
{
xb_settings
[
0
].
channel
=
0x1
2
;
xb_settings
[
0
].
channel
=
0x1
1
;
xb_settings
[
0
].
pan_id
=
0x0
7
;
xb_settings
[
0
].
pan_id
=
0x0
6
;
xb_settings
[
0
].
dst_addr_h
=
0x00000000
;
xb_settings
[
0
].
dst_addr_h
=
0x00000000
;
xb_settings
[
0
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
0
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
0
].
packetization_timeout
=
10
;
xb_settings
[
0
].
packetization_timeout
=
10
;
xb_settings
[
1
].
channel
=
0x
13
;
xb_settings
[
1
].
channel
=
0x
0C
;
xb_settings
[
1
].
pan_id
=
0x0
8
;
xb_settings
[
1
].
pan_id
=
0x0
1
;
xb_settings
[
1
].
dst_addr_h
=
0x00000000
;
xb_settings
[
1
].
dst_addr_h
=
0x00000000
;
xb_settings
[
1
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
1
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
1
].
packetization_timeout
=
10
;
xb_settings
[
1
].
packetization_timeout
=
10
;
xb_settings
[
2
].
channel
=
0x
14
;
xb_settings
[
2
].
channel
=
0x
0D
;
xb_settings
[
2
].
pan_id
=
0x0
9
;
xb_settings
[
2
].
pan_id
=
0x0
2
;
xb_settings
[
2
].
dst_addr_h
=
0x00000000
;
xb_settings
[
2
].
dst_addr_h
=
0x00000000
;
xb_settings
[
2
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
2
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
2
].
packetization_timeout
=
10
;
xb_settings
[
2
].
packetization_timeout
=
10
;
xb_settings
[
3
].
channel
=
0x
15
;
xb_settings
[
3
].
channel
=
0x
0E
;
xb_settings
[
3
].
pan_id
=
0x0
A
;
xb_settings
[
3
].
pan_id
=
0x0
3
;
xb_settings
[
3
].
dst_addr_h
=
0x00000000
;
xb_settings
[
3
].
dst_addr_h
=
0x00000000
;
xb_settings
[
3
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
3
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
3
].
packetization_timeout
=
10
;
xb_settings
[
3
].
packetization_timeout
=
10
;
xb_settings
[
4
].
channel
=
0x
16
;
xb_settings
[
4
].
channel
=
0x
0F
;
xb_settings
[
4
].
pan_id
=
0x0
B
;
xb_settings
[
4
].
pan_id
=
0x0
4
;
xb_settings
[
4
].
dst_addr_h
=
0x00000000
;
xb_settings
[
4
].
dst_addr_h
=
0x00000000
;
xb_settings
[
4
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
4
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
4
].
packetization_timeout
=
10
;
xb_settings
[
4
].
packetization_timeout
=
10
;
xb_settings
[
5
].
channel
=
0x1
7
;
xb_settings
[
5
].
channel
=
0x1
0
;
xb_settings
[
5
].
pan_id
=
0x0
C
;
xb_settings
[
5
].
pan_id
=
0x0
5
;
xb_settings
[
5
].
dst_addr_h
=
0x00000000
;
xb_settings
[
5
].
dst_addr_h
=
0x00000000
;
xb_settings
[
5
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
5
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
5
].
packetization_timeout
=
10
;
xb_settings
[
5
].
packetization_timeout
=
10
;
...
@@ -218,7 +218,9 @@ void initXBee(uint8_t hw_id)
...
@@ -218,7 +218,9 @@ void initXBee(uint8_t hw_id)
b_need_xbee_init
=
true
;
b_need_xbee_init
=
true
;
}
}
#ifdef AUTO_CONFIGURE_XBEE
if
(
b_need_xbee_init
)
setupXBee
(
hw_id
);
if
(
b_need_xbee_init
)
setupXBee
(
hw_id
);
#endif
xbeecmd
.
firmwareVer
();
xbeecmd
.
firmwareVer
();
xbeecmd
.
hardwareVer
();
xbeecmd
.
hardwareVer
();
...
...
src/main.cpp
View file @
a460f700
// #define DEBUG_INFO
// #define DEBUG_INFO
#define AUTO_CONFIGURE_XBEE
#include "global.h"
#include "global.h"
#include "main.h"
#include "main.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment