ruby-xbee 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.rdoc +5 -4
- data/bin/apilisten.rb +2 -2
- data/bin/ota_upgrade.rb +213 -0
- data/lib/apimode/frame/explicit_addressing_command.rb +46 -1
- data/lib/apimode/frame/explicit_rx_indicator.rb +17 -0
- data/lib/apimode/frame/frame.rb +63 -23
- data/lib/apimode/frame/modem_status.rb +1 -1
- data/lib/apimode/frame/remote_command_response.rb +1 -1
- data/lib/apimode/xbee_api.rb +63 -23
- data/lib/module_config.rb +17 -0
- data/lib/ruby_xbee.rb +7 -6
- data/test/ruby_xbee_api_frame_eac_test.rb +132 -0
- data/test/ruby_xbee_api_frame_erxi_test.rb +54 -0
- data/test/ruby_xbee_api_frame_test.rb +530 -0
- data/test/ruby_xbee_apimode_test.rb +52 -0
- data/test/ruby_xbee_test.rb +3 -3
- data/test/test_helper.rb +11 -8
- metadata +124 -11
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-xbee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Landon Cox
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: serialport
|
@@ -18,25 +18,129 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '1.
|
22
|
-
- -
|
21
|
+
version: '1.3'
|
22
|
+
- - '>='
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 1.1
|
24
|
+
version: 1.3.1
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - ~>
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: '1.
|
32
|
-
- -
|
31
|
+
version: '1.3'
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.1
|
35
|
-
|
34
|
+
version: 1.3.1
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rake
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
type: :development
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: hanna-nouveau
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.4'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.4'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: VersionCheck
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.0'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: simplecov
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.9'
|
84
|
+
type: :development
|
85
|
+
prerelease: false
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0.9'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: minitest
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '5.5'
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '5.5'
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: minitest-reporters
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '1.0'
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '1.0'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: coveralls
|
121
|
+
requirement: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.7'
|
126
|
+
type: :development
|
127
|
+
prerelease: false
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ~>
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0.7'
|
133
|
+
description: |2
|
134
|
+
Middleware for controlling an XBee module from Ruby. Series 1, Series 2 modules
|
135
|
+
supported in AT (Transparent) or API (non-escaped & escaped) mode.
|
136
|
+
|
137
|
+
Examples included how to use including Over-The-Air application firmware
|
138
|
+
upgrade for programmable XBee modules.
|
36
139
|
email: exile@chamber.ee
|
37
140
|
executables:
|
38
141
|
- apicontrol.rb
|
39
142
|
- apilisten.rb
|
143
|
+
- ota_upgrade.rb
|
40
144
|
- ruby-xbee.rb
|
41
145
|
- xbeeconfigure.rb
|
42
146
|
- xbeedio.rb
|
@@ -55,6 +159,7 @@ files:
|
|
55
159
|
- agpl.txt
|
56
160
|
- bin/apicontrol.rb
|
57
161
|
- bin/apilisten.rb
|
162
|
+
- bin/ota_upgrade.rb
|
58
163
|
- bin/ruby-xbee.rb
|
59
164
|
- bin/xbeeconfigure.rb
|
60
165
|
- bin/xbeedio.rb
|
@@ -77,6 +182,10 @@ files:
|
|
77
182
|
- lib/legacy/command_mode.rb
|
78
183
|
- lib/module_config.rb
|
79
184
|
- lib/ruby_xbee.rb
|
185
|
+
- test/ruby_xbee_api_frame_eac_test.rb
|
186
|
+
- test/ruby_xbee_api_frame_erxi_test.rb
|
187
|
+
- test/ruby_xbee_api_frame_test.rb
|
188
|
+
- test/ruby_xbee_apimode_test.rb
|
80
189
|
- test/ruby_xbee_test.rb
|
81
190
|
- test/test_helper.rb
|
82
191
|
homepage: http://github.com/exsilium/ruby-xbee
|
@@ -90,12 +199,12 @@ require_paths:
|
|
90
199
|
- lib
|
91
200
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
201
|
requirements:
|
93
|
-
- -
|
202
|
+
- - '>='
|
94
203
|
- !ruby/object:Gem::Version
|
95
204
|
version: '0'
|
96
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
206
|
requirements:
|
98
|
-
- -
|
207
|
+
- - '>='
|
99
208
|
- !ruby/object:Gem::Version
|
100
209
|
version: '0'
|
101
210
|
requirements: []
|
@@ -106,5 +215,9 @@ specification_version: 4
|
|
106
215
|
summary: Controlling an XBee module from Ruby either in AT (Transparent) or API mode.
|
107
216
|
Both Series 1 and Series 2 radio modules are supported.
|
108
217
|
test_files:
|
218
|
+
- test/ruby_xbee_api_frame_eac_test.rb
|
219
|
+
- test/ruby_xbee_api_frame_erxi_test.rb
|
220
|
+
- test/ruby_xbee_api_frame_test.rb
|
221
|
+
- test/ruby_xbee_apimode_test.rb
|
109
222
|
- test/ruby_xbee_test.rb
|
110
223
|
- test/test_helper.rb
|