| |
|
|
QWurzel | Hello on any,
I Search a Possibility Arduino-Controller over The USB-interface with Profan anzusteuern. (Arduino UNO or Arduino Duemilanove (over Virtual-USB) )
If the here someone already time made?
About The COM-command have I it already attempts. the has but nothing brought.
I Please therefore for a example.
(need I a additional DLL to Ansteuerung ?)
Thank you! |
|
|
| |
|
|
|
GDL | Hi,
I know unfortunately The Arduino-Controller not.
as allererstes would I say, you see first to whether your Virtual-USB a COM interface occupied. with installed driver and angeschlossenem RS232/USB Wandler ought to this in the Gerätemanager showing.
so functions the at least with my FTDI Wandlern.
Grüßle Georg |
|
|
| |
|
|
|
QWurzel | Hello Georg!
with Arduino Duemilanove becomes one FTDI-Wandler (UART-Wandler) uses (therefore Virtual-USB).
with Arduino UNO leistet one seperater USB-driver its service.
The Arduino becomes simply on a disengaged USB-Port angeschloßen and as COM-Port recognized.
About the Serial-terminal-Emulator-Program the Arduino-Programmiersoftware can I z.B. a "2" enter and a LED light .
Arduino-code:
void setup() { pinMode(10, OUTPUT);
Serial.begin(9600); }
void loop() {
if(Serial.available()) { int c = Serial.read(); if (c == '2') { digitalWrite(10,HIGH); } if (c == '1') { digitalWrite(10,LOW); }
} }
XProfan:
f% = @OpenCom("COM25", 12024, 12024) @SetCom("COM25:9600,n,8,1") @WriteCom(f%,"2") @CloseCom(f%)
(The COM-command shine so not To functions. need I further Parameter or a others Ansatz.)
these first only one very simple example.
Thank you! |
|
|
| |
|
|
|
QWurzel | has someone a(n) working(n) Solution(sansatz).
Thank you! |
|
|
| |
|
|
|
QWurzel | have the following Program (Script-Language) found and tested: "AutoIT" means with "AutoIT" can I with the same Ansatz How with XProfan whom Arduino controlling.
Why weg The COM-command not XProfan ?
(with AutoIT have I The same COM-Parameter) |
|
|
| |
|
|
|
| yet having any Controller-Freaks gemeldet that The com-command super so functions. have You time SetComExt angeschaut? I faith that this the Key to that Happiness is or. my I on it To remind. myself be unfortunately no Controller-Freak and kanns not testing. |
|
|
| |
|
|
|
GDL | Hallöle
probier times under the Prerequisite the com25 The Right thing is.
f% = @OpenCom("COM25", 12024, 12024) print f% ' look over whether interface at all opened becomes @SetCom("COM25:9600,n,8,1") data$=chr$(2) Error%=WriteCom(f%,data$) ComError(f%) print Error% sleep 1000
with Error% should You see whether what gesendet becomes. and then first closecom(f%)
so GEHTS by me correct |
|
|
| |
|
|
|
| another Info of Georg:
You write: @WriteCom(f%,"2")
the sends byte 50.
If you byte 2 Send want then:
|
|
|
| |
|
|
|
QWurzel | Juhu!
I bin's again!
so How your the see goes it unfortunately not.
XProfan shining no "RS232" To support.
with the "commg.dll" of AutoIT shining But to go.
Bsp. :
Declare hCom&
hCom& = @UseDll("commg.dll")
Def @SetzePort(8) !"commg.dll","SetPort"
Def @SendeString(2) !"commg.dll","SendString"
Def @BeendeCom(1) !"commg.dll","CloseDown"
@SetzePort(25,9600,8,"none",1,2,0,0)
@SendeString("1",0)
@BeendeCom(0)
|
|
|
| |
|
|
|
Pedro Miguel | Hello QWurzel
Fals possibly poste still a small Beipiel circa data To Send and To receive with the DLL. where can I The DLL find.
already since years use I XProfan and the serial interface and I so no Problems. Fals but the from you named DLL rather functions watts I it too gladly experementieren.
greeting Pedro |
|
|
| |
|
|
|
QWurzel | Hello Pedro,
The DLL is in the attachment include.
or use subesquent Link: [...]
The Dll functions by me to that seriellen reading and Send.
thereby use I a Arduino (on USB) and Windows 7 64bit.
XProfan supported even no "USB to RS232" ! or ? |
|
|
| |
|
|
|
maroro | reading goes In any drop.
I read a ESP8266 over The virtual com from. |
|
|
| |
|
|