Hello, I want communicate with my lpc2368 by the Ethernet port using an application whose create with visual basic. It is possible ? How ?
Thanks,
Mickael
Did you start your day by asking this question, or have you spent some time thinking about this problem before you asked the qeustion?
Do you believe that the ARM chip isn't VB compatible? Or that VB can make ethernet-capable applications as long as the other side isn't based on an ARM chip?
Please come back with a bit of information why you saw a need to question the possibility of interfacing an LPC2368 with a VB program.
How to do it?
Get a TCP/IP stack for the ARM - either buy from Keil, or try using any free stack. Read through the example code for the choosen stack. Write an application.
Write a VB program that can communicate with a PC program using Ethernet.
Connect the ARM hardware to the PC and change the IP number and possibly port number in the VB program and communicate with your ARM hardware instead.
I know it is possible to establish a connection between two PCs over ethernet but with the LPC2368 I did not know.
I look all day if it were possible and I found nothing, so I wrote on the forum.
I have a TCP / IP stack ... So I can make a VB application? The PC must be configured as a server or client tcp ?
I am french, so excuse me for my bad English.
Thanks for your help,
The datasheet for the LPC2368 says it has ethernet support. That implies that it must be possible to implement a network-capable program using the LPC2368. If you implement a web server (also available with the example code for the Keil stack) then any web browser can connect to the LPC2368-based hardware and fetch web pages.
The VB application is a PC application. Your PC already have a TCP/IP stack.
It is for the ARM side you need to get a TCP/IP stack and then write an application that makes use of this stack.
You, as designer, have to decide if the PC is the client or the server. This directly follows from what type of problem you are going to solve.
When starting a project, YOU must sit down and think about what you want to solve. Then you must break this down into individual requirements. Then you can look through these requirements and try and figure out the possible problems that you must look into, before you commmit to the design.
A web forum can help when you get stuck, but YOU first have to spend time on your own.
I don't want to integrate a web server in the lpc2368 but write and read in memory of lpc2368 since my PC using a VB application and communication ethernet.
I look throughout the week on the internet but I found nothing of this subject.
As I said earlier I have already make an ethernet communications between two PCs but I was writing code on two PCs with VB. With the lpc2368 I can't write code in VB. That is why I ask is forum on how I should proceed?
Really?!
Just look around you; you are surrounded by very many different devices that all talk TCP/IP: Your PC (whether Windows or not); Macs; mobile phones; the management interfaces on routers, etc, etc, etc - you can even get a web-enabled toaster:
www.roke.co.uk/.../27.php
The one common thing that they all share is that they all speak the TCP/IP protocol - so long as they do that, it is entirely irrelevant what language they are programmed in, and what processor(s) they contain.
Exactly what did you spend the week searching for? There are a lot of information on this forum, and the NXP forums in case you searched.
1) Get a compiler for the ARM. For example Keil or gcc. Keil is expensive and the evaluation version will not do because of the code-size limitations.
2) Get a TCP/IP stack for the ARM. For example Keil. Or search on this forum (or on the net) for suggestions about available free stacks, or free OS with included stack, for these processors. If you can't afford the Keil compiler, look for free code supported by gcc (I would guess most/all free ARM code does).
3) Collect all sample code you can for the OS/stack and read it at least twice.
4) Write application using 2 and compiled with 1.
5) Load into hardware and test.
6) Test/update repeatedly until it works.
7) Post questions to web forums if you get stuck.
Is that you on that picture, Andy? :-)
ouch, I did not see the reference to the person's name under the picture...
I must write code in VB and load into memory lpc2368?
And after a vb application on my PC that communicates with the lpc2368?
Do I use the sockets?
You must write a PC application in whatever language you choose.
You must write a LPC2368 application using any language you are able to find compiler + TCP/IP stack for. Primary choice to look for: C or C++.
No: There is absolutely no way the LPC2368 can run any VB program. Visual Basic is for developing applications running on M$ Windows machines. The LPC2368 is not a x86-compatible processor with capacity to run Windows. And it is way too small to be able to emulate an x86 machine.
If you search, there is a little chance that someone have released a BASIC interpreter solution for the LPC23xx chips, where you may run BAISC (but not Visual Basic) applications in a LPC23xx chip. But this is of no value to you, unless said BASIC interpreter also contains an API for network communication.
"Do I use the sockets?" The function names to do different operations will differ between different TCP/IP stacks. But since TCP is a protocol, and IP is a protocol, you don't have much options. You must use the networking primitives that are available in the TCP/IP protocols to implement your networking. If you don't, then it will not be TCP/IP - even if you use ethernet as electrical carrier. And that would also imply that you would have to look into writing a new networking stack for your PC too...
If you don't care about safe, connectionbased delivery, then you may use UDP instead of TCP. But no difference. You must make use of the primitives available in the stack. If you do not, then you will not be able to communicate between PC and LPC23xx.
"Is that you on that picture, Andy? :-)"
Try http://www.8052.com. Find post by Andy. Visit his home page.
If you want to use Microsoft development tools - look for a platform using Windows CE.
A quick search seems to indicate that Windows CE supports the following processor instruction sets: ARMV4I MIPSII MIPSII_FP MIPSIV MIPSIV_FP SH4 x86
Or take a look at this:
www.digi.com/.../digiconnectme.jsp
A complete, ARM-based platform, and supports the .NET Micro Framework
I search the forum if someone had already made a application BASIC for Lpc23XX but I found nothing.
If I understood I must write a code c in the lpc then a code in VB in my PC. Both will they communicate?
Thanks, Mickael
It does not matter if you have different programming languages on the two sides. The networking protocols are still the same.
If they will communicate - now that is a quation about your skills. I can't answer if you will manage to write two working applications or not.