English
Source / code snippets

Reading Temperaturfühler Usb

 
- Page 1 -



Web
Scanner
Nachtrag:
Web Scanner, Beitrag=56582, Zeitpunkt=28.03.2010
You can you this thermometer with Ebay order:

USB xp linux thermometer,RS232 protocol,TEMPer232
Ebay Artikelnummer:220564891464

Herstellerseite:
[...] 

The thing cost 18US$ + 6$ Fracht.
the Temper232 comes from China, lasts couple days.

Regards

Web


Web Scanner, Beitrag=56571, Zeitpunkt=28.03.2010
enclosed the View source. Can sure yet much better make, but it functions erstemal:
CompileMarkSeparation
Temperaturmessung Temper232 für PROFAN
über RS232 COMPORT 3
(C) Webbisoft 3/2010
Declare a$, f%, ende%,e%
Declare x$, y$, z%, bz&, xtemp!,xdtemp!, ll&, hh&, testtemp%

Proc GetComInput

    Parameters id%
    x$ = @ReadCom$(id%,10)
    y$ = @ComError(id%)
    bz& = @addr(x$)
    print "temp: ",bz&

    WhileNot x$ = ""

        testtemp% = 0
        x$=@ReadCom$(id%, 10)
        @ComError(id%)
        bz& = ord(mid$(x$,1,1))
        print "temp1: ",(bz&); " ";

        if bz& = 36

            testtemp% = 1

        else

            testtemp% = 0

        endif

        bz& = ord(mid$(x$,2,1))
        print (bz&); " ";

        if bz& = 254

            testtemp% = 1

        else

            testtemp% = 0

        endif

        bz& = ord(mid$(x$,3,1))
        print (bz&); " ";

        if bz& = 2

            testtemp% = 1

        else

            testtemp% = 0

        endif

        bz& = ord(mid$(x$,4,1))
        print (bz&); " ";
        bz& = ord(mid$(x$,5,1))
        print (bz&); " ";
        bz& = ord(mid$(x$,6,1))
        print (bz&); " "

        iF TESTTEMP% =1

            hh& = ord(mid$(x$,4,1))
            ll& = ord(mid$(x$,5,1))
            Print "ll& =", (ll&)
            Print "hh& =",(hh&)
            Xtemp! =256*hh&+ll&
            Print "xtemp!=", xtemp!

            If Xtemp! > 16384

                XDtemp! = -(16384-(Xtemp!)/4)*(0.03125) Korrekturwert 4000h ab 100°C

            Else

                XDtemp! = (Xtemp!/4)*(0.03125)

            EndIf

            XDtemp!= XDtemp!-3 Korrekturwert
            @Set("Decimals",2)
            print "Temperatur USB232= ",xdtemp!,"°C"

        endif

        sleep 800

    EndWhile

    print

EndProc

Window 0, 0 - 400, 400
f% = @OpenCom("COM3", 1024, 1024)
@SetCom("COM3:4800,N,8,1")
@WriteCom(f%, chr$($24)+ chr$($10)+chr$($05)+chr$($01)+chr$($01)+chr$($00)+chr$($32)+chr$($01)+chr$($55))
Thermometer initialisieren
y$ = @ComError(f%)
GetComInput f%                     Antwort abwarten und anzeigen
ende% = 0

WhileNot ende%

    a$ = @Inkey$()                   Tastatur abfragen

    If a$ = "§"                      Ende mit SHIFT-3

        ende%=1

    Else

        GetComInput f%                 empfangene Zeichen lesen

    Endif

EndWhile

@Clos
a>(f%) End


Hello Programmierfreunde,

to längerer Time have I again small Softwareprojekt.
it's about a Temperatursteuerung. moreover must I a USB
Temperaturstick evaluate. Something like here: Ebay Artikelnummer: 380167386533

now my question, has such a thing already someone made?
gives it there Special driver, dlls, or other Aids?
I must moreover say, the the Stick not yet by me weilt and
therefore is it yet something dürftig with the Datenlage

Regards

Web
 
Xprofan X3.1
Win7 auf AMDX6
10/12/09  
 



 
- Page 2 -



GDL
Hello Roland,

just as How You The serial interface eingebettet have.
the your XProfan The Windowseigene USB Übergabe anspricht.

know me with USB in the WinBereich not at all from.
might me something like present
- dialog the The associated USB tools with channel indicating
- open usb for channel
- read of channel
- write on the channel
- close channel

trouble is hold, that with USB The Portnummern not solid give away are.man must always first any USB tools detect and the Portnummer from his infected hardware detect.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/13/09  
 



Looks time [...]  .
 
10/13/09  
 




Web
Scanner
Ohh apiece,
the sees but not straight very trivial from
there be I time something floored...
hopefully have I me there not too much undertaken?

Regards

Web
 
Xprofan X3.1
Win7 auf AMDX6
10/13/09  
 




GDL
Hello iF,

there besorge I me rather couple old computer with RS232 and on long visibility progge I my Program again on inp and out circa.
If the Industrieboards yet better go, soar I circa, there these present Multimediakisten for me eh never useable are.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/14/09  
 



where very lying because the trouble with such USB-RS232-Port?

I frag because of the Moonbuggy.
 
10/15/09  
 




GDL
@iF,

the trouble is with Atmel not The USB Mikrocontrollertreiber.
The having The new Atmel already Onboard.

The problem is, How greife I from XProfan out through windows on The loaded driver To.
The Problems catch already with the USB Kanalnummerermittlung on.
If the driver a virtual ComPort erschafft isses Yes no trouble.only create any driver a virtual ComPort?
but How said,USB is for me too new territory.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/15/09  
 




GDL
@ Moonbuggy

the Moonbuggy can your already with USB and the FTDI RLE245 or RLE235 operate.
The FTDI Bausteine report itself with the mitgelieferten Treibern automatically with windows on.
there produce tappt im dunkeln a virtual COMPORT the with the XPofan command addressed go can.
Ausgangsseitig produce The Bausteine 8bit parallel or seriel with Handshaking.

Diesen detour make I already.
i wish me but direct grabbed of XProfan on The windowsinterne USB Übergabeschnittstelle.
so as with whom Printers too goes.I login The USB-printer indeed with windows on and not each Program what print can.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/16/09  
 




E.T.
i think, the announced printer becomes neither differently as a COM addressed, if I me the with my printer so anschaue, what this arranged has:



this becomes well only the driver make can.

4 kB
Hochgeladen:10/16/09
Downloadcounter109
Download
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
10/16/09  
 




Web
Scanner
so, the USB Temperaturfühler is there.

so far functions the too with the mitgelieferten software.
The data go on one Excelfile outputted.
probably The simplest Variante the File access and the data einzulesen?

I had But gladly differently, directly with Profan in my Program read.
How can I there begin, be something ratlos...
be for each Help grateful.

Regards

Web
 
Xprofan X3.1
Win7 auf AMDX6
10/20/09  
 



gives it a mitgelieferte software The The _aktuelle temperature indicating?

Link to that product?
 
10/20/09  
 




Web
Scanner
Produktlink is here:

[...] 

actually temperature becomes into Excelfile stored and currently displayed.


130 kB
Hochgeladen:10/20/09
Downloadcounter114
Download
 
Xprofan X3.1
Win7 auf AMDX6
10/20/09  
 



lying ne DLL Doku with?

otherwise ne EMail on whom Progger from the Program there...
 
10/20/09  
 




Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

54.555 Views

Untitledvor 0 min.
H.Brill05/09/23
Erasmus.Herold04/30/19
E.T.02/25/18
Tango09/03/17
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie