kuro-rs 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ === 0.0.2 2011-10-31
2
+
3
+ * modify timeout
4
+
1
5
  === 0.0.1 2011-10-31
2
6
 
3
7
  * newgem kuro-rs
@@ -8,7 +8,6 @@ control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928) and PC-O
8
8
 
9
9
  == SYNOPSIS:
10
10
 
11
-
12
11
  require 'rubygems'
13
12
  require 'kuro-rs'
14
13
 
@@ -26,6 +25,16 @@ control KURO-RS (http://www.kuroutoshikou.com/modules/display/?iid=928) and PC-O
26
25
  kr.close
27
26
 
28
27
 
28
+ == TOOLS:
29
+
30
+ you can use simple command line application.
31
+
32
+ # read
33
+ % kuro-rs /dev.tty.usbserial-0012a3b4
34
+
35
+ # write
36
+ % kuro-rs /dev.tty.usbserial-0012a3b4 ffffffff0300f0e0018083...
37
+
29
38
  == REQUIREMENTS:
30
39
 
31
40
  * KURO-RS or PC-OP-RS1
@@ -10,5 +10,5 @@ Dir.glob(File.dirname(__FILE__)+'/kuro-rs/*.rb').each do |f|
10
10
  end
11
11
 
12
12
  module KuroRs
13
- VERSION = '0.0.1'
13
+ VERSION = '0.0.2'
14
14
  end
@@ -40,7 +40,7 @@ module KuroRs
40
40
  @sp.write 'r'
41
41
  puts 'read mode' if @verbose
42
42
  raise Error.new 'response is not "Y"' unless @sp.getc.chr == 'Y'
43
- timeout(30) do
43
+ timeout(15) do
44
44
  while @sp.getc.chr != 'S' do end
45
45
  end
46
46
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuro-rs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sho Hashimoto