ardtweeno 0.0.2 → 0.2.5

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.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +179 -1
  3. data/COPYING +4 -3
  4. data/Gemfile +29 -0
  5. data/Gemfile.lock +76 -0
  6. data/INSTALL +12 -0
  7. data/Procfile +1 -0
  8. data/README.md +26 -2
  9. data/Rakefile +14 -7
  10. data/lib/ardtweeno/api.rb +542 -0
  11. data/lib/ardtweeno/configreader.rb +65 -0
  12. data/lib/ardtweeno/db.rb +51 -0
  13. data/lib/ardtweeno/dispatcher.rb +538 -0
  14. data/lib/ardtweeno/exceptions.rb +33 -0
  15. data/lib/ardtweeno/node.rb +117 -0
  16. data/lib/ardtweeno/nodemanager.rb +300 -0
  17. data/lib/ardtweeno/packet.rb +98 -0
  18. data/lib/ardtweeno/restapi.rb +266 -0
  19. data/lib/ardtweeno/serialparser.rb +221 -0
  20. data/lib/ardtweeno.rb +120 -1
  21. data/public/glossy_green_button.svg +123 -0
  22. data/public/glossy_red_button.svg +75 -0
  23. data/public/main.css +129 -0
  24. data/public/raspberrypi.jpg +0 -0
  25. data/resources/conf.yaml +41 -0
  26. data/resources/nodelist.yaml +26 -0
  27. data/resources/serialparser.js +84 -0
  28. data/test/api_test.rb +255 -0
  29. data/test/dispatcher_test.rb +115 -0
  30. data/test/node_test.rb +105 -0
  31. data/test/nodemanager_test.rb +167 -0
  32. data/test/packet_test.rb +75 -0
  33. data/test/parser_test.rb +147 -0
  34. data/test/post_watch +11 -0
  35. data/test/rest_api_test.rb +248 -0
  36. data/test/run_mock +17 -0
  37. data/test/run_packet_push +14 -0
  38. data/test/serialport_mock.rb +43 -0
  39. data/test/test_helper.rb +15 -0
  40. data/test/tty0tty-1.1/AUTHORS +1 -0
  41. data/test/tty0tty-1.1/COPYING +340 -0
  42. data/test/tty0tty-1.1/INSTALL +18 -0
  43. data/test/tty0tty-1.1/README +52 -0
  44. data/test/tty0tty-1.1/THANKS +4 -0
  45. data/test/tty0tty-1.1/TODO +3 -0
  46. data/test/tty0tty-1.1/VERSION +4 -0
  47. data/test/tty0tty-1.1/module/Makefile +41 -0
  48. data/{bin/ardtweeno → test/tty0tty-1.1/module/Module.symvers} +0 -0
  49. data/test/tty0tty-1.1/module/modules.order +1 -0
  50. data/test/tty0tty-1.1/module/tty0tty.c +678 -0
  51. data/test/tty0tty-1.1/module/tty0tty.ko +0 -0
  52. data/test/tty0tty-1.1/module/tty0tty.mod.c +51 -0
  53. data/test/tty0tty-1.1/module/tty0tty.mod.o +0 -0
  54. data/test/tty0tty-1.1/module/tty0tty.o +0 -0
  55. data/test/tty0tty-1.1/pts/Makefile +10 -0
  56. data/test/tty0tty-1.1/pts/tty0tty +0 -0
  57. data/test/tty0tty-1.1/pts/tty0tty.c +222 -0
  58. data/views/createpost.erb +45 -0
  59. data/views/home.erb +59 -0
  60. metadata +89 -37
  61. data/README +0 -1
  62. data/test/Rakefile +0 -6
  63. data/test/features/ardtweeno.feature +0 -14
  64. data/test/features/step_definitions/ardtweeno_steps.rb +0 -24
@@ -0,0 +1,18 @@
1
+ Installation:
2
+
3
+ pts:
4
+ make -To compile
5
+ ./tty0tty -To run
6
+
7
+
8
+ module:
9
+ make -To compile
10
+ insmod tty0tty.ko -To load module (using root or sudo)
11
+
12
+
13
+ this version is not auto installable
14
+
15
+
16
+ Requirements:
17
+
18
+ for module build is necessary kernel-headers or kernel source
@@ -0,0 +1,52 @@
1
+
2
+
3
+ tty0tty - linux null modem emulator v1.1
4
+
5
+
6
+ This is the tty0tty directory tree:
7
+
8
+ module - linux kernel module null-modem
9
+ pts - null-modem using ptys (without handshake lines)
10
+
11
+
12
+ pts (unix98):
13
+
14
+ When run connect two pseudo-ttys and show the connection names:
15
+
16
+ (/dev/pts/1) <=> (/dev/pts/2)
17
+
18
+ the connection is:
19
+
20
+ TX -> RX
21
+ RX <- TX
22
+
23
+
24
+
25
+ module:
26
+
27
+ The module is tested in kernel 3.2.13 (debian)
28
+
29
+ When loaded, create 8 ttys interconnected:
30
+ /dev/tnt0 <=> /dev/tnt1
31
+ /dev/tnt2 <=> /dev/tnt3
32
+ /dev/tnt4 <=> /dev/tnt5
33
+ /dev/tnt6 <=> /dev/tnt7
34
+
35
+ the connection is:
36
+
37
+ TX -> RX
38
+ RX <- TX
39
+ RTS -> CTS
40
+ CTS <- RTS
41
+ DSR <- DTR
42
+ CD <- DTR
43
+ DTR -> DSR
44
+ DTR -> CD
45
+
46
+
47
+ Requirements:
48
+
49
+ for module build is necessary kernel-headers or kernel source
50
+
51
+
52
+ For e-mail suggestions : lcgamboa@yahoo.com
@@ -0,0 +1,4 @@
1
+ Special Thanks:
2
+
3
+ * Jesus
4
+ for my life
@@ -0,0 +1,3 @@
1
+
2
+ implement wake_up_interruptible(&tp->wait) on every change of MSR register to TIOCMIWAIT work
3
+
@@ -0,0 +1,4 @@
1
+ PACKAGE=tty0tty
2
+ MAINVER=1
3
+ MINORVER=1
4
+ VERSION=1.1
@@ -0,0 +1,41 @@
1
+ # Comment/uncomment the following line to disable/enable debugging
2
+ DEBUG = y
3
+
4
+
5
+ # Add your debugging flag (or not) to CFLAGS
6
+ ifeq ($(DEBUG),y)
7
+ DEBFLAGS = -O -g -DSCULL_DEBUG # "-O" is needed to expand inlines
8
+ else
9
+ DEBFLAGS = -O2
10
+ endif
11
+
12
+ EXTRA_CFLAGS += $(DEBFLAGS) -I..
13
+
14
+ ifneq ($(KERNELRELEASE),)
15
+ # call from kernel build system
16
+
17
+ #obj-m := tiny_tty.o tiny_serial.o tty0tty.o
18
+ obj-m := tty0tty.o
19
+
20
+ else
21
+
22
+ KERNELDIR ?= /lib/modules/$(shell uname -r)/build
23
+ PWD := $(shell pwd)
24
+
25
+ default:
26
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
27
+
28
+ endif
29
+
30
+
31
+
32
+ clean:
33
+ rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers
34
+
35
+ depend .depend dep:
36
+ $(CC) $(CFLAGS) -M *.c > .depend
37
+
38
+
39
+ ifeq (.depend,$(wildcard .depend))
40
+ include .depend
41
+ endif
@@ -0,0 +1 @@
1
+ kernel//home/david/Downloads/tty0tty-1.1/module/tty0tty.ko