c++ & TXT

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

c++ & TXT

Beitrag von bluatigro » 06 Sep 2018, 11:29

i m using devc++ and code::blocks for c++
where can i find info on using c++ on the TXT ?

i want to code for mobile robots

it wood be a lot easyer for me if ROBOPro came whit a script language build in

Benutzeravatar
steffalk
ft:pedia-Herausgeber
Beiträge: 1792
Registriert: 01 Nov 2010, 16:41
Wohnort: Karlsruhe
Kontaktdaten:

Re: c++ & TXT

Beitrag von steffalk » 07 Sep 2018, 10:35

Hello bluatigro,

there are at least three places to look at:

- https://www.fischertechnik.de/en/servic ... s/robotics
- https://github.com/fischertechnikGmbH
- http://cfw.ftcommunity.de/ftcommunity-TXT/en

And: It may be not exactly what you want, but in case you are just looking for controlling fischertechnik models using a _powerful_ language and debugging environment, maybe you want to have a look at https://nanoframework.net/, that is, Visual Studio (or VS Code) and C# with nearly everything one might wish.

Success!
Stefan

Torsten
Beiträge: 308
Registriert: 29 Jun 2015, 23:08
Wohnort: Gernsheim (Rhein-Main-Region)

Re: c++ & TXT

Beitrag von Torsten » 09 Sep 2018, 09:22

Hi bluatigro,
bluatigro hat geschrieben:it wood be a lot easyer for me if ROBOPro came whit a script language build in
you could use ftrobopy and Python as a scripting language to access the TXT and all of its I/Os:
see https://github.com/ftrobopy and ft:pedia 2/2017 (https://ftcommunity.de/ftpedia_ausgaben ... 2017-2.pdf)
for more details (mostly in german).

Best wishes,
Torsten

Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitrag von bluatigro » 31 Okt 2018, 11:35

i deciced to use the first pc language i can start
this can be python or c++
i hope that it wil be python
i byed 2 SD card's so i have now 3 SD
1 for FT python
2 for FT c++
3 for lejos java

first step :
formating SD card's

problem :
my old pc sees the SD card port
but shows not a thick gray line whit part blue
my new pc sees no SD card port

i have SD formatter on my old pc
it shows not any SD port
also when i push [refresh] noting happens

has anyone a idea how to solve this ?
what do i not good ?

Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitrag von bluatigro » 31 Okt 2018, 12:45

where can i find a tutoial of c++ programming on the TXT ?
a link wood be nice
i can read geman but i prefere english
[ dutch wood be even nicer ]

Benutzeravatar
PHabermehl
Beiträge: 2429
Registriert: 20 Dez 2014, 22:59
Wohnort: Bad Hersfeld

Re: c++ & TXT

Beitrag von PHabermehl » 31 Okt 2018, 16:07

bluatigro hat geschrieben: first step :
formating SD card's

problem :
my old pc sees the SD card port
but shows not a thick gray line whit part blue
my new pc sees no SD card port

i have SD formatter on my old pc
it shows not any SD port
also when i push [refresh] noting happens

has anyone a idea how to solve this ?
what do i not good ?
Hello,
Do I understand correctly that you try to use the TXT as a card reader? You want to format the card while it is inserted in the TXT?
If yes -> This is what you do not good.
Remove the SD card and format it on your PC.
Kind regards
Peter
https://www.MINTronics.de -- der ftDuino & TX-Pi Shop!

viele Grüße
Peter

vleeuwen
Beiträge: 1557
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: c++ & TXT

Beitrag von vleeuwen » 31 Okt 2018, 18:53

https://github.com/fischertechnik/txt_demo_c_online
Here you find information about the online programming possibilities of the TXT based on the normale fischertechnik firmware.
The files are update and will work under 4.2.4. and 4.3.3.
MS-Visual Studio 2017 community version.

https://github.com/fischertechnik/txt_demo_c_download
Also for downloadable programs.
Eclipse with a toolchain (details are described there)

Benutzeravatar
MasterOfGizmo
Beiträge: 2720
Registriert: 30 Nov 2014, 07:44

Re: c++ & TXT

Beitrag von MasterOfGizmo » 31 Okt 2018, 21:15

If you prefer 'real' programming languages then the ftDuino might be for you. It's an arduino with fischertechnik compatible IOs. Check e.g. http://ftduino.de for the details.
Arduino für fischertechnik: ftDuino http://ftduino.de, ftDuino32 http://ftduino.de/32

Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitrag von bluatigro » 01 Nov 2018, 10:17

update :
the formating is good now
i have now :
a lejos image SD card
2 empty SD card's
i want to instal python on one and c++ on the other
and see whitch i can use first

python :
if i have the firmware
must i put it on the SD card as zip or unpacked ?
can i use windows 10 for that or do i need a special program
if so where do i find that ?

c++ :
i have now eclipse [ java 8 ] on my new laptop
i did not find a eclipse whit c++ AND java
can i instal a c++ eclipse next to a java eclipse ?
[ i need java for my lego ev3 ]

Benutzeravatar
PHabermehl
Beiträge: 2429
Registriert: 20 Dez 2014, 22:59
Wohnort: Bad Hersfeld

Re: c++ & TXT

Beitrag von PHabermehl » 01 Nov 2018, 13:11

bluatigro hat geschrieben:update :
the formating is good now
i have now :
a lejos image SD card
2 empty SD card's
i want to instal python on one and c++ on the other
and see whitch i can use first

python :
if i have the firmware
must i put it on the SD card as zip or unpacked ?
can i use windows 10 for that or do i need a special program
if so where do i find that ?

c++ :
i have now eclipse [ java 8 ] on my new laptop
i did not find a eclipse whit c++ AND java
can i instal a c++ eclipse next to a java eclipse ?
[ i need java for my lego ev3 ]
Hi,
good to hear that the SD cards are okay now.

Some thoughts:

-> there is no native C compiler on the TXT. You have to cross-compile on another CPU, may it be Linux or Windows.
The best point to start is already linked above: https://github.com/fischertechnik
Anyway I would not recommend starting with C...

-> the community firmware - a good point for start coding in python - is very well documented: https://cfw.ftcommunity.de/ftcommunity- ... g-started/
This link was also posted before. Just take your time and check out the already given links.

Kind regards
Peter
https://www.MINTronics.de -- der ftDuino & TX-Pi Shop!

viele Grüße
Peter

vleeuwen
Beiträge: 1557
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: c++ & TXT

Beitrag von vleeuwen » 02 Nov 2018, 09:04

The integration of the toolchain for cross compiling in Eclipse works very good.
Eclipse is a very nice workbench.
I not even notice that there is a crosscompiler involved.
C/C++ is not so difficult to use. The main problem can be: understanding how the TA (transfer area) works.
The advantage is that you can work with the normal TXT firmware.
In one Eclipse workbench you can work with C/C++ and Java and other languages when they have their proper plugin available.

However there is a big difference between Eclipse and MS Visual Studio. In the MS-Visual Studio environment is .NET the base and the languages are dialects on top of the .NET framework.
This makes it possible to work with a mix of dialects inside one aplication.
Zuletzt geändert von vleeuwen am 22 Dez 2018, 15:29, insgesamt 2-mal geändert.

Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitrag von bluatigro » 05 Nov 2018, 13:55

i have a problem :
when i start the TXT the screen .5 sec gray then black again
when i start whit no SD card the same

according to the info i have to put the SD into the TXT
and then use putty
but that gives a chicken vs egg problem :
do i not need first to put the firmware on the SD ?

Benutzeravatar
EstherM
Beiträge: 1466
Registriert: 11 Dez 2011, 21:24

Re: c++ & TXT

Beitrag von EstherM » 05 Nov 2018, 17:18

Hi,
bluatigro hat geschrieben:i have a problem :
when i start the TXT the screen .5 sec gray then black again
when i start whit no SD card the same
What about the power supply for your TXT? If you use a battery, please make sure that it is fully loaded.
according to the info i have to put the SD into the TXT
and then use putty
but that gives a chicken vs egg problem :
do i not need first to put the firmware on the SD ?
To boot the communitiy firmware, it has to be on the SD card. You have to download the CFW firmware and put it on your SD card using your PC (or whatever computer you use besides the TXT).
We will update the documentation to make that step clear.

Have fun!
Esther

Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitrag von bluatigro » 06 Nov 2018, 13:48

@ estherm :
can i use windows 10 for that or do i need a special program

[ whit lejos i used a special prorgam thats why i ask ]

if this al is helpful it wil be python what i going to use for the TXT
and i wil be a litle happyer

how do i place a *.bmp of my mecranorobot on this forum ?

Benutzeravatar
EstherM
Beiträge: 1466
Registriert: 11 Dez 2011, 21:24

Re: c++ & TXT

Beitrag von EstherM » 06 Nov 2018, 21:56

bluatigro hat geschrieben: can i use windows 10 for that or do i need a special program
The documentation https://cfw.ftcommunity.de/ftcommunity- ... ation.html says:
"Download the latest version of the ftcommunity-TXT-firmware. At the time of writing this was “ftcommunity-txt-0.9.4.zip”. Copy all three files contained therein to the microSD-card (which should be formatted with FAT32. If you don’t know what that means and your card has 16GB or less: don’t worry, you’re set already)"
This means for you:
- Use the browser on your windows machine to download the file.
- Save the zip file oy your computer and remember where you put it.
- Unzip the file (see for example this instruction: https://support.microsoft.com/en-gb/hel ... nzip-files).
- Copy all three files on your SD card.
- Unmount the SD card on your computer and insert it into your TXT.

I hope this explanation works for you.
Best wishes,
Esther

Benutzeravatar
bluatigro
Beiträge: 22
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitrag von bluatigro » 08 Nov 2018, 10:45

@ estherm :
thanks for the help so far

i wil use this and report results

can a *.py file be put on the TXT ?
what wil i see on the screen of the TXT
if i got it good ?

i need verry detailt instruction's
pardon for that
i do not like to gamble
the propability's stack in my disadvatige to often

Benutzeravatar
EstherM
Beiträge: 1466
Registriert: 11 Dez 2011, 21:24

Re: c++ & TXT

Beitrag von EstherM » 11 Nov 2018, 12:31

Dear blutatigro,
did you successfully boot your TXT with the CFW (community firmware)?
If yes, you can now proceed to program it in Python. For so beginning, I would usually suggest to use Brickly. However, if you need pure text programming, starting with Python is also possible.
A detailed instruction in English can be found here: https://cfw.ftcommunity.de/ftcommunity- ... ial-1.html
It's a lot of text to read, so you can avoid to "gamble". Just follow the instruction. If something is unclear, this forum will be able to help you.
Best regards
Esther

Antworten