Forum: Mikrocontroller und Digitale Elektronik Browser von RS232 bestücken?


von beta-frank (Gast)


Lesenswert?

Hallo, zum Kommunikation AVR<->PC nutze ich bisher ein "ödes" 
Terminalprogramm. Gibt es unter Win eine Möglichkeit, vom AVR gesendeten 
HTML-Code via RS232 zum Browser ohne weiteres Protokoll zu schicken? So 
in etwa, wie er ja auch Textdateien mit HTML-Inhalt anzeigen kann. Gruß 
Frank

von Niki Hammler (Gast)


Lesenswert?

Hallo,


also ohne zusätzliches Programm wird das wohl
kaum laufen!
Aber so ein Prgramm wäre sehr simpel in ein paar
Stunden zu erstellen.

Ohne Garantie und dass ich es ausprobiert hätte
fände ich die Möglichkeit über die
aux-Datei in DOS zB. Müsste man probieren aber
ich bin mir zu 99.9% sicher es wird nicht
gehen :(

von Andreas S. (andreas) (Admin) Benutzerseite


Lesenswert?

Mach dir auf dem PC ein Programm, das die zwischen zwei bestimmten 
ASCII-Zeichen (z.B. Bell, irgendwas das man sonst nicht braucht) 
ankommenden Daten in eine temporäre .html-Datei schreibt. Unter Windows 
müsste sich dann mit system("start temp.html") der Browser öffnen.

von Cabal2002 (Gast)


Lesenswert?

hab da was im web gefunden. Ist zwar etwas wage zeigt aber einen 
interessanten lösungsansatz:

copied from http://www.rdrop.com/users/cary/html/robot_links.html
==========================SNIP==========================

From: plackle bart
Subject: Re: Accessing HTTP through a serial port
Date: 31 Aug 1999 00:00:00 GMT
Newsgroups: comp.arch.embedded

Mike Godin wrote:

> I'd like to be able to access an embedded controller with a HTML browser.
> It should be pretty easy to get the embedded controller to speak HTTP, but
> getting it to speak to a network is going to be pretty difficult.  It can
> only talk through a serial port, so I'd like to use my PC as the network
> interface.  Is there an easy way to tell a network that my serial port is a
> remote computer?  Is there another kind of serial-to-network device I can
> use?
>
> Thanks in advance,
> Mike Godin

Probably, the most easy way to interface with the embedded controller .

1. setup an http deamon on your system (e.g. apache for linux)
2.  write / use the program which connects serially with the embedded 
system.
3. place this program under the cgi-bin directory.
4. to send commands to this cgi-program (e.g. 
localhost/cgi-bin/yourprogram
? first param + second + ...
5. the httpd browser pipes this information towards your program
6. your programs serializes this via a specific  protocol
7. your serial program (display towards the stdout) prints the html 
response
8. this responce will be fed back towards your browser

So this all you need to do
Kind regards
Bart Plackle

I hear "netcat" could be useful. ftp://avian.org/src/hacks/nc110.tgz
==========================SNAP==========================

Gruss Cabal

von mikki merten (Gast)


Lesenswert?

Da HTML ja ein Dokument orientiertes Form ist, dürfte es wohl für den 
Einsatz mit einem Microcontroller reicht ungeeignet, da aufwendig sein. 
Wenn du an Auswahlmöglichkeiten bei der Zeichendarstellung (Grösse, 
Farbe) oder auch Grafik denkst, schau dich besser im Bereich der 
Terminal-Programme um die mehr als nur eine rudimentäre ANSI, VT52 oder 
VT100 Emulation bieten.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.