View previous topic :: View next topic |
Author |
Message |
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Tue Jul 26, 2022 9:51 am Post subject: Send a file "xxxxx.txt" to a PC |
|
|
Hello,
I would like to send a xxxx.txt file to a PC folder. Currently I use an SD card and I create my files with AVR-Dos that works well but I would like to do without the SD card and send my data files directly.
Is this possible and how to do it?
Thank you for your answers.
JP
(BASCOM-AVR version : 2.0.8.5 ) _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
plouf
Joined: 19 Jan 2012 Posts: 78 Location: Athens,Greece
|
Posted: Tue Jul 26, 2022 10:33 am Post subject: |
|
|
There are usb chips that emulate a dos file system. (I.e create a vitual usb stick)
However its relative complex in software and hardware
Ideal method imho should be via network.
To send to ftp server
Bascom has all its need ro networking in that level
Alternative. But not so "easy" is to use rs232 and a terminal program from PC side _________________ Christos |
|
Back to top |
|
|
matjazs
Joined: 08 Nov 2016 Posts: 86
|
Posted: Wed Jul 27, 2022 9:19 am Post subject: |
|
|
It depends on the situation, but the easiest way is to use the GUI-O application.
It works almost the same as writing to SD, except you send a string to the phone and save the data to a file.
You can easily review or share this file later.
For this functionality, in this case, you do not need a high performance microcontroller.
And what's more, the device can be connected to the phone remotely (WiFi) via the Internet or bluetooth.
Check out this data logger that demonstrates this functionality.
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14779
P.S. This summer is a special offer of GUI-O PRO FREE
www.gui-o.com |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Jul 27, 2022 9:54 am Post subject: |
|
|
there are several ways to do this.
you can use BT, serial port, ethernet, or a simple wifi module from wiznet, they have new wifi modules that are cheap and affordable.
using wifi/ethernet you could also send it to a cloud.
then there is the option to create an usb device drive. i did not implement it with the usb-add on but it is possible.
while gui-o is nice indeed it requires a smartphone with an OS and also some connection. And the OS needs updates and might also have multiple security issues. i do not trust google with my data. and neither samsung or apple. but that is something else.
_________________ Mark |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Wed Jul 27, 2022 3:11 pm Post subject: |
|
|
A quick and dirty method is to use Bascom's PS2 Keyboard Emulator, open a suitable program on PC, insert data and save to file, all via emulated keystrokes.
Would not recommend it for higher data rates, if the PC is without PS2, use a PS2/USB plug. |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Thu Jul 28, 2022 8:00 am Post subject: |
|
|
thanks all for your help,
I solved, with plan b, the wild method, I use YAT (just another terminal) and I save my data line in a file. for me it works but it is not marketable. I still think like when I was working.
If you don't know YAT look at here https://sourceforge.net/projects/y-a-terminal/
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
plouf
Joined: 19 Jan 2012 Posts: 78 Location: Athens,Greece
|
Posted: Thu Jul 28, 2022 9:19 am Post subject: |
|
|
Thats my "p.s." in proposal
Anyway if from mcu side its the most you can the "marketing" can be improved by creating a pc application that read data and saves to file
Can have a nice logo and its ok for most. _________________ Christos |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Thu Jul 28, 2022 11:28 am Post subject: |
|
|
With YAt it is enough to make CRTL+T to save a file nnnn.xxx in a folder. there is possibility of making macros I did not make yet. it is really a good tool
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
|