Seite 1 von 2
Datei auf TXT mit WinSCP
Verfasst: 28 Apr 2020, 12:51
von SiniSim
Hallo Zusammen
Ich möchte meine in C++ geschriebenen Dateien mit WinSCP auf den TXT laden.
Die Dateien sind schon Compiliert und am schluss steht .bin
Eigentlich müsste ich alles richtig eingestellt haben aber ich sehe meine dateien nicht auf dem TXT.
Hat jemand eine Idee woran das liegt?
Mein TXT ist auf version 4.6.6.0
Freundliche grüsse SiniSim
Re: Datei auf TXT mit WinSCP
Verfasst: 28 Apr 2020, 16:25
von vleeuwen
https://github.com/fischertechnik/txt_demo_c_download
https://github.com/fischertechnik/txt_t ... BServer.md
https://filezilla-project.org/
https://stackoverflow.com/questions/958 ... 00#6944100

- Security on TXT
- Capture3.PNG (17.36 KiB) 7938 mal betrachtet

- Exe file for RoboPro => C-program
- Capture.PNG (202.28 KiB) 7939 mal betrachtet

- TXT Overview exe for RoboPro
- Capture2.PNG (85.33 KiB) 7939 mal betrachtet
Re: Datei auf TXT mit WinSCP
Verfasst: 28 Apr 2020, 17:31
von SiniSim
Danke für den Tipp mit dem WEB server.
Aber in Eclipse Kommt immer diese fehlermeldung in der Konsole :Error: Program "arm-linux-gnueabihf-g++" not found in PATH
Was heisst das?
Der Rest ist Jetzt glaub wirklich richtig eingestellt.
Re: Datei auf TXT mit WinSCP
Verfasst: 28 Apr 2020, 22:03
von vleeuwen
Because almost all the information about Eclipse and how it works is in English, I don't translate this.
That is now just the reason that I give trainings.
Setting up a development environment is also understanding what you are doing.
Software enginering (computer programing) is just a lot more then type code with try and error approach.
Most of the information and documentation can be found on the internet.
So a important part (skill) of software engineering is also learn how to search and select the available information.
And transform this information into knowledge.
"stackoverflow" is a very good source for information.
Check your Eclipse project properties and try to understand what they are meaning.

- Inspection of the environment
- Capture6.PNG (137.13 KiB) 7897 mal betrachtet

- Toolchain
- Capture4.PNG (137.35 KiB) 7898 mal betrachtet

- Overview
- Capture5.PNG (99.58 KiB) 7898 mal betrachtet
Re: Datei auf TXT mit WinSCP
Verfasst: 29 Apr 2020, 18:43
von SiniSim
Ich Habe es Geschafft.
Weiss Jemand wie ich 2 TXT mit C++ ansteuern kan?
Re: Datei auf TXT mit WinSCP
Verfasst: 29 Apr 2020, 20:39
von vleeuwen
Websockets / Berkely-sockets.
Re: Datei auf TXT mit WinSCP
Verfasst: 30 Apr 2020, 08:23
von SiniSim
Meint dies, dass ich beide TXT 's mit der Ft Cloud verbinden muss.
Re: Datei auf TXT mit WinSCP
Verfasst: 30 Apr 2020, 08:41
von vleeuwen
======================================================================
Your PC/Laptop can have a direct relation with the TXT over a socket.
Ft Cloud has nothing to do with that.
See for example:
viewtopic.php?f=8&t=5849#p43042
======================================================================
Socket fundamentals, introduction:
https://en.wikipedia.org/wiki/WebSocket
https://en.wikipedia.org/wiki/Network_socket
=====================================================================
For translation,
https://translate.google.nl/
Re: Datei auf TXT mit WinSCP
Verfasst: 30 Apr 2020, 16:58
von SiniSim
Wie kann ich den M 1,2,3,4 ansteuern in C++?
Ich habe mir das eibischen einfacher vorgestellt.
Re: Datei auf TXT mit WinSCP
Verfasst: 30 Apr 2020, 19:04
von fishfriend
Hallo...
Ich tippe mal auf:
pTArea->ftX1out.duty[0] = 512; bzw ... =0;
Einfach mal die Null mit einer 1, 2 oder 3 tauschen.
Mit freundlichen Grüßen
fishfriend
Holger Howey
PS
Da fehlen noch Angaben.
Richtung sollte auch angegeben werden. So gibst du nur die Geschwindigkeit vor.
Re: Datei auf TXT mit WinSCP
Verfasst: 30 Apr 2020, 19:11
von SiniSim
Darf ich fragen wie ein Korrekter und vollständiger Code für die ansteuerung eines Motors ausssieht?
Re: Datei auf TXT mit WinSCP
Verfasst: 30 Apr 2020, 20:17
von vleeuwen
To begin, study and try these examples carefully:
https://github.com/fischertechnik/txt_demo_c_download
And study also the structure of the TA (Transfer Area)
The TA specification you will find in this file:
https://github.com/fischertechnik/txt_d ... /FtShmem.h
The transfer area is also in use in the
https://github.com/fischertechnik/txt_demo_c_online.
The principals are the same,
It is very simple. Otherwise here you can find how the transfer area can be used to create C/C++ function (the TX-C is also using the same idea of TA):
https://www.fischertechnik.de/-/media/f ... dvers.ashx
=========
https://translate.google.nl/ ===========================
Re: Datei auf TXT mit WinSCP
Verfasst: 05 Mai 2020, 13:57
von SiniSim
Hallo zusammen
Ich hae immer noch einen fehler mit eclipse.
Mitlerweile habe ich den MinGW Compiler heruntergeladen. Dieser Compiled die .cpp dateien in eine .o datei. Diese kann der TXT aber nicht lesen.
Was muss ich umstellen damit es funktioniert?
Re: Datei auf TXT mit WinSCP
Verfasst: 05 Mai 2020, 16:34
von vleeuwen
Do you understand the basics of programming?
What is the difference between a static library, shared library and a executable?
https://stackoverflow.com/questions/264 ... -libraries
https://stackoverflow.com/questions/218 ... -is-o-file
https://unix.stackexchange.com/question ... -a-library
.o static library
-so shared library
no extension is an executable.

- screenshot Eclipse project property
- ecl.PNG (38.4 KiB) 7531 mal betrachtet
Most of the documentation is in English so adding a translation make no sense.
Re: Datei auf TXT mit WinSCP
Verfasst: 05 Mai 2020, 17:11
von SiniSim
Aber das lib(name).dll file kann der TXT immer noch nicht lesen.
Re: Datei auf TXT mit WinSCP
Verfasst: 05 Mai 2020, 21:02
von vleeuwen
The TXT is LINUX, for that reason Eclipse is cross compiling with Linaro.
You need for TXT (LINUX) an executable (no extension)
DLL => This is a MS-Windows library
Re: Datei auf TXT mit WinSCP
Verfasst: 06 Mai 2020, 13:30
von SiniSim
Aber wie sage ich eclipse, dass er auf Linaro zugreifen soll?
Re: Datei auf TXT mit WinSCP
Verfasst: 06 Mai 2020, 17:07
von vleeuwen
If you like to program for off-line (local) use on the TXT, please read first the documentation (readme) in
https://github.com/fischertechnik/txt_demo_c_download.
It is good documented their.
=====================================================================================
Wenn Sie für die Offline-Verwendung (lokal) auf dem TXT programmieren möchten, lesen Sie bitte zuerst die Dokumentation (Readme) unter
https://github.com/fischertechnik/txt_demo_c_download.
Es ist gut dokumentiert ihre.
Re: Datei auf TXT mit WinSCP
Verfasst: 06 Mai 2020, 17:57
von SiniSim
Ich meine ich hätte alles gemacht aber er erkennt die Datei immer noch nicht!
Re: Datei auf TXT mit WinSCP
Verfasst: 06 Mai 2020, 21:43
von vleeuwen
.so is a shared library which is also in use for the SLI.
But for a local program this is a executable.
On Windows this is identical, but with different extensions.
.bin (in the past) .exe for executable,
.dll for a dynamic library (it is covering different link protocols)