Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 16, 2024, 10:28:17 10:28


Login with username, password and session length


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

Posts: 197

Thank You
-Given: 111
-Receive: 81



« on: December 03, 2018, 10:15:22 22: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: 1196

Thank You
-Given: 540
-Receive: 408



« Reply #1 on: December 03, 2018, 11:00:01 23: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, 11:02:12 23: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: 162

Thank You
-Given: 207
-Receive: 109


« Reply #2 on: December 04, 2018, 02:45:09 02: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: 197

Thank You
-Given: 111
-Receive: 81



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

PICker, why?
Logged

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

Posts: 162

Thank You
-Given: 207
-Receive: 109


« Reply #4 on: December 04, 2018, 09:07:35 21: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: 321

Thank You
-Given: 385
-Receive: 1164



« Reply #5 on: December 05, 2018, 02:48:28 02: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: 162

Thank You
-Given: 207
-Receive: 109


« Reply #6 on: December 05, 2018, 09:41:12 21: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: 197

Thank You
-Given: 111
-Receive: 81



« Reply #7 on: December 06, 2018, 01:55:54 01: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: 162

Thank You
-Given: 207
-Receive: 109


« Reply #8 on: December 06, 2018, 05:53:43 05: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: 197

Thank You
-Given: 111
-Receive: 81



« Reply #9 on: December 06, 2018, 08:21:05 08: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
zokij
Senior Member
****
Offline Offline

Posts: 346

Thank You
-Given: 269
-Receive: 679


Nice time :)


« Reply #10 on: January 03, 2019, 12:55:04 12:55 »

I hope this one will be fine for you (cheap  € 2,98) ready to use:


https://www.aliexpress.com/item/Openlog-Serial-Data-Logger-Open-Source-Data-Recorder-Naze32-F3-Blackbox-ATmega328-Support-Micro-SD-GY/32841147339.html

or if you preferred to DIY ... please declare PIC or Arduino and what language for source you preferred ...
« Last Edit: January 03, 2019, 01:32:57 13:32 by zokij » Logged
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #11 on: January 03, 2019, 02:27:59 14:27 »

I hope this one will be fine for you (cheap  € 2,98) ready to use:
Thank you. I have received one right before New Year. It was convenient for me to order original SparkFun DEV-13712. Odered it after Wizpic recommendation.
Just have explored docs and tested it. Figured out that for my case of binary stream I need to set esc# parameter to zero. So after changing of one symbol in config.txt file the OpenLog is really ready to use.
If I reach the bitrate limit I shell report it here. I hope that for current project it will be enough.
Logged

Give a right name to a right game and play it right
zokij
Senior Member
****
Offline Offline

Posts: 346

Thank You
-Given: 269
-Receive: 679


Nice time :)


« Reply #12 on: January 03, 2019, 02:55:53 14:55 »

You are welcome, if you have any further questions on this subject, and I did not see the post, you can send me a message, I will gladly help...
BTW "original SparkFun DEV-13712" difference is only price  $15.50 vs china $3.33   Roll Eyes
Logged
gabriel
Active Member
***
Offline Offline

Posts: 134

Thank You
-Given: 283
-Receive: 59


« Reply #13 on: January 05, 2019, 07:56:45 07:56 »

You can use also CH376S USB Read/Write module (from aliexpress or others) which include a very cheap "usb flash to serial", there's also a project made with arduino (may be you can adapt it to PIC): https://arduinobasics.blogspot.com/2015/05/ch376s-usb-readwrite-module.html, source code included.

HTH
Logged
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #14 on: January 07, 2019, 03:13:03 03:13 »

You can use also CH376S USB Read/Write module
Interesting. In case I need to add USB flash to some project this module could be useful.
Though I see some disadvantages using it as a data logger.
1) a size of USB flash is bigger, CH376S module is bigger
2) I expect USB flash consumes more power (additional controller), though I did not find any power specification for this module
3) 5V supply is not convenient for autonomous project.

So having a card reader why to use USB flash for logger? What do I miss?
Logged

Give a right name to a right game and play it right
max
Senior Member
****
Offline Offline

Posts: 314

Thank You
-Given: 1598
-Receive: 52


« Reply #15 on: January 07, 2019, 09:41:35 21:41 »

You can use the flash storage module with spi interface

https://www.ebay.com/itm/Perfeclan-Storage-Module-32-64-128Mbit-Flash-SPI-Interface-Control-Module/292904874008?hash=item44327db018:m:mM36RcHPf92-4GSSOuqsJQQ:rk:2:pf:0
Logged

Fate arrived and made the conscious unconscious It silenced the activity of life.
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #16 on: January 09, 2019, 07:16:39 07:16 »

You can use the flash storage module with spi interface
I could. Can you explain how do you use it and for what purpose?
I see it difficult to use data stored inside such device from outside. What do you expect to do (or maybe already do) to look (get access to) what your logger/device collected?
Logged

Give a right name to a right game and play it right
zokij
Senior Member
****
Offline Offline

Posts: 346

Thank You
-Given: 269
-Receive: 679


Nice time :)


« Reply #17 on: January 09, 2019, 01:43:37 13:43 »

Quote
I could. Can you explain how do you use it and for what purpose?
I see it difficult to use data stored inside such device from outside. What do you expect to do (or maybe already do) to look (get access to) what your logger/device collected?


sorry but nop... its not for you Signal...
its: Serial Nor flash expansion memory chips with Support SPI interface

SparkFun DEV-13712 is still better solution for you ( OpenLog - data logger)
Logged
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #18 on: January 09, 2019, 06:44:26 18:44 »

SparkFun DEV-13712 is still better solution for you ( OpenLog - data logger)
I had no doubts regarding it. I just tried to politely indicate the doubtful suggestion. Anyway it would be interesting to get answers from max.
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