Giter Site home page Giter Site logo

Comments (11)

rsta2 avatar rsta2 commented on July 17, 2024 1

from circle.

rsta2 avatar rsta2 commented on July 17, 2024 1

How it seems, this text comes from the git-shell. Because I do not know your setup, I do not have an explanation for this. Perhaps it is not triggered from the Circle application?

You can absolutely remove the m_Screen member and the related initialization, if you don't need it. You also don't need the SCREEN_HEADLESS option any more then, because it only implements CScreenDevice in a way, that all output operations are ignored. When there isn't a screen, you cannot write to it, and nothing need to be ignored.

logdev=ttyS1 redirects the logger output to the (first) serial device. In case there is no screen, you can also change the code to this:

	if (bOK)
	{
		bOK = m_Logger.Initialize (&m_Serial);
	}

from circle.

rsta2 avatar rsta2 commented on July 17, 2024 1

from circle.

rsta2 avatar rsta2 commented on July 17, 2024 1

Good, that it works now. If you want to remove these lines, you have to edit lib/logger.cpp. An other way is not supported and not intended. ;)

from circle.

rsta2 avatar rsta2 commented on July 17, 2024 1

from circle.

dirkarnez avatar dirkarnez commented on July 17, 2024

It is very scary that each time on error / exception, different documentation-like text comes out :P

I have tried to remove CLogger but you are right i need it for debugging somehow, as long as the debugging text is managable. However, can i remove CScreenDevice m_Screen;? my application is running in SCREEN_HEADLESS mode and i really want to get rid of all the things related to (HDMI) screen, making the following code in samples suspicious XD

	if (bOK)
	{
		CDevice *pTarget = m_DeviceNameService.GetDevice (m_Options.GetLogDevice (), FALSE);
		if (pTarget == 0)
		{
			pTarget = &m_Screen;
		}

		bOK = m_Logger.Initialize (pTarget);
	}

and cmdline

logdev=ttyS1

Can this line redirecting Screen output to serial?

Thank you so much!

from circle.

dirkarnez avatar dirkarnez commented on July 17, 2024

Thank you so much, going to edit the code.
The terminal i use is Tera Term. I tried serial plotting from Arduino IDE too.

from circle.

dirkarnez avatar dirkarnez commented on July 17, 2024

It seems i have found the trigger for unknown text printing.

My application is just a modified version of addon/SDCard/sample, in the kernel.cpp#L154, i changed the buffer size to 1024 and read large file. It seems large file will randomly fail (EXCEPTION_SYNCHRONOUS). Reading config.txt as small file always works.

May i know will you have the same effect when you read the attached large file?
sf_56.csv

from circle.

dirkarnez avatar dirkarnez commented on July 17, 2024

OMG indeed my card is corrupted haahaha, it works so good now after using another SD card. However, may i also know how to also disable this text, please? I want to format the logger message so customized plotter can distinguish logger message and ADC values. Once again thank you so much!
image

from circle.

dirkarnez avatar dirkarnez commented on July 17, 2024

I see! Will there be an enable / disable option 🤣?

from circle.

dirkarnez avatar dirkarnez commented on July 17, 2024

Ok hahahaha

from circle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.