Jump to content

vukomir

Members
  • Gesamte Inhalte

    5
  • Benutzer seit

  • Letzter Besuch

Posts erstellt von vukomir

  1. Hi,

     

    I reinstalled the os(debian) on the BBB and now i can connect with the Brick Viewer over the network and i can switch on and off ITL-210 Dimmer

     

    only it's not working with perl.

    in the Viewer i set the address to 1234 and the unit to 1 with this configuration it works, but if i set the same values in the perl script i get

    root@beaglebone:~/perl/scripts/bricklet/remote_switch# ./example_switch_socket.pl
    Character in 'C' format wrapped in pack at /root/perl/lib/Tinkerforge/Device.pm line 147.
    Press any key to exit...

     

     

    Br,

    Vuko

     

     

     

  2. bellow is the log in debug mode

    2014-07-29 12:38:07.985312 <D> <event|event_posix.c:234> Poll returned 1 event source(s) as ready

    2014-07-29 12:38:07.985863 <D> <event|event_posix.c:260> Handling generic event source (handle: 10, received events: 1) at index 4

    2014-07-29 12:38:07.986327 <D> <network|client.c:412> Creating client from socket (handle: 12)

    2014-07-29 12:38:07.986849 <D> <event|event.c:140> Added generic event source (handle: 12, events: 1) at index 6

    2014-07-29 12:38:07.987207 <I> <network|network.c:105> Added new client (S: 12, T: plain, P: 192.168.0.28, A: disabled)

    2014-07-29 12:38:07.987539 <D> <event|event_posix.c:275> Handled all ready event sources

    2014-07-29 12:38:07.987864 <D> <event|event_posix.c:214> Starting to poll on 7 event source(s)

    2014-07-29 12:38:07.996902 <D> <event|event_posix.c:234> Poll returned 1 event source(s) as ready

    2014-07-29 12:38:07.997352 <D> <event|event_posix.c:260> Handling generic event source (handle: 12, received events: 1) at index 6

    2014-07-29 12:38:07.997750 <D> <network|client.c:303> Got request (U: 1, L: 8, F: 254, S: 2, R: 0) from client (S: 12, T: plain, P: 192.168.0.28, A: disabled)

    2014-07-29 12:38:07.998117 <D> <hardware|hardware.c:102> No stacks connected, dropping request (U: 1, L: 8, F: 254, S: 2, R: 0)

    2014-07-29 12:38:07.998528 <D> <event|event_posix.c:275> Handled all ready event sources

    2014-07-29 12:38:07.998862 <D> <event|event_posix.c:214> Starting to poll on 7 event source(s)

    2014-07-29 12:38:17.989430 <D> <event|event_posix.c:234> Poll returned 1 event source(s) as ready

    2014-07-29 12:38:17.990073 <D> <event|event_posix.c:260> Handling generic event source (handle: 12, received events: 1) at index 6

    2014-07-29 12:38:17.990460 <D> <network|client.c:299> Got disconnect probe from client (S: 12, T: plain, P: 192.168.0.28, A: disabled), dropping request

    2014-07-29 12:38:17.990928 <D> <event|event_posix.c:275> Handled all ready event sources

    2014-07-29 12:38:17.991256 <D> <event|event_posix.c:214> Starting to poll on 7 event source(s)

    2014-07-29 12:38:22.991430 <D> <event|event_posix.c:234> Poll returned 1 event source(s) as ready

    2014-07-29 12:38:22.991974 <D> <event|event_posix.c:260> Handling generic event source (handle: 12, received events: 1) at index 6

    2014-07-29 12:38:22.992356 <D> <network|client.c:299> Got disconnect probe from client (S: 12, T: plain, P: 192.168.0.28, A: disabled), dropping request

    2014-07-29 12:38:22.992828 <D> <event|event_posix.c:275> Handled all ready event sources

    2014-07-29 12:38:22.993165 <D> <event|event_posix.c:214> Starting to poll on 7 event source(s)

    2014-07-29 12:38:27.993656 <D> <event|event_posix.c:234> Poll returned 1 event source(s) as ready

    2014-07-29 12:38:27.994199 <D> <event|event_posix.c:260> Handling generic event source (handle: 12, received events: 1) at index 6

    2014-07-29 12:38:27.994735 <D> <network|client.c:299> Got disconnect probe from client (S: 12, T: plain, P: 192.168.0.28, A: disabled), dropping request

    2014-07-29 12:38:27.995110 <D> <event|event_posix.c:275> Handled all ready event sources

     

  3. HI,

     

    I got a mater bricket and a Remote Switch Bricklet to control Intertechno ITL-210 Dimmer (flush-mounted) B, from windows everything works fine when using

    Brick Viewer

    i installed the service on beagle bone black and from the logs i can see that the master brick was detected when connected to the USB.

     

    i tried using perl exemple to turn on and off the lights but with no success :(

     

    i'm not sure if i'm configuring it the right way.

     

    using example_switch_socket.pl

     

    on the constant UID do i put the master bricket or Remote Switch Bricklet ID?

     

    and i'm not 100% sure on the order of switch_socket(XXX, YYY,$rs->SWITCH_TO_ON);

     

    is the XXX the address from Brick Viewer and YYY is the Unit?

     

    when i run ./example_switch_socket.pl

    root@beaglebone:~/perl/scripts/bricklet/remote_switch# ./example_switch_socket.pl

    Character in 'C' format wrapped in pack at /root/perl/plugin/Tinkerforge/Device.pm line 147.

    Press any key to exit...

     

    and the log file

    2014-07-25 14:02:47.500698 <I> <other|main_linux.c:399> Brick Daemon 2.1.0 started (daemonized)
    2014-07-25 14:02:47.766618 <I> <usb|usb.c:144> Added USB device (bus: 1, device: 2) at index 0: Master Brick [6JLxVA]
    2014-07-25 14:03:53.043673 <I> <network|network.c:105> Added new client (S: 16, T: plain, P: 127.0.0.1, A: disabled)
    2014-07-25 14:03:56.122124 <I> <network|client.c:242> Client (S: 16, T: plain, P: 127.0.0.1, A: disabled) disconnected by peer
    2014-07-25 14:18:29.056831 <I> <usb|usb.c:313> Removing USB device (bus: 1, device: 2) at index 0: Master Brick [6JLxVA]
    2014-07-25 14:18:29.662647 <I> <usb|usb.c:144> Added USB device (bus: 1, device: 3) at index 0: Master Brick [6JLxVA]
    2014-07-25 14:18:41.221222 <I> <network|network.c:105> Added new client (S: 16, T: plain, P: 127.0.0.1, A: disabled)
    2014-07-25 14:18:42.269642 <I> <network|client.c:242> Client (S: 16, T: plain, P: 127.0.0.1, A: disabled) disconnected by peer
    2014-07-25 14:19:41.478672 <I> <network|network.c:105> Added new client (S: 16, T: plain, P: 127.0.0.1, A: disabled)
    2014-07-25 14:19:42.479255 <I> <network|client.c:242> Client (S: 16, T: plain, P: 127.0.0.1, A: disabled) disconnected by peer
    

     

     

     

    Br,

    Vuko

×
×
  • Neu erstellen...