Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 14, 2018, 04:27:50 16:27


Login with username, password and session length


Pages: [1]
Print
Author Topic: Looking for serial data logger  (Read 1062 times)
0 Members and 1 Guest are viewing this topic.
Signal
Active Member
***
Offline Offline

Posts: 172

Thank You
-Given: 92
-Receive: 74



« on: December 03, 2018, 04:15:22 16:15 »

At first, I try to explain my use case.
Most (if not all) my microcontroller projects has asynchronous serial output for tracing. It is one direction only communication.
I use it mostly at development state. Sometimes it remains active in production.
Mostly I transmit only values, or codes, or codes with values - anyway it is not a readable text. I use the highest rate that target supports, so 8 MHz (or 32) bit rate is not extraordinary. Average data flow usually is low, but being able to store 50000 bytes per second is useful.
Special profit I gain from existence of such traces in multi-channel captures of logic analyzer. That shows me internal state of microcontroller synchronized with outer activity in real time operation.

Now I want to log this trace (async serial) by autonomous logger supposedly to SD card. I want to connect a logger to a target device and leave it working possibly out of workshop. Li accu is not a problem.
And finally I do not like to have to initialize a logger from target, it should be preconfigured (bitrate) and ready to receive data at powering. Incremental filenames in root directory is fine.

Sources for any PIС is ideal. HEX for any PIC is fine. Other uC brands also Ok. Device available to buy is great. Small footprint is a BIG plus.

I found following devices. Good price. But both require interaction with target. One based on ATMEGA possibly can not handle high bitrate or SD card throughput.

https://eu.mouser.com/ProductDetail/Adafruit/2796?qs=ivJcBTDythVHyWdm86fBzQ%3d%3d
https://www.tme.eu/ru/details/sf-dev-13712/other-modules/sparkfun-electronics-inc/dev-13712/

I appreciate any advice.
Logged

Give a right name to a right game and play it right
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1055

Thank You
-Given: 287
-Receive: 379



« Reply #1 on: December 03, 2018, 05:00:01 17:00 »

I have used well still do use the open-log data logger, you can download all the source code and make your own version of it as itís open source. I just used an Arduino Nano and one of these of e-bay which took care of the 5v side of things no converters need.
https://www.ebay.co.uk/itm/Micro-SD-Card-Reader-SPI-for-Arduino-Raspberry-Pi-UK-Seller/322502815052?hash=item4b16aa6d4c:g:9B4AAOSwPIhaNuch

You can set the baud rate to what ever you require and this creates a file onto the sd card  every time you power up the logger and you can change anytime just by editing the text file plus you can use upto 32gb cards. The master unit I made had an RTC and I sent out all the data to the logger, because I was running discharge and Charing tests I got it to create a new file for each test automatically by just pulling the reset low for a second, I had it running over an 10day period , but if you just want it running for days then you can just write it all into one file or you could create a new file every 24hrs which is easy to do.

Not used the other one had a quick look at it,but it was cheaper to make my own open log as I already had all the bits to do it lying around
« Last Edit: December 03, 2018, 05:02:12 17:02 by Wizpic » Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
PICker
Active Member
***
Offline Offline

Posts: 119

Thank You
-Given: 98
-Receive: 66


« Reply #2 on: December 03, 2018, 08:45:09 20:45 »

Please, have a look to the following link for an example of SD-based data logger using SD card and PIC18F2553:
http://www.blog.exrockets.com/blog/simple-diy-pic-micro-data-logger-with-sd-card-and-4ch-12b-adc/
Logged
Signal
Active Member
***
Offline Offline

Posts: 172

Thank You
-Given: 92
-Receive: 74



« Reply #3 on: December 04, 2018, 09:04:38 09:04 »

PICker, why?
Logged

Give a right name to a right game and play it right
PICker
Active Member
***
Offline Offline

Posts: 119

Thank You
-Given: 98
-Receive: 66


« Reply #4 on: December 04, 2018, 03:07:35 15:07 »

It's possible that I did not understand your request:
are you looking for a PIC-based  datalogger with SD card, small footprint, HEX firmware and so on?
Sorry if my suggestion does not meet your needs.
Logged
Thiru09
Cracking Team
Senior Member
****
Offline Offline

Posts: 271

Thank You
-Given: 314
-Receive: 936



« Reply #5 on: December 04, 2018, 08:48:28 20:48 »

It's possible that I did not understand your request:
are you looking for a PIC-based  datalogger with SD card, small footprint, HEX firmware and so on?
Sorry if my suggestion does not meet your needs.

your suggested tool logs data from ADC inputs, whereas the requirement is to log data coming from serial port.
Moreover, that project is not opensource.
Logged
PICker
Active Member
***
Offline Offline

Posts: 119

Thank You
-Given: 98
-Receive: 66


« Reply #6 on: December 05, 2018, 03:41:12 15:41 »

Sorry. I understand better now.
It is not so simple to find a PIC-based serial-to-SD project standalone, usually ADC data is recorded to SD cards;
it is no too difficult to develop this kind of project with a SD card reader-writer.
I found some interesting links you can use as starting point for your project:
http://hades.mech.northwestern.edu/index.php/Interfacing_with_a_Secure_Digital_(SD)_card
https://www.ccsinfo.com/forum/viewtopic.php?t=54554
https://www.ijareeie.com/upload/2016/april/2_Microcontroller.pdf
in some cases C source code is present.
For a better ready-to-use solution you can look at Arduino ecosystem or MBED:
https://os.mbed.com/questions/2523/Save-variables-on-MMC-memory-From-Serial/
Logged
Signal
Active Member
***
Offline Offline

Posts: 172

Thank You
-Given: 92
-Receive: 74



« Reply #7 on: December 05, 2018, 07:55:54 19:55 »

PICker, why me to follow your words to read the text you "ask" me to read to finally realize that you did not read it before me?

It's not the first time, you know. PICker, I do not want to see whatever you suggest because I have distinctive desire to be away from frustration (humble desire, isn't it?). You are the lazy, unreliable and irrelevant source without actual experience in areas you are usually so politely making your directions (directions!).
Why do you think you are so important (or at least better than google) telling me what to look at, having no idea about the thing five minutes before you type the same question to google? Ridiculous and pity!

it is no too difficult to develop this kind of project with a SD card reader-writer.
Well, I can do it. Who knows if finally it happens. It's not a surprise that many (if not most) of members here can do it. Even you. Maybe. Do you?
So what is the point? Maybe the point was not to reinvent the wheel and to save some time using a ready tool for doing things you want to do, what do you think?

I found some interesting links you can use as starting point for your project:
It's so kind of you that you think about me what I can do and what to start from. But what about you? Who are you to teach me? Currently I see no expert that passed some way and shows me the path. I see the pretender. Are your students cheated the same way? Because I am definitely cheated by you.

It is not so simple to find <...>
Please, do not bother yourself. If you have nothing to share - do not share, it's Ok.

My turn to teach you. Let's setup a situation. Imagine, you read a verbose question about serial data logger. You never use such. But you want to benice|helpful|partofwhatever|important|justchat. Then you simply can start with words - "Never use it". Good words. Somehow useless but good. Then it's time to have some thoughts about context explained in request. That is an unpredictable part. Variant one - you have no thoughts. Then (surprisingly simple) - say nothing. Brilliant, isn't it? Variant two - you have what to say about described use case or estimated solution, your opinion, you impressed or disappointed or just interested in a solution too - unpredictable part as I said. Then just say it. To be interesting it has to be at least true.
Logged

Give a right name to a right game and play it right
PICker
Active Member
***
Offline Offline

Posts: 119

Thank You
-Given: 98
-Receive: 66


« Reply #8 on: December 05, 2018, 11:53:43 23:53 »

Hi Signal,
I'm sorry to have given you a bad impression, believe me, my intention was to give you a hand based on my experience and my skills.
I apologize if the result was different.
Here I have no claim to teach anyone, I do that already at university (without cheating my students, as you say after reading two posts).
I have a wide experience in programming PIC for data acquisition and SD card logging, but I found difficult to find a pure PIC-based serial-to-SD.
Let me tell you that your reaction seems excessive and unmotivated, in my life I have never deceived anyone and I do not think I have insulted or offended in any way.
Personally, when someone tries to help me, even if her/his help does not have great value for me, I appreciate the commitment and time he/she has spent on this.
However, not having the desire nor the time to discuss about netiquette, I wish you to make your device as soon as possible, you will certainly be able to do better than me.
Logged
Signal
Active Member
***
Offline Offline

Posts: 172

Thank You
-Given: 92
-Receive: 74



« Reply #9 on: December 06, 2018, 02:21:05 02:21 »

Personally, when someone tries to help me, even if her/his help does not have great value for me, I appreciate the commitment and time he/she has spent on this.
I do not believe in your help and do not appreciate some unrelated activity from one who just states that he (or she?) is rather competent but do not read enough to understand questions as well as his (or her?) "own" answers. We already had the conversation before where I explained why and where you had clarified your criteria of "helping". Nothing was changed since then.

Of course I wrote much more words than enough. That was the momentum to compensate frustration you caused. At that time it seemed to be a right feedback. Enough would be just to say "Please, do not bother yourself". Next time I will refrain longer.
Logged

Give a right name to a right game and play it right
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC