This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to control LEDs on mcb1700 with LAN cable via pc and TCP/ip??

Dear Sir/Madam
I have a MCB1700 board and i want to control its LEDs via pc via TCP/ip.in order to do it i used LEDswitch program but i read the help and it suggests to use a specific windows application for control the LEDs via LAN cable and pc.in this case the board is a server and PC is a client.
How can i find this windows application ?
can i use command prompt window instead of windows application?if yes please help me how to use it.
Also please give me some help for configuring my LEDswitch program codes on my board.

Thank you

Parents
  • I set the IPV4 of my laptop to 192.168.2.10 and subnet mask 8.8.8.8 and set the following codes in my board:

    #define _MAC1          0x1E
    
    //     <o>Address byte 2 <0x00-0xff>
    //      Default: 0x30
    #define _MAC2          0x30
    
    //     <o>Address byte 3 <0x00-0xff>
    //      Default: 0x6C
    #define _MAC3          0x6C
    
    //     <o>Address byte 4 <0x00-0xff>
    //      Default: 0x00
    #define _MAC4          0xA2
    
    //     <o>Address byte 5 <0x00-0xff>
    //      Default: 0x00
    #define _MAC5          0x45
    
    //     <o>Address byte 6 <0x00-0xff>
    //      Default: 0x01
    #define _MAC6          0x5E
    
    //   </h>
    //   <h>IP Address
    //   =============
    //    Local Static IP Address
    //    Value 255.255.255.255 is not allowed.
    //    It is a Broadcast IP address.
    //     <o>Address byte 1 <0-255>
    //      Default: 192
    #define _IP1           192
    
    //     <o>Address byte 2 <0-255>
    //      Default: 168
    #define _IP2           168
    
    //     <o>Address byte 3 <0-255>
    //      Default: 0
    #define _IP3           2
    
    //     <o>Address byte 4 <0-255>
    //      Default: 100
    #define _IP4           12
    
    #define _MSK1          8
    
    //     <o>Mask byte 2 <0-255>
    //      Default: 255
    #define _MSK2          8
    
    //     <o>Mask byte 3 <0-255>
    //      Default: 255
    #define _MSK3          8
    
    //     <o>Mask byte 4 <0-255>
    //      Default: 0
    #define _MSK4          8
    
    


    i set the 192.168.2.12 in board ip text box and port number textbox to 1001 and choose TCP
    .I don't use any router because i directly connect the LAN cable to laptop and mcb1700.I wrote one client and one server socket application using C# and they are work correctly between two pc and also i wrote the client application for my android mobile phone and it can communicate with my PC very nice.Have you tried to control the mcb1700 with LEDSwitch.exe?

Reply
  • I set the IPV4 of my laptop to 192.168.2.10 and subnet mask 8.8.8.8 and set the following codes in my board:

    #define _MAC1          0x1E
    
    //     <o>Address byte 2 <0x00-0xff>
    //      Default: 0x30
    #define _MAC2          0x30
    
    //     <o>Address byte 3 <0x00-0xff>
    //      Default: 0x6C
    #define _MAC3          0x6C
    
    //     <o>Address byte 4 <0x00-0xff>
    //      Default: 0x00
    #define _MAC4          0xA2
    
    //     <o>Address byte 5 <0x00-0xff>
    //      Default: 0x00
    #define _MAC5          0x45
    
    //     <o>Address byte 6 <0x00-0xff>
    //      Default: 0x01
    #define _MAC6          0x5E
    
    //   </h>
    //   <h>IP Address
    //   =============
    //    Local Static IP Address
    //    Value 255.255.255.255 is not allowed.
    //    It is a Broadcast IP address.
    //     <o>Address byte 1 <0-255>
    //      Default: 192
    #define _IP1           192
    
    //     <o>Address byte 2 <0-255>
    //      Default: 168
    #define _IP2           168
    
    //     <o>Address byte 3 <0-255>
    //      Default: 0
    #define _IP3           2
    
    //     <o>Address byte 4 <0-255>
    //      Default: 100
    #define _IP4           12
    
    #define _MSK1          8
    
    //     <o>Mask byte 2 <0-255>
    //      Default: 255
    #define _MSK2          8
    
    //     <o>Mask byte 3 <0-255>
    //      Default: 255
    #define _MSK3          8
    
    //     <o>Mask byte 4 <0-255>
    //      Default: 0
    #define _MSK4          8
    
    


    i set the 192.168.2.12 in board ip text box and port number textbox to 1001 and choose TCP
    .I don't use any router because i directly connect the LAN cable to laptop and mcb1700.I wrote one client and one server socket application using C# and they are work correctly between two pc and also i wrote the client application for my android mobile phone and it can communicate with my PC very nice.Have you tried to control the mcb1700 with LEDSwitch.exe?

Children