ARMweb UDP fails on no Mac address

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

ARMweb UDP fails on no Mac address

Post by YahooArchive »

Has anyone used the UDPIN and UDPOUT functions successfully?

I am having this error below after some timeout :
send_user_udp Failed to obtain a MAC addr via ARP

This is the code I am using :
***********
SUB broadcast(message(20) AS string)
UDPOUT((192<<24)+(168<<16)+(1<<8)+3, 50000, message)
ENDSUB

MAIN:
x=x+1
mess="hello world" + x?? mess="hello world" + x

GOSUB broadcast(mess)
wait(1000)
'GOTO MAIN
**************

However, i cannot get it to run properly.

What i want is to have an example of data being sent to the board via a web page
and get a response on the same page with the message entered in a field. Anyone
got a demo to provide?



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: ARMweb UDP fails on no Mac address

Post by YahooArchive »

> I am having this error below after some timeout :
> send_user_udp Failed to obtain a MAC addr via ARP

It pretty much means what it says, the ARMweb was unable to get a MAC address
for the IP address you were using, either it doesn't exist, doesn't do ARP or
failed on the first try

> What i want is to have an example of data being sent to the board via a web
page and get a response on the same page with the message entered in a field.
Anyone got a demo to provide?
>

You probably want to use CGIIN to get data to the ARMweb, and use <?BASIC to get
data back.

Maybe Miguel or Mike could provide an example of something more complex.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: ARMweb UDP fails on no Mac address

Post by YahooArchive »

I think that using HTTP CGIIN and a web browser is the most interesting
and useful interface to the ARMWeb. I have not used UDP at all.

I've learnt quite a bit about getting the ARMWeb to talk to a web
browser
There are tricks in getting it to update the web page effiiciently.

I'm planning to upload my example code to the files section in the
next week or two.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: ARMweb UDP fails on no Mac address

Post by YahooArchive »

If you know some about JAVA SCRIPT, all will going better!
Miguel

Post Reply