extface 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/extface/driver/daisy_fx1200.rb +2 -0
- data/app/models/extface/driver/datecs/fp550.rb +1 -0
- data/lib/extface/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/extface/40760454/daisy_fx1200.log +9 -82
- data/test/dummy/log/extface/40760454/daisy_fx1200.log.20151219 +82 -0
- data/test/dummy/log/test.log +184 -0
- data/test/models/extface/driver/daisy_fx1200_test.rb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a84f0fb9b02a08d80e7102a5315656401af94393
|
4
|
+
data.tar.gz: ef16b508415145ab787f2e531f20402648a230c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f45abce1e80900116df9e490e5de23ffc4940139c5848b53f7f44d52637e327f87789d24bf8a8c928f88b0fd4a744ca199eca2f940d72b02bfd800ce8275358
|
7
|
+
data.tar.gz: 5dfb5302f880695c84861c50c91e5359919cbe9ce8abacca1c184e2a04129a886e2e3d4fcdac91b8b633b9a6181cf300ec4fff20701973f8915a2e366a937b5b
|
@@ -253,12 +253,14 @@ module Extface
|
|
253
253
|
def frecv(timeout) # return RespFrame or nil
|
254
254
|
rframe = nil
|
255
255
|
BAD_SEQ_MAX_COUNT.times do
|
256
|
+
errors.clear
|
256
257
|
if frame_bytes = pull(timeout)
|
257
258
|
rframe = RespFrame.new(frame_bytes.b)
|
258
259
|
if rframe.seq.nil? || rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply
|
259
260
|
break
|
260
261
|
else
|
261
262
|
errors.add :base, "Sequence mismatch"
|
263
|
+
p "Invalid sequence (expected: #{sequence_number(false).to_s(16)}, got: #{rframe.seq.ord.to_s(16)})"
|
262
264
|
rframe = nil #invalidate mismatch sequence frame for the last retry
|
263
265
|
end
|
264
266
|
else
|
@@ -220,6 +220,7 @@ module Extface
|
|
220
220
|
def frecv(timeout) # return Frame or nil
|
221
221
|
rframe = nil
|
222
222
|
BAD_SEQ_MAX_COUNT.times do
|
223
|
+
errors.clear
|
223
224
|
if frame_bytes = pull(timeout)
|
224
225
|
rframe = Frame.new(frame_bytes.b)
|
225
226
|
if rframe.seq.nil? || rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply
|
data/lib/extface/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,82 +1,9 @@
|
|
1
|
-
# Logfile created on 2015-12-
|
2
|
-
D, [2015-12-
|
3
|
-
D, [2015-12-
|
4
|
-
D, [2015-12-
|
5
|
-
D, [2015-12-
|
6
|
-
D, [2015-12-
|
7
|
-
D, [2015-12-
|
8
|
-
D, [2015-12-
|
9
|
-
D, [2015-12-
|
10
|
-
D, [2015-12-19T11:13:29.073984 #17422] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
11
|
-
D, [2015-12-19T11:13:30.084109 #17422] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
12
|
-
D, [2015-12-19T11:14:51.386106 #17514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
13
|
-
D, [2015-12-19T11:14:52.391172 #17514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
14
|
-
D, [2015-12-19T11:47:46.827158 #18697] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
15
|
-
D, [2015-12-19T11:47:47.825200 #18697] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
16
|
-
D, [2015-12-19T11:51:19.618242 #18741] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
17
|
-
D, [2015-12-19T11:52:36.035294 #18847] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
18
|
-
D, [2015-12-19T11:52:37.037775 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
19
|
-
D, [2015-12-19T11:52:38.058034 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
20
|
-
D, [2015-12-19T11:52:48.058565 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
21
|
-
D, [2015-12-19T11:54:08.979787 #18902] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
22
|
-
D, [2015-12-19T11:54:09.984547 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
23
|
-
D, [2015-12-19T11:54:11.000391 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
24
|
-
D, [2015-12-19T11:54:21.002858 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
25
|
-
D, [2015-12-19T11:57:12.164609 #19013] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
26
|
-
D, [2015-12-19T11:57:13.172187 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
27
|
-
D, [2015-12-19T11:57:14.198314 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
28
|
-
D, [2015-12-19T11:57:24.201869 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
29
|
-
D, [2015-12-19T11:58:07.241485 #19098] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
30
|
-
D, [2015-12-19T11:58:08.249117 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
31
|
-
D, [2015-12-19T11:58:09.269978 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
32
|
-
D, [2015-12-19T11:58:19.271985 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
33
|
-
D, [2015-12-19T11:58:35.683951 #19191] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
34
|
-
D, [2015-12-19T11:58:36.692054 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
35
|
-
D, [2015-12-19T11:58:37.710507 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
36
|
-
D, [2015-12-19T11:58:47.712081 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
37
|
-
D, [2015-12-19T12:01:07.939133 #19514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
38
|
-
D, [2015-12-19T12:01:08.948309 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
39
|
-
D, [2015-12-19T12:01:09.963643 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
40
|
-
D, [2015-12-19T12:01:19.966256 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
41
|
-
D, [2015-12-19T12:02:42.010379 #19632] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
42
|
-
D, [2015-12-19T12:02:43.017221 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
43
|
-
D, [2015-12-19T12:02:44.041822 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
44
|
-
D, [2015-12-19T12:02:54.044534 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
45
|
-
D, [2015-12-19T12:04:16.486702 #19711] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
46
|
-
D, [2015-12-19T12:04:17.493593 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
47
|
-
D, [2015-12-19T12:04:18.519615 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
48
|
-
D, [2015-12-19T12:04:28.520100 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
49
|
-
D, [2015-12-19T12:05:54.520755 #19864] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
50
|
-
D, [2015-12-19T12:05:55.516785 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
51
|
-
D, [2015-12-19T12:05:56.539940 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
52
|
-
D, [2015-12-19T12:06:06.543145 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
53
|
-
D, [2015-12-19T12:10:19.198705 #19982] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
54
|
-
D, [2015-12-19T12:10:20.208788 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
55
|
-
D, [2015-12-19T12:10:21.228661 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
56
|
-
D, [2015-12-19T12:10:31.231484 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
57
|
-
D, [2015-12-19T12:12:31.004347 #20127] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
58
|
-
D, [2015-12-19T12:12:32.003042 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
59
|
-
D, [2015-12-19T12:12:33.025942 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
60
|
-
D, [2015-12-19T12:12:43.028164 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
61
|
-
D, [2015-12-19T12:14:43.876898 #20188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
62
|
-
D, [2015-12-19T12:14:44.893021 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
63
|
-
D, [2015-12-19T12:14:45.912284 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
64
|
-
D, [2015-12-19T12:14:55.912901 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
65
|
-
D, [2015-12-19T12:15:54.129293 #20296] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
66
|
-
D, [2015-12-19T12:15:55.126284 #20296] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
67
|
-
D, [2015-12-19T12:18:40.993475 #20367] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
68
|
-
D, [2015-12-19T12:18:42.001687 #20367] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
69
|
-
D, [2015-12-19T12:20:41.813345 #20591] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
70
|
-
D, [2015-12-19T12:20:42.814304 #20591] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
71
|
-
D, [2015-12-19T12:22:58.381881 #20872] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
72
|
-
D, [2015-12-19T12:22:59.387072 #20872] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
73
|
-
D, [2015-12-19T12:32:47.923617 #21050] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
74
|
-
D, [2015-12-19T12:32:48.929732 #21050] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
75
|
-
D, [2015-12-19T12:38:58.518353 #21144] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
76
|
-
D, [2015-12-19T12:38:59.531004 #21144] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
77
|
-
D, [2015-12-19T12:45:43.380804 #21389] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
78
|
-
D, [2015-12-19T12:45:44.399059 #21389] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
79
|
-
D, [2015-12-19T12:47:16.693732 #21469] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
80
|
-
D, [2015-12-19T12:47:17.696360 #21469] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
81
|
-
D, [2015-12-19T12:56:08.518115 #21740] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
82
|
-
D, [2015-12-19T12:56:09.528030 #21740] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
1
|
+
# Logfile created on 2015-12-20 10:02:45 -0500 by logger.rb/44203
|
2
|
+
D, [2015-12-20T10:02:45.346209 #2009] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
3
|
+
D, [2015-12-20T10:02:46.351845 #2009] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
4
|
+
D, [2015-12-20T10:03:56.218654 #2062] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
5
|
+
D, [2015-12-20T10:03:57.226445 #2062] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
6
|
+
D, [2015-12-20T10:06:43.216370 #2172] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
7
|
+
D, [2015-12-20T10:06:44.224208 #2172] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
8
|
+
D, [2015-12-20T10:06:45.366821 #2172] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
9
|
+
D, [2015-12-20T10:06:46.368808 #2172] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# Logfile created on 2015-12-19 10:43:06 -0500 by logger.rb/44203
|
2
|
+
D, [2015-12-19T10:43:06.412290 #16188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
3
|
+
D, [2015-12-19T10:49:20.486696 #16441] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
4
|
+
D, [2015-12-19T10:53:22.107688 #16441] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
5
|
+
D, [2015-12-19T10:53:32.108923 #16441] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
6
|
+
D, [2015-12-19T11:05:14.662329 #16927] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
7
|
+
D, [2015-12-19T11:05:15.663152 #16927] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
8
|
+
D, [2015-12-19T11:11:26.059445 #17290] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
9
|
+
D, [2015-12-19T11:11:27.063714 #17290] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
10
|
+
D, [2015-12-19T11:13:29.073984 #17422] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
11
|
+
D, [2015-12-19T11:13:30.084109 #17422] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
12
|
+
D, [2015-12-19T11:14:51.386106 #17514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
13
|
+
D, [2015-12-19T11:14:52.391172 #17514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
14
|
+
D, [2015-12-19T11:47:46.827158 #18697] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
15
|
+
D, [2015-12-19T11:47:47.825200 #18697] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
16
|
+
D, [2015-12-19T11:51:19.618242 #18741] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
17
|
+
D, [2015-12-19T11:52:36.035294 #18847] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
18
|
+
D, [2015-12-19T11:52:37.037775 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
19
|
+
D, [2015-12-19T11:52:38.058034 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
20
|
+
D, [2015-12-19T11:52:48.058565 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
21
|
+
D, [2015-12-19T11:54:08.979787 #18902] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
22
|
+
D, [2015-12-19T11:54:09.984547 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
23
|
+
D, [2015-12-19T11:54:11.000391 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
24
|
+
D, [2015-12-19T11:54:21.002858 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
25
|
+
D, [2015-12-19T11:57:12.164609 #19013] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
26
|
+
D, [2015-12-19T11:57:13.172187 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
27
|
+
D, [2015-12-19T11:57:14.198314 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
28
|
+
D, [2015-12-19T11:57:24.201869 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
29
|
+
D, [2015-12-19T11:58:07.241485 #19098] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
30
|
+
D, [2015-12-19T11:58:08.249117 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
31
|
+
D, [2015-12-19T11:58:09.269978 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
32
|
+
D, [2015-12-19T11:58:19.271985 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
33
|
+
D, [2015-12-19T11:58:35.683951 #19191] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
34
|
+
D, [2015-12-19T11:58:36.692054 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
35
|
+
D, [2015-12-19T11:58:37.710507 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
36
|
+
D, [2015-12-19T11:58:47.712081 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
37
|
+
D, [2015-12-19T12:01:07.939133 #19514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
38
|
+
D, [2015-12-19T12:01:08.948309 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
39
|
+
D, [2015-12-19T12:01:09.963643 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
40
|
+
D, [2015-12-19T12:01:19.966256 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
41
|
+
D, [2015-12-19T12:02:42.010379 #19632] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
42
|
+
D, [2015-12-19T12:02:43.017221 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
43
|
+
D, [2015-12-19T12:02:44.041822 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
44
|
+
D, [2015-12-19T12:02:54.044534 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
45
|
+
D, [2015-12-19T12:04:16.486702 #19711] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
46
|
+
D, [2015-12-19T12:04:17.493593 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
47
|
+
D, [2015-12-19T12:04:18.519615 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
48
|
+
D, [2015-12-19T12:04:28.520100 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
49
|
+
D, [2015-12-19T12:05:54.520755 #19864] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
50
|
+
D, [2015-12-19T12:05:55.516785 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
51
|
+
D, [2015-12-19T12:05:56.539940 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
52
|
+
D, [2015-12-19T12:06:06.543145 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
53
|
+
D, [2015-12-19T12:10:19.198705 #19982] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
54
|
+
D, [2015-12-19T12:10:20.208788 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
55
|
+
D, [2015-12-19T12:10:21.228661 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
56
|
+
D, [2015-12-19T12:10:31.231484 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
57
|
+
D, [2015-12-19T12:12:31.004347 #20127] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
58
|
+
D, [2015-12-19T12:12:32.003042 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
59
|
+
D, [2015-12-19T12:12:33.025942 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
60
|
+
D, [2015-12-19T12:12:43.028164 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
61
|
+
D, [2015-12-19T12:14:43.876898 #20188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
62
|
+
D, [2015-12-19T12:14:44.893021 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
63
|
+
D, [2015-12-19T12:14:45.912284 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
64
|
+
D, [2015-12-19T12:14:55.912901 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
65
|
+
D, [2015-12-19T12:15:54.129293 #20296] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
66
|
+
D, [2015-12-19T12:15:55.126284 #20296] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
67
|
+
D, [2015-12-19T12:18:40.993475 #20367] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
68
|
+
D, [2015-12-19T12:18:42.001687 #20367] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
69
|
+
D, [2015-12-19T12:20:41.813345 #20591] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
70
|
+
D, [2015-12-19T12:20:42.814304 #20591] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
71
|
+
D, [2015-12-19T12:22:58.381881 #20872] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
72
|
+
D, [2015-12-19T12:22:59.387072 #20872] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
73
|
+
D, [2015-12-19T12:32:47.923617 #21050] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
74
|
+
D, [2015-12-19T12:32:48.929732 #21050] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
75
|
+
D, [2015-12-19T12:38:58.518353 #21144] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
76
|
+
D, [2015-12-19T12:38:59.531004 #21144] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
77
|
+
D, [2015-12-19T12:45:43.380804 #21389] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
78
|
+
D, [2015-12-19T12:45:44.399059 #21389] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
79
|
+
D, [2015-12-19T12:47:16.693732 #21469] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
80
|
+
D, [2015-12-19T12:47:17.696360 #21469] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
81
|
+
D, [2015-12-19T12:56:08.518115 #21740] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
|
82
|
+
D, [2015-12-19T12:56:09.528030 #21740] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
|
data/test/dummy/log/test.log
CHANGED
@@ -7301,3 +7301,187 @@ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
|
|
7301
7301
|
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1
|
7302
7302
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7303
7303
|
Completed in 205ms
|
7304
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7305
|
+
[1m[35m (108.0ms)[0m DROP TABLE "extface_devices"
|
7306
|
+
[1m[36m (65.0ms)[0m [1mCREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7307
|
+
[1m[35m (72.8ms)[0m DROP TABLE "extface_drivers"
|
7308
|
+
[1m[36m (73.6ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
7309
|
+
[1m[35m (64.4ms)[0m DROP TABLE "extface_jobs"
|
7310
|
+
[1m[36m (70.4ms)[0m [1mCREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) [0m
|
7311
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7312
|
+
[1m[36m (91.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
7313
|
+
[1m[35m (89.3ms)[0m DROP TABLE "extface_serial_configs"
|
7314
|
+
[1m[36m (70.4ms)[0m [1mCREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7315
|
+
[1m[35m (64.5ms)[0m DROP TABLE "shops"
|
7316
|
+
[1m[36m (65.5ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
7317
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
7318
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7319
|
+
[1m[35m (112.4ms)[0m DROP TABLE "extface_devices"
|
7320
|
+
[1m[36m (65.2ms)[0m [1mCREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7321
|
+
[1m[35m (72.4ms)[0m DROP TABLE "extface_drivers"
|
7322
|
+
[1m[36m (65.2ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
7323
|
+
[1m[35m (64.5ms)[0m DROP TABLE "extface_jobs"
|
7324
|
+
[1m[36m (62.3ms)[0m [1mCREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) [0m
|
7325
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7326
|
+
[1m[36m (75.2ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
7327
|
+
[1m[35m (64.9ms)[0m DROP TABLE "extface_serial_configs"
|
7328
|
+
[1m[36m (65.6ms)[0m [1mCREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7329
|
+
[1m[35m (64.7ms)[0m DROP TABLE "shops"
|
7330
|
+
[1m[36m (57.3ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
7331
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
7332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7333
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
|
7334
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962, 258259918)[0m
|
7335
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374, 599072141)
|
7336
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
7337
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962, 'Shop', 980190962, 258259918)
|
7338
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374, 'Shop', 980190962, 599072141)[0m
|
7339
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_fp550', 'Datect FP550', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 229906743, 'Shop', 980190962, 229906743)
|
7340
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 40760454, 'Shop', 980190962, 40760454)[0m
|
7341
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
|
7342
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 258259918)[0m
|
7343
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 412842077)
|
7344
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 599072141)[0m
|
7345
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 229906743)
|
7346
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 40760454)[0m
|
7347
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
7348
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962)[0m
|
7349
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374)
|
7350
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
7351
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962)
|
7352
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374)[0m
|
7353
|
+
[1m[35m (65.0ms)[0m commit transaction
|
7354
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7355
|
+
--------------------------------------------------------
|
7356
|
+
Extface::Driver::DaisyFx1200Test: test_sequence_mismatch
|
7357
|
+
--------------------------------------------------------
|
7358
|
+
[1m[35mExtface::Driver Load (0.5ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
|
7359
|
+
[1m[36mExtface::Device Load (0.4ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1[0m [["driver_id", 40760454]]
|
7360
|
+
[1m[35mExtface::Job Load (0.3ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
7361
|
+
[1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 40760454]]
|
7362
|
+
[1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
|
7363
|
+
[1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 40760454]]
|
7364
|
+
[1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
|
7365
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
7366
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7367
|
+
[1m[35m (91.9ms)[0m DROP TABLE "extface_devices"
|
7368
|
+
[1m[36m (68.1ms)[0m [1mCREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7369
|
+
[1m[35m (64.6ms)[0m DROP TABLE "extface_drivers"
|
7370
|
+
[1m[36m (62.6ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
7371
|
+
[1m[35m (59.3ms)[0m DROP TABLE "extface_jobs"
|
7372
|
+
[1m[36m (70.4ms)[0m [1mCREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) [0m
|
7373
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7374
|
+
[1m[36m (64.4ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
7375
|
+
[1m[35m (59.3ms)[0m DROP TABLE "extface_serial_configs"
|
7376
|
+
[1m[36m (62.0ms)[0m [1mCREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7377
|
+
[1m[35m (57.0ms)[0m DROP TABLE "shops"
|
7378
|
+
[1m[36m (57.3ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
7379
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
7380
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7381
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
|
7382
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962, 258259918)[0m
|
7383
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374, 599072141)
|
7384
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
7385
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962, 'Shop', 980190962, 258259918)
|
7386
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374, 'Shop', 980190962, 599072141)[0m
|
7387
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_fp550', 'Datect FP550', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 229906743, 'Shop', 980190962, 229906743)
|
7388
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 40760454, 'Shop', 980190962, 40760454)[0m
|
7389
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
|
7390
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 258259918)[0m
|
7391
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 412842077)
|
7392
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 599072141)[0m
|
7393
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 229906743)
|
7394
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 40760454)[0m
|
7395
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
7396
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962)[0m
|
7397
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374)
|
7398
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
7399
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962)
|
7400
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374)[0m
|
7401
|
+
[1m[35m (50.1ms)[0m commit transaction
|
7402
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7403
|
+
--------------------------------------------------------
|
7404
|
+
Extface::Driver::DaisyFx1200Test: test_sequence_mismatch
|
7405
|
+
--------------------------------------------------------
|
7406
|
+
[1m[35mExtface::Driver Load (0.3ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
|
7407
|
+
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1[0m [["driver_id", 40760454]]
|
7408
|
+
[1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
7409
|
+
[1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 40760454]]
|
7410
|
+
[1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
|
7411
|
+
[1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 40760454]]
|
7412
|
+
[1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
|
7413
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7415
|
+
[1m[35m (143.8ms)[0m DROP TABLE "extface_devices"
|
7416
|
+
[1m[36m (57.1ms)[0m [1mCREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7417
|
+
[1m[35m (56.5ms)[0m DROP TABLE "extface_drivers"
|
7418
|
+
[1m[36m (56.9ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
7419
|
+
[1m[35m (50.9ms)[0m DROP TABLE "extface_jobs"
|
7420
|
+
[1m[36m (54.0ms)[0m [1mCREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) [0m
|
7421
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7422
|
+
[1m[36m (64.4ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
7423
|
+
[1m[35m (59.2ms)[0m DROP TABLE "extface_serial_configs"
|
7424
|
+
[1m[36m (62.2ms)[0m [1mCREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7425
|
+
[1m[35m (64.7ms)[0m DROP TABLE "shops"
|
7426
|
+
[1m[36m (65.4ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
7427
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
7428
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7429
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
|
7430
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962, 258259918)[0m
|
7431
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374, 599072141)
|
7432
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
7433
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962, 'Shop', 980190962, 258259918)
|
7434
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374, 'Shop', 980190962, 599072141)[0m
|
7435
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_fp550', 'Datect FP550', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 229906743, 'Shop', 980190962, 229906743)
|
7436
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 40760454, 'Shop', 980190962, 40760454)[0m
|
7437
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
|
7438
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 258259918)[0m
|
7439
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 412842077)
|
7440
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 599072141)[0m
|
7441
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 229906743)
|
7442
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 40760454)[0m
|
7443
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
7444
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962)[0m
|
7445
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374)
|
7446
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
7447
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962)
|
7448
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374)[0m
|
7449
|
+
[1m[35m (72.0ms)[0m commit transaction
|
7450
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7451
|
+
--------------------------------------------
|
7452
|
+
Extface::Driver::DaisyFx1200Test: test_fsend
|
7453
|
+
--------------------------------------------
|
7454
|
+
[1m[35mExtface::Driver Load (0.4ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
|
7455
|
+
[1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1[0m [["driver_id", 40760454]]
|
7456
|
+
[1m[35mExtface::Job Load (0.3ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
7457
|
+
[1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 40760454]]
|
7458
|
+
[1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
|
7459
|
+
[1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 40760454]]
|
7460
|
+
[1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
|
7461
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7462
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7463
|
+
---------------------------------------------
|
7464
|
+
Extface::Driver::DaisyFx1200Test: test_handle
|
7465
|
+
---------------------------------------------
|
7466
|
+
[1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1[0m [["id", 40760454]]
|
7467
|
+
[1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
|
7468
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7469
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7470
|
+
-----------------------------------------------------
|
7471
|
+
Extface::Driver::DaisyFx1200Test: test_response_frame
|
7472
|
+
-----------------------------------------------------
|
7473
|
+
[1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1[0m [["id", 40760454]]
|
7474
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
|
7475
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7476
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7477
|
+
--------------------------------------------------------
|
7478
|
+
Extface::Driver::DaisyFx1200Test: test_sequence_mismatch
|
7479
|
+
--------------------------------------------------------
|
7480
|
+
[1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1[0m [["id", 40760454]]
|
7481
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
|
7482
|
+
[1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
7483
|
+
[1m[35mExtface::Job Load (0.3ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
|
7484
|
+
[1m[36mExtface::Job Load (0.3ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1[0m [["device_id", 40760454]]
|
7485
|
+
[1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
|
7486
|
+
[1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1[0m [["device_id", 40760454]]
|
7487
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
@@ -55,6 +55,22 @@ module Extface
|
|
55
55
|
job_thread.join
|
56
56
|
assert @driver.errors.empty?
|
57
57
|
end
|
58
|
+
|
59
|
+
test "sequence mismatch" do
|
60
|
+
job = extface_jobs(:one)
|
61
|
+
job_thread = Thread.new do
|
62
|
+
@driver.set_job(job)
|
63
|
+
result = @driver.fsend(0x2C) # paper move command
|
64
|
+
end
|
65
|
+
simulate_device_pull(job)
|
66
|
+
@driver.handle("\x01\x31\x20\x4A\x88\x80\xC0\x80\x80\xB8\x04\x88\x80\xC0\x80\x80\xB8\x05\x30\x37\x3A\x34\x03")
|
67
|
+
simulate_device_pull(job)
|
68
|
+
@driver.handle("\x01\x31\x20\x4A\x88\x80\xC0\x80\x80\xB8\x04\x88\x80\xC0\x80\x80\xB8\x05\x30\x37\x3A\x34\x03")
|
69
|
+
simulate_device_pull(job)
|
70
|
+
@driver.handle("\x01\x38\x21\x30\x30\x30\x30\x30\x33\x37\x2C\x30\x30\x30\x30\x33\x36\x04\x80\x80\x88\x80\x80\xB8\x05\x30\x36\x35\x31\x03")
|
71
|
+
job_thread.join
|
72
|
+
assert @driver.errors.empty?
|
73
|
+
end
|
58
74
|
end
|
59
75
|
end
|
60
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Vangelov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- test/dummy/log/extface/229906743/fp550.log.20150819
|
193
193
|
- test/dummy/log/extface/229906743/fp550.log.20151218
|
194
194
|
- test/dummy/log/extface/40760454/daisy_fx1200.log
|
195
|
+
- test/dummy/log/extface/40760454/daisy_fx1200.log.20151219
|
195
196
|
- test/dummy/log/test.log
|
196
197
|
- test/dummy/public/404.html
|
197
198
|
- test/dummy/public/422.html
|
@@ -289,6 +290,7 @@ test_files:
|
|
289
290
|
- test/dummy/tmp/cache/assets/test/sprockets/e696ab595fbf956db2bdc4e9093d8f5f
|
290
291
|
- test/dummy/config.ru
|
291
292
|
- test/dummy/log/extface/40760454/daisy_fx1200.log
|
293
|
+
- test/dummy/log/extface/40760454/daisy_fx1200.log.20151219
|
292
294
|
- test/dummy/log/extface/229906743/fp550.log.20150819
|
293
295
|
- test/dummy/log/extface/229906743/fp550.log.20150519
|
294
296
|
- test/dummy/log/extface/229906743/fp550.log
|