PDA

View Full Version : Send IR code with GlobalCache GC-100



sonata31
January 4th, 2009, 10:25 AM
I have my lua file with the code :



G_pluginIR = NetRemote.GetPlugin("Infrared");
G_instanceIR = G_pluginIR:GetCurrentInstance();

function SetIRPort(port)
G_instanceIR:SetPortNumber(port);
end;

function SendIRToGC100(codeIR)
G_instanceIR:SendIR(G_instanceIR.PRONTO_STRING, false, codeIR);
end;


I have a button with the code :



SetIRPort(0);
SendIRToGC100(G_instanceIR.PRONTO_STRING, false, "0000 0073 0000 0015 0060 0020 0010 001F 0010 000F 0010 000F 0010 001F 0020 0010 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0020 0010 0010 001F 0010 000F 0010 02D7");


When I select the button no IR code is sent (the led is not flashing)

I have tested the GC-100 with utility and all is ook

Barf
January 5th, 2009, 03:10 PM
It strikes me that you define SendIrToGC100 as a function with one parameter and then call it with three parameters.

sonata31
January 5th, 2009, 06:04 PM
It strikes me that you define SendIrToGC100 as a function with one parameter and then call it with three parameters.

oops ! You are right !

Rob H
January 5th, 2009, 07:16 PM
Good catch there Barf!

sonata31
January 6th, 2009, 02:40 AM
Good catch there Barf!

Yes, but I have always the problem, no IR code is sent

I have corrected my code :



SetIRPort(0);
SendIRToGC100("0000 0073 0000 0015 0060 0020 0010 001F 0010 000F 0010 000F 0010 001F 0020 0010 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0010 000F 0020 0010 0010 001F 0010 000F 0010 02D7");

Barf
January 6th, 2009, 04:17 AM
At this point, I would use tcpdump (or a similar program) to "sniff" the LAN in order to see what reaches the GlobalCache. For example:



# tcpdump -A host globalcache
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
10:11:52.088782 IP delta.42112 > globalcache.4998: S 1176337455:1176337455(0) win 5840 <mss 1460,sackOK,timestamp 25035544 0,nop,wscale 7>
E..<.7@.@.7........F....F.|/...................
.~..........
10:11:52.093551 IP globalcache.4998 > delta.42112: S 547:547(0) ack 1176337456 win 1024 <mss 1024>
E..,.b..d......F...........#F.|0`...........leteir
10:11:52.093579 IP delta.42112 > globalcache.4998: . ack 1 win 5840
E..(.8@.@.7........F....F.|0...$P.......
10:11:52.094859 IP delta.42112 > globalcache.4998: P 1:104(103) ack 1 win 5840
E....9@.@.7........F....F.|0...$P.......sendir,2:1 ,0,36044,1,1,32,32,64,32,32,32,3
10:11:52.102154 IP globalcache.4998 > delta.42112: . ack 104 win 1024
E..(.c..d......F...........$F.|.P....[......leteir
10:11:52.234274 IP globalcache.4998 > delta.42112: P 1:18(17) ack 104 win 1024
E..9.d..d......F...........$F.|.P.......completeir ,2:1,0
10:11:52.234305 IP delta.42112 > globalcache.4998: . ack 18 win 5840
E..(.:@.@.7........F....F.|....5P....z..
10:11:52.234518 IP delta.42112 > globalcache.4998: F 104:104(0) ack 18 win 5840
E..(.;@.@.7........F....F.|....5P....y..
10:11:52.240716 IP globalcache.4998 > delta.42112: F 18:18(0) ack 105 win 1024
E..(.e..d......F...........5F.|.P....H..completeir
10:11:52.240733 IP delta.42112 > globalcache.4998: . ack 19 win 5840
E..(.<@.@.7........F....F.|....6P....x..

(globalcache is the host name of the GlobalCache box, the sender computer is called delta, and it sends the RC5 code with devicecode 0 and commandnumber 1 to the leftmost GC port (called "1" by GlobalCache, "0" by NetRemote if I remember correctly.).)

sonata31
January 6th, 2009, 07:59 AM
At this point, I would use tcpdump (or a similar program) to "sniff" the LAN in order to see what reaches the GlobalCache. For example:



# tcpdump -A host globalcache
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
10:11:52.088782 IP delta.42112 > globalcache.4998: S 1176337455:1176337455(0) win 5840 <mss 1460,sackOK,timestamp 25035544 0,nop,wscale 7>
E..<.7@.@.7........F....F.|/...................
.~..........
10:11:52.093551 IP globalcache.4998 > delta.42112: S 547:547(0) ack 1176337456 win 1024 <mss 1024>
E..,.b..d......F...........#F.|0`...........leteir
10:11:52.093579 IP delta.42112 > globalcache.4998: . ack 1 win 5840
E..(.8@.@.7........F....F.|0...$P.......
10:11:52.094859 IP delta.42112 > globalcache.4998: P 1:104(103) ack 1 win 5840
E....9@.@.7........F....F.|0...$P.......sendir,2:1 ,0,36044,1,1,32,32,64,32,32,32,3
10:11:52.102154 IP globalcache.4998 > delta.42112: . ack 104 win 1024
E..(.c..d......F...........$F.|.P....[......leteir
10:11:52.234274 IP globalcache.4998 > delta.42112: P 1:18(17) ack 104 win 1024
E..9.d..d......F...........$F.|.P.......completeir ,2:1,0
10:11:52.234305 IP delta.42112 > globalcache.4998: . ack 18 win 5840
E..(.:@.@.7........F....F.|....5P....z..
10:11:52.234518 IP delta.42112 > globalcache.4998: F 104:104(0) ack 18 win 5840
E..(.;@.@.7........F....F.|....5P....y..
10:11:52.240716 IP globalcache.4998 > delta.42112: F 18:18(0) ack 105 win 1024
E..(.e..d......F...........5F.|.P....H..completeir
10:11:52.240733 IP delta.42112 > globalcache.4998: . ack 19 win 5840
E..(.<@.@.7........F....F.|....6P....x..

(globalcache is the host name of the GlobalCache box, the sender computer is called delta, and it sends the RC5 code with devicecode 0 and commandnumber 1 to the leftmost GC port (called "1" by GlobalCache, "0" by NetRemote if I remember correctly.).)

tcpdump est un outil sous linux, je suis sous windows

sonata31
January 6th, 2009, 08:19 AM
I find Windump

sonata31
January 6th, 2009, 10:36 AM
With :

IP of PC (host of Girder) = 172.16.0.1
IP of umpc (client NetRemote) = 172.16.0.2
IP of GC-100 : 172.16.0.3
IP of access point wifi : 172.16.0.231

on the command : windump -i 2 host 172.16.0.2 I get



16:23:29.086433 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
16:23:29.087537 IP tb-netremote.2451 > 239.9.5.75.8910: UDP, length 18
16:23:29.095993 IP tb-netremote.2451 > 239.9.5.75.8910: UDP, length 18
16:23:29.729387 IP tb-netremote.1033 > 172.16.0.231.53: 32907+ PTR? 22.0.0.224.in-addr.arpa. (41)
16:23:29.730831 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
16:23:29.731344 IP tb-netremote.137 > 224.0.0.22.137: UDP, length 50
16:23:29.818191 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
16:23:30.100360 arp who-has 172.16.0.1 tell tb-netremote
16:23:30.101671 IP tb-netremote.2454 > 172.16.0.3.4998: S 2837564670:2837564670(0) win 16384 <mss 1460,nop,nop,sackOK>
16:23:30.102063 arp who-has 172.16.0.1 tell tb-netremote
16:23:30.110069 IP 172.16.0.3.4998 > tb-netremote.2454: S 7:7(0) ack 2837564671 win 1024 <mss 1024>
16:23:30.110115 IP tb-netremote.2454 > 172.16.0.3.4998: . ack 1 win 16384
16:23:30.110698 IP tb-netremote.2454 > 172.16.0.3.4998: P 1:12(11) ack 1 win 16384
16:23:30.118300 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
16:23:30.118730 IP 172.16.0.3.4998 > tb-netremote.2454: . ack 12 win 1024
16:23:30.130192 IP 172.16.0.3.4998 > tb-netremote.2454: P 1:97(96) ack 12 win 1024
16:23:30.318175 IP tb-netremote.2454 > 172.16.0.3.4998: . ack 97 win 16288
16:23:30.818184 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
16:23:31.209198 arp who-has 172.16.0.1 tell tb-netremote
16:23:31.211828 arp who-has 172.16.0.1 tell tb-netremote
16:23:31.224426 IP tb-netremote.137 > 224.0.0.22.137: UDP, length 50
16:23:32.318485 arp who-has 172.16.0.1 tell tb-netremote
16:23:32.319114 arp who-has 172.16.0.1 tell tb-netremote
16:23:32.320198 arp who-has 172.16.0.1 tell tb-netremote
16:23:32.323933 arp who-has 172.16.0.1 tell tb-netremote
16:23:32.724431 IP tb-netremote.137 > 224.0.0.22.137: UDP, length 50
16:23:33.427854 arp who-has 172.16.0.1 tell tb-netremote
16:23:33.428482 arp who-has 172.16.0.1 tell tb-netremote
16:23:33.463439 arp who-has 172.16.0.1 tell tb-netremote
16:23:34.226484 IP tb-netremote.1033 > 172.16.0.231.53: 46731+ PTR? 75.5.9.239.in-addr.arpa. (41)
16:23:34.227959 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
16:23:34.228316 IP tb-netremote.137 > 239.9.5.75.137: UDP, length 50
16:23:34.537348 arp who-has 172.16.0.1 tell tb-netremote
16:23:34.541847 arp who-has 172.16.0.1 tell tb-netremote
16:23:35.646688 arp who-has 172.16.0.1 tell tb-netremote
16:23:35.648476 arp who-has 172.16.0.1 tell tb-netremote
16:23:35.724360 IP tb-netremote.137 > 239.9.5.75.137: UDP, length 50
16:23:36.756029 arp who-has 172.16.0.1 tell tb-netremote
16:23:36.760600 arp who-has 172.16.0.1 tell tb-netremote
16:23:37.224330 IP tb-netremote.137 > 239.9.5.75.137: UDP, length 50
16:23:37.866835 arp who-has 172.16.0.1 tell tb-netremote
16:23:37.872589 arp who-has 172.16.0.1 tell tb-netremote
16:23:38.974639 arp who-has 172.16.0.1 tell tb-netremote
16:23:38.976347 arp who-has 172.16.0.1 tell tb-netremote
16:23:39.725040 IP tb-netremote.1033 > 172.16.0.231.53: 56458+ PTR? 231.0.16.172.in-addr.arpa. (43)
16:23:39.726456 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
16:23:39.726841 IP tb-netremote.137 > 172.16.0.231.137: UDP, length 50
16:23:39.728197 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 137 unreachable, length 36
16:23:40.084236 arp who-has 172.16.0.1 tell tb-netremote
16:23:40.085967 arp who-has 172.16.0.1 tell tb-netremote
16:23:41.224253 IP tb-netremote.137 > 172.16.0.231.137: UDP, length 50
16:23:41.226194 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 137 unreachable, length 36
16:23:42.021126 arp who-has 172.16.0.1 tell tb-netremote
16:23:42.025693 arp who-has 172.16.0.1 tell tb-netremote
16:23:42.724231 IP tb-netremote.137 > 172.16.0.231.137: UDP, length 50
16:23:42.726071 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 137 unreachable, length 36
16:23:44.208602 arp who-has 172.16.0.1 tell tb-netremote
16:23:44.214971 arp who-has 172.16.0.1 tell tb-netremote
16:23:44.225062 IP tb-netremote.1033 > 172.16.0.231.53: 63621+ PTR? 1.0.16.172.in-addr.arpa. (41)
16:23:44.226457 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
16:23:44.226817 arp who-has 172.16.0.1 tell tb-netremote
16:23:44.228575 arp who-has 172.16.0.1 tell tb-netremote
16:23:45.724180 arp who-has 172.16.0.1 tell tb-netremote
16:23:45.725825 arp who-has 172.16.0.1 tell tb-netremote
16:23:47.224150 arp who-has 172.16.0.1 tell tb-netremote
16:23:47.225695 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.458958 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.459090 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.459869 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.460699 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.461436 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.467815 arp who-has 172.16.0.1 tell tb-netremote
16:23:48.724795 IP tb-netremote.1033 > 172.16.0.231.53: 27271+ PTR? 3.0.16.172.in-addr.arpa. (41)
16:23:48.726204 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
16:23:48.726558 IP tb-netremote.137 > 172.16.0.3.137: UDP, length 50
16:23:50.224097 IP tb-netremote.137 > 172.16.0.3.137: UDP, length 50
16:23:50.552568 arp who-has 172.16.0.1 tell tb-netremote
16:23:50.554222 arp who-has 172.16.0.1 tell tb-netremote
16:23:51.724070 IP tb-netremote.137 > 172.16.0.3.137: UDP, length 50
16:23:52.646277 arp who-has 172.16.0.1 tell tb-netremote
16:23:52.646903 arp who-has 172.16.0.1 tell tb-netremote
16:23:52.648087 arp who-has 172.16.0.1 tell tb-netremote
16:23:52.654057 arp who-has 172.16.0.1 tell tb-netremote
16:23:54.740038 arp who-has 172.16.0.1 tell tb-netremote
16:23:54.741723 arp who-has 172.16.0.1 tell tb-netremote
16:23:56.837578 arp who-has 172.16.0.1 tell tb-netremote
16:23:56.838335 arp who-has 172.16.0.1 tell tb-netremote
16:23:56.839341 arp who-has 172.16.0.1 tell tb-netremote
16:23:56.842882 arp who-has 172.16.0.1 tell tb-netremote
16:23:58.927450 arp who-has 172.16.0.1 tell tb-netremote
16:23:58.931977 arp who-has 172.16.0.1 tell tb-netremote
16:24:01.021369 arp who-has 172.16.0.1 tell tb-netremote
16:24:01.022019 arp who-has 172.16.0.1 tell tb-netremote
16:24:01.023075 arp who-has 172.16.0.1 tell tb-netremote
16:24:01.026572 arp who-has 172.16.0.1 tell tb-netremote
16:24:03.114932 arp who-has 172.16.0.1 tell tb-netremote
16:24:03.116592 arp who-has 172.16.0.1 tell tb-netremote
16:24:05.208564 arp who-has 172.16.0.1 tell tb-netremote
16:24:05.209204 arp who-has 172.16.0.1 tell tb-netremote
16:24:05.210347 arp who-has 172.16.0.1 tell tb-netremote
16:24:05.213816 arp who-has 172.16.0.1 tell tb-netremote
16:24:07.302438 arp who-has 172.16.0.1 tell tb-netremote
16:24:07.304095 arp who-has 172.16.0.1 tell tb-netremote
16:24:09.396482 arp who-has 172.16.0.1 tell tb-netremote
16:24:09.404946 arp who-has 172.16.0.1 tell tb-netremote
16:24:11.489696 arp who-has 172.16.0.1 tell tb-netremote
16:24:11.494970 arp who-has 172.16.0.1 tell tb-netremote
16:24:13.583890 arp who-has 172.16.0.1 tell tb-netremote
16:24:15.677333 arp who-has 172.16.0.1 tell tb-netremote
16:24:15.681076 arp who-has 172.16.0.1 tell tb-netremote
16:24:17.130904 IP tb-netremote.2454 > 172.16.0.3.4998: F 12:12(0) ack 97 win 16288
16:24:17.136907 IP 172.16.0.3.4998 > tb-netremote.2454: F 97:97(0) ack 13 win 1024
16:24:17.136955 IP tb-netremote.2454 > 172.16.0.3.4998: . ack 98 win 16288


but I don't know what to do with it

sonata31
January 6th, 2009, 10:51 AM
with windump -i 2 - A host 172.16.0.2 I get



16:42:00.754370 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
F..(.......y............"............ .K
16:42:00.755279 IP tb-netremote.2857 > 239.9.5.75.8910: UDP, length 18
E..../....
*..... .K.)"....k....C.GETLISTENERS
16:42:00.760110 IP tb-netremote.2857 > 239.9.5.75.8910: UDP, length 18
E..../....
*..... .K.)"....k....C.GETLISTENERS
16:42:00.830392 IP tb-netremote.1033 > 172.16.0.231.53: 31878+ PTR? 22.0.0.224.in-addr.arpa. (41)
E..E.0.....n......... .5.1.?|............22.0.0.224.in-addr.arpa.....
16:42:00.832107 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
E..8....@..&................E..E.0............... .5.1..
16:42:00.832549 IP tb-netremote.137 > 224.0.0.22.137: UDP, length 50
E..N.1.....F.............:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:01.326175 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
F..(.2.....u............"............ .K
16:42:01.764479 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:01.765275 IP tb-netremote.2860 > 172.16.0.3.4998: S 3565004553:3565004553(0) win 16384 <mss 1460,nop,nop,sackOK>
E..0.6@....l.........,...}. ....p.@.P...........
16:42:01.766164 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:01.774119 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
F..(.8.....o............"............ .K
16:42:01.779282 IP 172.16.0.3.4998 > tb-netremote.2860: S 9:9(0) ack 3565004554 win 1024 <mss 1024>
E..,.a..d..E...........,... .}.
`....a......_000C1
16:42:01.779322 IP tb-netremote.2860 > 172.16.0.3.4998: . ack 1 win 16384
E..(.9@....q.........,...}.
...
P.@.}j..
16:42:01.779985 IP tb-netremote.2860 > 172.16.0.3.4998: P 1:12(11) ack 1 win 16384
E..3.:@....e.........,...}.
...
P.@.`@..getdevices
16:42:01.787383 IP 172.16.0.3.4998 > tb-netremote.2860: . ack 12 win 1024
E..(.b..d..H...........,...
.}..P...._......_000C1
16:42:01.798886 IP 172.16.0.3.4998 > tb-netremote.2860: P 1:97(96) ack 12 win 1024
E....c..d..............,...
.}..P...fT..device,1,1 SERIAL
device,2,1 SERIAL
device
16:42:02.013650 IP tb-netremote.2860 > 172.16.0.3.4998: . ack 97 win 16288
E..(.;@....o.........,...}.....jP.?.}_..
16:42:02.326186 IP tb-netremote.137 > 224.0.0.22.137: UDP, length 50
E..N.>.....9.............:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:02.326359 IP tb-netremote > 224.0.0.22: igmp v3 report, 1 group record(s)
F..(.?.....h............"............ .K
16:42:02.873302 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:02.875001 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:03.826128 IP tb-netremote.137 > 224.0.0.22.137: UDP, length 50
E..N.D.....3.............:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:03.982813 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:03.984535 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:05.092078 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:05.093788 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:05.328485 IP tb-netremote.1033 > 172.16.0.231.53: 44678+ PTR? 75.5.9.239.in-addr.arpa. (41)
E..E.O.....O......... .5.1.9.............75.5.9.239.in-addr.arpa.....
16:42:05.330267 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
E..8....@..%................E..E.O............... .5.1..
16:42:05.330864 IP tb-netremote.137 > 239.9.5.75.137: UDP, length 50
E..N.P.... ...... .K.....:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:06.201415 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:06.203085 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:06.826044 IP tb-netremote.137 > 239.9.5.75.137: UDP, length 50
E..N.W.... ...... .K.....:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:07.311209 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:07.311856 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:07.312911 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:07.319008 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:08.326005 IP tb-netremote.137 > 239.9.5.75.137: UDP, length 50
E..N.^.... ...... .K.....:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:08.420083 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:08.420707 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:08.421768 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:08.425262 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:09.529502 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:09.531165 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:10.638800 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:10.640429 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:10.826556 IP tb-netremote.1033 > 172.16.0.231.53: 6785+ PTR? 231.0.16.172.in-addr.arpa. (43)
E..G.l.....0......... .5.3g..............231.0.16.172.in-addr.arpa.....
16:42:10.828014 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
E..8....@..$................E..G.l............... .5.3..
16:42:10.828375 IP tb-netremote.137 > 172.16.0.231.137: UDP, length 50
E..N.m.....(.............:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:10.829764 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 137 unreachable, length 36
E..8....@..#................E..N.m................ ...:..
16:42:11.748148 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:11.749912 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:12.325925 IP tb-netremote.137 > 172.16.0.231.137: UDP, length 50
E..N.r.....#.............:.............. CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:12.327392 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 137 unreachable, length 36
E..8....@.."................E..N.r...................:..
16:42:13.279004 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:13.280759 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:13.825865 IP tb-netremote.137 > 172.16.0.231.137: UDP, length 50
E..N.t.....!.............:... .......... CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:13.827396 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 137 unreachable, length 36
E..8....@..!................E..N.t................ ...:..
16:42:15.326606 IP tb-netremote.1033 > 172.16.0.231.53: 23680+ PTR? 1.0.16.172.in-addr.arpa. (41)
E..E.y.....%......... .5.1Z.\............1.0.16.172.in-addr.arpa.....
16:42:15.328141 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
E..8....@.. ................E..E.y............... .5.1..
16:42:15.328508 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:15.333647 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:16.341415 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:16.343033 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:18.029353 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:18.031043 arp who-has 172.16.0.1 tell tb-netremote


then continuation on the next post

sonata31
January 6th, 2009, 10:52 AM
the continuation ...



...........}2...............
16:42:19.826389 IP tb-netremote.1033 > 172.16.0.231.53: 5251+ PTR? 3.0.16.172.in-addr.arpa. (41)
E..E................. .5.1...............3.0.16.172.in-addr.arpa.....
16:42:19.829142 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
E..8....@...................E..E................. .5.1..
16:42:19.829504 IP tb-netremote.137 > 172.16.0.3.137: UDP, length 50
E..N.....................:...$.......... CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:20.122927 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:20.123563 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:20.124517 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:20.128390 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:21.325658 IP tb-netremote.137 > 172.16.0.3.137: UDP, length 50
E..N.....................:...%.......... CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:22.216635 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:22.218291 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:22.825626 IP tb-netremote.137 > 172.16.0.3.137: UDP, length 50
E..N.....................:...&.......... CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..!..
16:42:24.310453 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:24.311094 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:24.312151 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:24.315882 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:26.404889 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:26.406526 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:28.497745 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:28.498374 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:28.499897 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:28.500508 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:30.591418 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:30.593547 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:32.685472 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:32.686105 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:32.687278 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:32.690638 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:34.779050 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:34.780668 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:36.872777 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:36.874536 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:38.966439 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:38.968157 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:41.060189 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:41.061897 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:43.153717 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:43.155520 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:45.247674 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:45.249396 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:45.403497 IP tb-netremote.138 > 172.16.255.255.138: UDP, length 201
E..............................'.......... FEECCNEOEFFEFCEFENEPFEEFCACACACA. FHEPF
16:42:45.406905 IP tb-netremote.138 > 172.16.255.255.138: UDP, length 201
E..............................'.......... FEECCNEOEFFEFCEFENEPFEEFCACACACA. FHEPF
16:42:46.325660 IP tb-netremote.1033 > 172.16.0.231.53: 12419+ PTR? 255.255.16.172.in-addr.arpa. (45)
E..I................. .5.5.k0............255.255.16.172.in-addr.arpa.....
16:42:46.327285 IP 172.16.0.231 > tb-netremote: ICMP 172.16.0.231 udp port 53 unreachable, length 36
E..8....@..............6....E..I................. .5.5..
16:42:47.341246 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:47.345802 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:49.434959 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:49.436644 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:51.528438 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:51.530165 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:53.623551 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:53.625274 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:55.715884 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:55.717674 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:57.809793 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:57.811528 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:59.903272 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:42:59.904938 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:01.997268 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:01.999043 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:04.090633 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:04.092294 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:06.184644 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:06.186277 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:08.277961 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:08.279669 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:10.371913 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:10.374899 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:12.467487 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:12.472282 arp who-has 172.16.0.1 tell tb-netremote
...........}2...............
16:43:15.534401 IP tb-netremote.2860 > 172.16.0.3.4998: F 12:12(0) ack 97 win 16288
E..(.A@....i.........,...}.....jP.?.}^..
16:43:15.539979 IP 172.16.0.3.4998 > tb-netremote.2860: F 97:97(0) ack 13 win 1024
E..(.f..d..D...........,...j.}..P.......C100_000C1
16:43:15.540028 IP tb-netremote.2860 > 172.16.0.3.4998: . ack 98 win 16288
E..(.B@....h.........,...}.....kP.?.}]..

Rob H
January 6th, 2009, 01:42 PM
Can you check the NRD console for any error messages (may even be better to use DebugView for this). It's possible that there is a problem parsing the IR code.

Barf
January 6th, 2009, 03:47 PM
This is what I read out from the logs:

NR sends the "getdevices" command to the GC (port 4998), and gets back a listiing of the "devices" that particular GC has (middle of your second listing). So far so good. NR interogates the GC of its capacities, successfully. Then I expect a "sendir"-command (see my first log, around line 10). This never occurs, either because the logging is incomplete, or while NR never sends it.

Try to find settings for your sniffer program that only listen on 172.16.0.3, port 4998, both directions, without truncating the data, and post the outcome.

Unless, of course, Rob H's suggestion brings out the answer.

sonata31
January 7th, 2009, 04:29 AM
At this point, I would use tcpdump (or a similar program) to "sniff" the LAN in order to see what reaches the GlobalCache. For example:



# tcpdump -A host globalcache
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
10:11:52.088782 IP delta.42112 > globalcache.4998: S 1176337455:1176337455(0) win 5840 <mss 1460,sackOK,timestamp 25035544 0,nop,wscale 7>
E..<.7@.@.7........F....F.|/...................
.~..........
10:11:52.093551 IP globalcache.4998 > delta.42112: S 547:547(0) ack 1176337456 win 1024 <mss 1024>
E..,.b..d......F...........#F.|0`...........leteir
10:11:52.093579 IP delta.42112 > globalcache.4998: . ack 1 win 5840
E..(.8@.@.7........F....F.|0...$P.......
10:11:52.094859 IP delta.42112 > globalcache.4998: P 1:104(103) ack 1 win 5840
E....9@.@.7........F....F.|0...$P.......sendir,2:1 ,0,36044,1,1,32,32,64,32,32,32,3
10:11:52.102154 IP globalcache.4998 > delta.42112: . ack 104 win 1024
E..(.c..d......F...........$F.|.P....[......leteir
10:11:52.234274 IP globalcache.4998 > delta.42112: P 1:18(17) ack 104 win 1024
E..9.d..d......F...........$F.|.P.......completeir ,2:1,0
10:11:52.234305 IP delta.42112 > globalcache.4998: . ack 18 win 5840
E..(.:@.@.7........F....F.|....5P....z..
10:11:52.234518 IP delta.42112 > globalcache.4998: F 104:104(0) ack 18 win 5840
E..(.;@.@.7........F....F.|....5P....y..
10:11:52.240716 IP globalcache.4998 > delta.42112: F 18:18(0) ack 105 win 1024
E..(.e..d......F...........5F.|.P....H..completeir
10:11:52.240733 IP delta.42112 > globalcache.4998: . ack 19 win 5840
E..(.<@.@.7........F....F.|....6P....x..

(globalcache is the host name of the GlobalCache box, the sender computer is called delta, and it sends the RC5 code with devicecode 0 and commandnumber 1 to the leftmost GC port (called "1" by GlobalCache, "0" by NetRemote if I remember correctly.).)

Can you send me the lua code which drive your GC-100 ?

Barf
January 7th, 2009, 02:51 PM
@sonata31:
actually, that was a Java program... But you can do the same thing in Lua, just use the technique from my contribution in http://www.promixis.com/forums/showthread.php?t=16875
using port 4998 instead, and (for example) this string (RC5/0/1)


sendir,2:1,0,36044,1,1,32,32,64,32,32,32,32,32,32, 32,32,32,32,32,32,32,32,32,32,32,32,32,32,64,32,32 64(for the "small" GC, for the large replace the first "2" by a "4" for the gc-100-12). Note that you have to append a carrage return (\r, 0x13) at the end.

sonata31
January 7th, 2009, 05:26 PM
@sonata31:
actually, that was a Java program... But you can do the same thing in Lua, just use the technique from my contribution in http://www.promixis.com/forums/showthread.php?t=16875
using port 4998 instead, and (for example) this string (RC5/0/1)


sendir,2:1,0,36044,1,1,32,32,64,32,32,32,32,32,32, 32,32,32,32,32,32,32,32,32,32,32,32,32,32,64,32,32 64(for the "small" GC, for the large replace the first "2" by a "4" for the gc-100-12). Note that you have to append a carrage return (\r, 0x13) at the end.

Thank you, I test this

sonata31
January 8th, 2009, 04:32 AM
It's ok with the code :



G_GC100_IP = "172.16.0.3";
G_GC100_PortIR = 4998;
G_socket = require("socket");
G_sock = socket.tcp();
G_sock:connect(G_GC100_IP, G_GC100_PortIR);

function SendPowerTV()
SendEvent("TV");
result = G_sock:send('sendir,4:1,2,37000,1,1,96,32,16,31,16 ,15,16,15,48,48,16,15,16,15,16,15,16,15,16,15,16,1 5,16,15,16,15,16,15,16,15,16,15,16,15,16,15,32,15, 16,732\r');
NetRemote.SetVariable("NR.result", result);
end;

sonata31
January 8th, 2009, 05:24 AM
When I use the IR Learner Utility to learn the IR codes from my TV telco, when I press several times the same button I get different IR codes
How use them ?