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
I'm not using this, but it took a minute to read the abstract and figure it was the "LEDSwitch Application"
C:\Keil473\ARM\Utilities\LEDSwitch\Release\LEDSwitch.exe
It even comes with source code
Other LED examples talk to each other, and presumably you could just write some standard Socket code on a PC and talk to things.
I very very thank you .I looked for this application ,hope i can solve my issue.If i won't be able to solve the problem I will negotiate with you.
Thanks a lot my darling.
I couldn't work with LEDSwitch.exe.i put the Board ip address in its textbox and entered port number in its textbox and choose TCP and connect LAN cable to mcb1700 and PC but when i change the p2 value the following error apeares: couldn't connect please check TCP/IP setting of your PC. can you help me ?
Consider if you have any Anti-Virus or Firewalling that might preclude an application from opening sockets.
I turned off the windows firewall and anti virus,but the socket couldn't open and prior error appeared again.my windows is 7 .what should i check do you think?
So what are the IP settings on your computer? ipconfig
Are you using a router/switch? Are the addresses allocated via DHCP for your computer and the board?
Have you written any other socket based applications? Do they work?
Before writing your own, have you tried ready-made ones; eg
www.simplecomtools.com/.../viewPrd.asp
Do you have a basic (at least) understanding of how IP networks work?
Yes i familiar with ip network .also i have written a client and server socket program with C# and also i wrote a client socket program for android device and i can communicate with android device and my laptop and i would like to do the same with android device and my mcb1700. but in LEDSwitch.exe when i change the P2 value i have error(Couldn't connect.Please check the TCP/IP setting of your PC)
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?
I set the IPV4 of my laptop to 192.168.2.10 and subnet mask 8.8.8.8 ...
Do you have any idea at all what the subnet mask is used for?
Subnet mask? Isn't that where you enter the IP of one of Google's DNS servers? :p
subnet mask is used for dividing a network to two or more network.in this case i could use 255.255.255.0 .but my issues doesn't solve with it.Do you have another idea?
i could use default number 255.255.255.0.but by this configuration my problem doesn't solve.Do you have any idea for solving the issue?
So you should be familiar with some tools & techniques for debugging IP network issues - what have you tried?
In particular, what have you done to determine whether this is a PC issue, an IP issue, or an issue at the mcb1700 end?
Is the cable correctly wired for that?
One suspects it's not a cross-over cable.
This is generally why I use a switch or router. And in circumstances where I want to monitor traffic I'd use an old HUB device which reflects traffic to another box for analysis, either just using a card in promiscuous mode, or a box running WireShark