Danke, ich hatte es falsch interpretiert ...
Kann mir da jemand ein Tut oder Ähnliches bieten?
Posts by schnibli
Registriere dich jetzt, um exklusive Vorteile zu genießen! Als registriertes Mitglied kannst du Inhalte herunterladen und profitierst von einem werbefreien Forum.
Mach mit und werde Teil unserer Community!
Mach mit und werde Teil unserer Community!
-
-
Hallo,
Kann ich über RS232 nur über 2 Leiter Senden? und auch die Distanze ist kein Problem?
Vielen Dank. -
So, ich hatte mal Zeit um alle Vorschläge mal anzuschauen,
RS485 klingt sehr interessant. wie viele Befehle kann man da Maximum senden?
Was benötige ich dazu?Vielen Dank
-
Sehr interessante Diskusion. Funk kommt gar nicht in Frage
Es ist wirklich so das ich nur 2 Leiter habe. Och werde mir morgen alle Vorschläge anschauen
Danke Wer auch jemand da der mich unterstützt?
-
Also, sorry für die Wortwahl, kam mir nichts besseres in den sin.
Hin-und her ist der Luxus, erstmal nur in eine richtung. Danke für die korrektur
Standart für leitungslänge ist ca: 50m
Wiso 2 Pi's? Dachte ich könnten so Fehler minimiert werden.
Das Problematische ist, es müssen sowohl Pulse als auch anstehende Signale gesendet werden und es währe schön mehrere Befehle Miteinander senden zu können. -
Hallo Zusammen,
Ich habe eine Frage und zwar:
ich habe eine Leitung (2 Leiter) Kupferdrähte.
Ist es möglich mit Hilfe von 2 Raspberry Pi Signale hin und her zu schicken.
Sodass zum Beispiel Signale für Lampen Aktivieren von dem einen auf den anderen Rapsberry Pi geschickt werden?Danke für euer Interesse
-
Hallo Zusammen,
Ich Besitze 3 Rpi's
2 Davon in meinem Haus und einen Extern.
Um diesen externen geht es zurzeit.
Ich habe ssh zugriff auf diesen Rpi, jedoch möchte ich da das Raspbian os neu Flashen.
Ist dies über ssh möglich?
Freundliche Grüsse -
Vielen Dank für die Ausführliche erklärung. Ich werde dies mal versuchen.
Aber es nimmt mich dennoch wunder wie es mit vmstat Funktioniert
-
Hallo und Vielen Dank, dies wusste ich schon...
Ich frage über mein vb.net Programm gewisse Daten ab und da brauche ich nur den wert nicht die laufenden Prozesse :s
Beispiele:Code
Display Morecmd = sshClient.RunCommand("/opt/vc/bin/vcgencmd measure_temp | tr -d ""temp="" | tr -d ""'C""") lblResult.Text = cmd.Result cmd = sshClient.RunCommand("/opt/vc/bin/vcgencmd measure_volts | tr -d ""volt="" | tr -d ""V""") lbl_volt.Text = cmd.Result cmd = sshClient.RunCommand("cat /proc/version |cut -d "" "" -f 3") lbl_system.Text = cmd.Result cmd = sshClient.RunCommand("df -P | grep rootfs | tr -s "" "" "" "" | cut -d "" "" -f 2") lbl_speicher_geamt.Text = Math.Round(cmd.Result / 1024 / 1024, 2) cmd = sshClient.RunCommand("df -P | grep rootfs | tr -s "" "" "" "" | cut -d "" "" -f 3") lbl_speicher_belegt.Text = Math.Round(cmd.Result / 1024 / 1024, 2) cmd = sshClient.RunCommand("df -P | grep rootfs | tr -s "" "" "" "" | cut -d "" "" -f 5") lbl_speicher_belegt_prozent.Text = cmd.Result
ich hoffe ich hab es diesmal richtig erklärt -
Hallo Zusammen,
Ich habe eine kleine Frage:
Man kann ja Temparatur, Speicher, Spannung ect vom Raspberry auslesen.
Dies Funktioniert bei mir auch, jedoch würde ich gerne auch die CPU Auslastung in % auslesen, ist dies auch machbar?Ich rede von solchen ssh Befehlen
/opt/vc/bin/vcgencmd measure_temp | tr -d ""temp="" | tr -d ""'C"""
"/opt/vc/bin/vcgencmd measure_volts | tr -d ""volt="" | tr -d ""V"""p.s.
Oder zumindest CPU Gesamt
und
CPU Belegt damit ich es rechnen kann.
Danke -
Der Server läuft auf .jar Basis und nicht auf Python, dies währe mein erstes "grosses" Projekt. Kleinere habe ich auch schon erledigt aber nie mit Bilder eines Servers einlesen.
-
Hallo zusammen,
Mein Vorhaben:
Ich möchte einen Bildbetrachter, der Bilder von einem Server anzeigt.
Mit Hilfe von tcp Command wie zb. "back", soll das letzte bild Angezeigt werden oder "next" für das nächste.
Wenn alle Bilder des Ordners angezeigt wurden, soll ein video abgespielt werden(ebenfalls von dem gleichen Server.Ist dies mit python realisierbar?
gibt es da schon etwas vergleichbares oder ein tut?
Den clienten habe ich schon Programmiert um den Bildbetrachter zu "Steuern" (da dies momentan auf einem Windows Rechner so realisiert ist).Ein funktionierender TCP Server habe ich ebenfalls auf meinem Raspberry.
Vielen dank für eure Bemühung.
-
Das Eigentliche Problem war, das ich beim Export vergessen habe eine Main manifest festzulegen.
[hr]
Ist es möglich eine Jar Datei die Auf Desktop/Programme/server.jar liegt im autostart einzubinden? sodass diese gleich beim Aufstarten ausgeführt wird?hat sich erledigt
-
Ich habe bei eclips nun auf Export geklickt und .jar ausgewähl... diese auf den Raspberry pi geladen.
Wenn ich nun die App mit java -jar server.jar starten möchte kommt:
no main manifest attribute, in server.jarJava
Display Morepackage com.server; import java.net.*; import java.io.*; import java.util.*; public class Server implements Runnable { // A simple talker - Sample written by Graham Ellis, July 2010 (update) // No login needed. Connect on port 1357. // commands: // .q quit // .w who // Variables for each thread Socket linkto; // the socket PrintWriter out; // the output and input streams BufferedReader in; int id; // i.d. of the connection String from_name; // name of host connecting // Class Variables static Vector connectiontable; // current connections static int nextid = 1; // Increasing i.d. /////////////////////////////// Main method //////////////////////// public static void main(String [] args) { // Parent thread - create a server socket and await a connection ServerSocket ss = null; Socket s = null; connectiontable = new Vector(); try { ss = new ServerSocket(4444); while ((s=ss.accept())!= null) { // Connection received - create a thread Server now; Thread current = new Thread(now = new Server(s)); current.setDaemon(true); connectiontable.addElement(now); // Save talker into vector .. current.start(); // start the user's thread } } catch (Exception e) { System.out.println(e); } // should add finally block to close down } ///////////////// Constructor for a new thread ////////////////////// Server (Socket from) { id = nextid++; linkto = from; InetAddress source = linkto.getInetAddress(); from_name = source.getHostName(); try { out = new PrintWriter(new OutputStreamWriter (linkto.getOutputStream())); in = new BufferedReader(new InputStreamReader (linkto.getInputStream())); } catch (Exception e) {} } public void run () { String line = ""; while (true) { boolean done=false; // read a line from the user if (line == null) { try { out.print(""); //prompt,flush,read out.flush(); line = in.readLine(); } catch (Exception e) { System.out.println(e); done = true; // force exit if there's a problem } } // Handle special cases - user input starts with "." // You get a NULL back if connection lost and we should // pick up that exception! try { if (line.startsWith(".q")) done = true; } catch (Exception e) { // e.g. null done = true; line = "[exiting]"; } if (line.startsWith(".w")) { // build up list of host names int k; StringBuffer fred = new StringBuffer("WHO HERE?\n"); for (k=0;k<connectiontable.size();k++) { Server person = (Server)connectiontable.elementAt(k); fred.append(person.from_name); fred.append(" "); } line = fred.toString(); } // echo the line (with a header) to all users String outline = line; int k; for (k=0;k<connectiontable.size();k++) { Server person = (Server)connectiontable.elementAt(k); person.out.println(outline); person.out.flush(); // Vital - ensure it is sent! } // clear out the user if they're done if (done) { connectiontable.removeElement(this); try { out.close(); // closes needed to terminate connection in.close(); // otherwise user's window goes mute linkto.close(); } catch (Exception e) {} break; } line = null; } } }
dies ist meine Anwendung
-
es ist ein Java Programm, ich habe windows, winscp und putty ist eigerichtet. auf dem raspberry läuft Raspbian
-
Hallo Zusammen, ich habe eine Anwendung (TCP Server) in Eclips auf meinem Windows Rechner geschrieben.
Was muss ich nun alles tun damit ich die Anwendung auf dem Raspberry Pi ausführen kann?danke für die Hilfe.
-
Hallo Mitlerweile Kommen externe Anrufe am server an aber sie werden nicht an das Telefon weitergegeben.
Weiter Anpassungen:
[sonstige][meine-telefone]
exten => _0.,1,Dial(SIP/${EXTEN:1}@sipprovider-out,20,r)
exten => _0.,2,Hangup()
exten => 4144777798,1,Dial(SIP/${EXTEN},20,j)
exten => 4144777798,2,VoiceMail(u${EXTEN})
exten => 4144777798,3,VoiceMailMain(s${CALLERID(num)})
exten => 4144777798,4,VoicemailMain(s${CALLERID(num)}) -
Vielen Dank für deine Hilfe jedoch habe ich kein erfolg.
Jetztiger Fehlermeldung:
[Jun 27 13:50:41] ERROR[2017]: chan_sip.c:29650 setup_srtp: No SRTP module loaded, can't setup SRTP session.
[Jun 27 13:50:41] NOTICE[2017]: chan_sip.c:22753 handle_request_invite: Call from '41446134598' (192.123.221:2066) to extension '0792221701' rejected because extension not found in context 'meine-telefone'.
[Jun 27 13:51:19] NOTICE[2017]: chan_sip.c:22753 handle_request_invite: Call from '' (212.117.203.36:5060) to extension '41446134598' rejected because extension not found in context 'default'.Die frage ist, muss ich noch etwas vor die nummer schreiben damit ich raustelefonieren kann?
Mein sip.config
[general]
; sipcall.ch needs a useragent different from asterisk
useragent=portasipfriendly
register =>41445112398:unvf9jys@sip.backbone.ch/41445112398
port=5060
encryption=no[41445112398]
type=friend
context=meine-telefone
secret=1234
host=dynamic
mailbox=2000
nat=yes
extension.config
[sonstige][meine-telefone]
exten => 41445112398,1,Dial(SIP/${EXTEN},20,j)
exten => 41445112398,2,VoiceMail(u${EXTEN})
exten => 41445112398,3,VoiceMailMain(s${CALLERID(num)})
exten => 41445112398,4,VoicemailMain(s${CALLERID(num)})
meine Modules.config:
; Asterisk configuration file
;
; Module Loader configuration file
;[modules]
autoload=yes
noload=res_srtp.so
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using 'preload'. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those configuration
; files are initialized.
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
; If you want, load the GTK console right away.
; Don't load the KDE console since
; it's not as sophisticated right now.
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss. Don't load it.
;
noload => app_intercom.so
;
; The 'modem' channel driver and its subdrivers are
; obsolete, don't load them.
;
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
;
; Comment this out (after installing CAPI middleware and hardware
; drivers) if you have CAPI-able hardware and wish to use it in
; Asterisk.
;
noload => chan_capi.so
;
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
;
; Disable CDR logging to SQLite by default since it writes unconditionally to
; cdr.db without a way to rotate it.
;
noload => cdr_sqlite.so
;
; These conflict with app_directory.so and each other.
noload => app_directory_odbc.so
;
; Enable these if you want to configure Asterisk in a database
;
noload => res_config_odbc.so
noload => res_config_pgsql.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global]
folgendes erscheint bei:
sip show peers:
Name/username Host Dyn Forcerport ACL Port Status
41441237598/41441237598 192.168.61.21 D N 2066 Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]Version
Asterisk 1.8.13.1~dfsg1-3+deb7u3Installationsanleitung:
http://www.kammerath.net/aster…tuelle-telefonanlage.htmlDie Parameter habe ich jedoch zusammengesucht und gepröbelt und nachgelesen.
sip show registry:
Host dnsmgr Username Refresh State Reg.Time
sip.backbone.ch:5060 N 41441231598 105 Registered Fri, 27 Jun 2014 14:03:33
1 SIP registrations.firewall: (bild im anhang)
-
Snom telefon an asterisk anmelden funktionier,
Asterisk an sipcall anmelden Funktionier.
Meine sip.conf:
[general]
; sipcall.ch needs a useragent different from asterisk
useragent=portasipfriendly
register => 41446157598:passwort@sip.backbone.ch/41446157598
port=5060[41446157598]
type=friend
context=meine-telefone
secret=1234
host=dynamic
mailbox=2000
nat=yesMeine Extensions.conf
[sonstige][meine-telefone]
exten => 41446157598,1,Dial(SIP/${EXTEN},20,j)
exten => 41446157598,2,VoiceMail(u${EXTEN})
exten => 41446157598,3,VoiceMailMain(s${CALLERID(num)})
exten => 41446157598,4,VoicemailMain(s${CALLERID(num)})Das anrufen und anrufe wmpfangen funktioniert leider nicht.
Fehler asterisk:] WARNING[2035]: chan_sip.c:9187 process_sdp: We are requesting SRTP, but they responded without it!
kann mir jemand helfen?
Ps. Die nr. Wurde geändert. -
Hallo zusammen,
Ich versuche verzweifelt den Asterisk zum laufen zu kriegen.
Was ich habe:
Raspberry pi Typ B mit Raspian und Asterisk
Telefone:
2 x Snom 300
1 x Snom 320
IP Telefon anbieter:
Sipcall.chKennt sich einer aus mit der Config für die Snom Telefone und Sipcall.ch als Provider?