C
Cawas
Cipher Lab produces some terminals to collect data where we can
program using one implementation of plain C which I believe to be ANSI
C89 compatible, although not fully. They have their on set of
libraries as well, but all in all, it's basic C we're talking about.
Ok, this is my first time on lots of things. I've never been to
usenet, and I'm not much an expert of Google Groups, or IRC, and
similar forums-thingies, with the exception of PHPBB / VBulletin PHP
forums system, which are pretty simple content-wise.
So I'm not sure I'm posting this in the right place, or if I even
should be doing it here. I did my research but it'll never be as good
as just trying it out.
Also I did not and wish not to look for this kind of information on
the owner's site. I believe they won't have much support, and
certainlly not as deep as I want.
I'm also starting working with C this year, and getting the depth of
it as well just now (although I'm a little familiar with it since
2000). Hopefully, at very least, I'll have some documentation done
alone by myself, if nobody joins.
Introductions aside, I do have lots of questions and I'd like to know
if by any chance someone knows of a more specific place where I could
find people that are programming for C and those terminals from Cipher
Lab that wish to share knowledge, discuss over programming, etc.
Particularly, I'd love to know if someone could sucessfully use any
well known string library on it, such as Paul Hsieh's bstring (
http://bstring.sourceforge.net ), although I doubt it. And I know for
experience that it would be nice to share some custom made libraries
to solve lots of troubles on those terminals, since I've been
painfully building one myself, from scratch.
Anyway, I'll be organizing and trying to isolate some problems I'm
getting with the terminal and post them following in here, together
with some functions I've been using, and may be of some use for
someone, even if just as basic learning purpose, since I am (or at
least feel like) still at basics myself.
The next "topics" I'll try to bring are:
1. strings - I think 90% of all troubles I'm having are from trying to
manipulate them. A good simple workaround library, which does not use
malloc, would be greatly appreciated. But maybe I'll just finish my
own soon enough.
2. extern volatile unsigned long sys_msec - not the sys_msec itself,
rather trying to use it with other "unsigned long" variables. I've
tried to isolate this problem with no success yet, so I'm even more
intrigued in why I'm getting it in my program, which must have around
5000 lines.
3. void OSTimeDly (unsigned long ticks) - when creating a task with
OSTaskCreate, it will only be activated by an OSTimeDly. This can get
really messy to use, specially when mixing it with getchar.
4. stdarg.h - it does not have va_copy, but I'm not having an issue
with that. Although I'd love to see an implementation of va_copy since
I have no idea how to write it, my problem here is on using it to
create my own vprintf. I could create a "dprintf" that works just
fine, but I've wanted to expand it, making a rdprintf that would use
dprintf. For that, I need to create a vdprintf, and that's where I
can't go beyond.
5. speeds issues - apparently, the most demanding is to print and
clear the screen. I've build a function to list the entries from the
DBF files, but it's quite slow to scroll down. This is the only place
where I've seem speed as an issue, and I'm still trying to figure out
a way to make it smooth, although I've managed to make it
satisfactory.
6. select queries - this is probably just a "dream", but I did wish to
be able to filter the above list with something at least similar to a
SQL. For now, I just can't filter it at all. Maybe it never will.
And that's way more than enough for now!
program using one implementation of plain C which I believe to be ANSI
C89 compatible, although not fully. They have their on set of
libraries as well, but all in all, it's basic C we're talking about.
Ok, this is my first time on lots of things. I've never been to
usenet, and I'm not much an expert of Google Groups, or IRC, and
similar forums-thingies, with the exception of PHPBB / VBulletin PHP
forums system, which are pretty simple content-wise.
So I'm not sure I'm posting this in the right place, or if I even
should be doing it here. I did my research but it'll never be as good
as just trying it out.
Also I did not and wish not to look for this kind of information on
the owner's site. I believe they won't have much support, and
certainlly not as deep as I want.
I'm also starting working with C this year, and getting the depth of
it as well just now (although I'm a little familiar with it since
2000). Hopefully, at very least, I'll have some documentation done
alone by myself, if nobody joins.
Introductions aside, I do have lots of questions and I'd like to know
if by any chance someone knows of a more specific place where I could
find people that are programming for C and those terminals from Cipher
Lab that wish to share knowledge, discuss over programming, etc.
Particularly, I'd love to know if someone could sucessfully use any
well known string library on it, such as Paul Hsieh's bstring (
http://bstring.sourceforge.net ), although I doubt it. And I know for
experience that it would be nice to share some custom made libraries
to solve lots of troubles on those terminals, since I've been
painfully building one myself, from scratch.
Anyway, I'll be organizing and trying to isolate some problems I'm
getting with the terminal and post them following in here, together
with some functions I've been using, and may be of some use for
someone, even if just as basic learning purpose, since I am (or at
least feel like) still at basics myself.
The next "topics" I'll try to bring are:
1. strings - I think 90% of all troubles I'm having are from trying to
manipulate them. A good simple workaround library, which does not use
malloc, would be greatly appreciated. But maybe I'll just finish my
own soon enough.
2. extern volatile unsigned long sys_msec - not the sys_msec itself,
rather trying to use it with other "unsigned long" variables. I've
tried to isolate this problem with no success yet, so I'm even more
intrigued in why I'm getting it in my program, which must have around
5000 lines.
3. void OSTimeDly (unsigned long ticks) - when creating a task with
OSTaskCreate, it will only be activated by an OSTimeDly. This can get
really messy to use, specially when mixing it with getchar.
4. stdarg.h - it does not have va_copy, but I'm not having an issue
with that. Although I'd love to see an implementation of va_copy since
I have no idea how to write it, my problem here is on using it to
create my own vprintf. I could create a "dprintf" that works just
fine, but I've wanted to expand it, making a rdprintf that would use
dprintf. For that, I need to create a vdprintf, and that's where I
can't go beyond.
5. speeds issues - apparently, the most demanding is to print and
clear the screen. I've build a function to list the entries from the
DBF files, but it's quite slow to scroll down. This is the only place
where I've seem speed as an issue, and I'm still trying to figure out
a way to make it smooth, although I've managed to make it
satisfactory.
6. select queries - this is probably just a "dream", but I did wish to
be able to filter the above list with something at least similar to a
SQL. For now, I just can't filter it at all. Maybe it never will.
And that's way more than enough for now!