Sunday, May 20th 2018, 12:07pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

sohoil

Beginner

Date of registration: Aug 26th 2010

Posts: 5

1

Thursday, August 26th 2010, 3:23pm

OS_SendString using

Hi,
Segger proposes to use OS_SendString for Tx uart communication by application, it's good but not enough. What about sending buffer instead of null-terminated string. Any solution ?

Thx

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 271

2

Friday, August 27th 2010, 8:59am

Hello,

we propose to use OS_SendString when you use profiling and want to send a string to embOSView terminal.
If you want to send any application data I guess you don't want to use embOSView on PC side.
In this case you have to write you uart routines by yourself, but you can use of course our uart functions as a template.

Kind regards,
Til

sohoil

Beginner

Date of registration: Aug 26th 2010

Posts: 5

3

Sunday, August 29th 2010, 11:19am

OS_SendString using

Does it mean that I can use only embView terminal for UART sharing and not for my application, which connected through UART as well ?
Thx

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 271

4

Monday, August 30th 2010, 9:15am

No, that means that you can use the uart on two ways:
1. You use OS_SendString with our uart routines and on PC side you have to use embOSView.
2. Or you write your own uart routines and you can use on PC side whatever you like

embOS uses for profiling a simple protocol, so when you send "Hello World" via OS_SendString() embOS will also send some protocol bytes.


Regards,
Til

Similar threads