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
http://www.keil.com/forum/57077
Please answer my question .I left this thread 3 days ago
You created this thread way less than three days ago.
However, you did write the following thread two days ago. http://www.keil.com/forum/57077/
No need to create new threads - you either get help or you don't.
This isn't a payed-for-work-help forum. So no one here is getting payed to help you. So it's all up to you and what you write, if anyone will feel an interest in donating own time to help you.
Where is the LEDswitch app you're talking about? What documentation, what Windows app does it mention?
I've seen other LED control apps using HTTP, which can be accessed via a browser, others could perhaps use TELNET or SNMP.
Assume from the responses your question is either too vague or uninteresting, pasting the same request for others to do your leg work probably won't advance your cause.
LEDSwitch is a example project for MCB1700 and is located in MCB1700/RL/TCPnet. Also there is another example which name is LEDClient and in their help mentioned about tcp/ip connection between 2 mcb1700 board and mentioned about control the LEDs on mcb1700 via a windows app.I would like to get more helps for control the leds via PC with tcp/ip protocol.
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?