<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RMB Consulting: Embedded Systems Design and Consulting</title>
	<atom:link href="http://www.rmbconsulting.us/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rmbconsulting.us</link>
	<description></description>
	<lastBuildDate>Thu, 21 Jan 2010 22:15:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>A &#8216;C&#8217; Test: The 0&#215;10 Best Questions for Would-be Embedded Programmers</title>
		<link>http://www.rmbconsulting.us/a-c-test-the-0x10-best-questions-for-would-be-embedded-programmers</link>
		<comments>http://www.rmbconsulting.us/a-c-test-the-0x10-best-questions-for-would-be-embedded-programmers#comments</comments>
		<pubDate>Thu, 17 Dec 2009 22:21:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=87</guid>
		<description><![CDATA[An obligatory and significant part of the recruitment process for embedded systems programmers seems to be the ‘C Test’. Over the years, I have had to both take and prepare such tests and in doing so have realized that these tests can be very informative for both the interviewer and interviewee. Furthermore, when given outside [...]]]></description>
			<content:encoded><![CDATA[<p>An obligatory and significant part of the recruitment process for embedded systems programmers seems to be the ‘C Test’. Over the years, I have had to both take and prepare such tests and in doing so have realized that these tests can be very informative for both the interviewer and interviewee. Furthermore, when given outside the pressure of an interview situation, they can also be quite entertaining (hence this article).</p>
<p>From the interviewee’s perspective, you can learn a lot about the person that has written or administered the test. Is the test designed to show off the writer’s knowledge of the minutiae of the ANSI standard rather than to test practical know-how? Does it test ludicrous knowledge, such as the ASCII values of certain characters? Are the questions heavily slanted towards your knowledge of system calls and memory allocation strategies, indicating that the writer may spend his time programming computers instead of embedded systems? If any of these are true, then I know I would seriously doubt whether I want the job in question.</p>
<p>From the interviewer’s perspective, a test can reveal several things about the candidate.  Primarily, one can determine the level of the candidate’s knowledge of C.  However, it is also very interesting to see how the person responds to questions to which they do not know the answers.  Do they make intelligent choices, backed up with some good intuition, or do they just guess?  Are they defensive when they are stumped, or do they exhibit a real curiosity about the problem, and see it as an opportunity to learn something?  I find this information as useful as their raw performance on the test.</p>
<p>With these ideas in mind, I have attempted to construct a test that is heavily slanted towards the requirements of embedded systems. This is a lousy test to give to someone seeking a job writing compilers! The questions are almost all drawn from situations I have encountered over the years.  Some of them are very tough; however, they should all be informative.</p>
<p>This test may be given to a wide range of candidates. Most entry-level applicants will do poorly on this test, while seasoned veterans should do very well. Points are not assigned to each question, as this tends to arbitrarily weight certain questions.  However, if you choose to adapt this test for your own uses, feel free to assign scores.</p>
<h2>Preprocessor</h2>
<p>1. Using the #define statement, how would you declare a manifest constant that returns the number of seconds in a year? Disregard leap years in your answer.</p>
<p>#define SECONDS_PER_YEAR (60UL * 60UL * 24UL * 365UL)</p>
<p>I’m looking for several things here:</p>
<p>(a)    Basic knowledge of the #define syntax (i.e. no semi-colon at the end, the need to parenthesize etc.).</p>
<p>(b)    A good choice of name, with capitalization and underscores.</p>
<p>(c)    An understanding that the pre-processor will evaluate constant expressions for you. Thus, it is clearer, and penalty free to spell out how you are calculating the number of seconds in a year, rather than actually doing the calculation yourself.</p>
<p>(d)    A realization that the expression will overflow an integer argument on a 16 bit machine – hence the need for the L, telling the compiler to treat the expression as a Long.</p>
<p>(e)    As a bonus, if you modified the expression with a UL (indicating unsigned long), then you are off to a great start because you are showing that you are mindful of the perils of signed and unsigned types – and remember, first impressions count!</p>
<p>2. Write the ‘standard’ MIN macro. That is, a macro that takes two arguments and returns the smaller of the two arguments.</p>
<p>#define MIN(A,B)       ((A) &lt;=  (B) ? (A) : (B))</p>
<p>The purpose of this question is to test the following:</p>
<p>(a)    Basic knowledge of the #define directive as used in macros. This is important, because until the inline operator becomes part of standard C, macros are the only portable way of generating inline code. Inline code is often necessary in embedded systems in order to achieve the required performance level.</p>
<p>(b)    Knowledge of the ternary conditional operator.  This exists in C because it allows the compiler to potentially produce more optimal code than an if-then-else sequence. Given that performance is normally an issue in embedded systems, knowledge and use of this construct is important.</p>
<p>(c)    Understanding of the need to very carefully parenthesize arguments to macros.</p>
<p>(d)    I also use this question to start a discussion on the side effects of macros, e.g. what happens when you write code such as :</p>
<p>least = MIN(*p++, b);</p>
<p><em>3. What is the purpose of the preprocessor directive #error?</em></p>
<p>Either you know the answer to this, or you don’t. If you don’t, then see reference 1. This question is very useful for differentiating between normal folks and the nerds. It’s only the nerds that actually read the appendices of C textbooks that find out about such things.  Of course, if you aren’t looking for a nerd, the candidate better hope she doesn’t know the answer.</p>
<h2>Infinite Loops</h2>
<p><em>4. Infinite loops often arise in embedded systems. How does one code an infinite loop in C?</em></p>
<p>There are several solutions to this question. My preferred solution is:</p>
<p>while(1)</p>
<p>{</p>
<p>…</p>
<p>}</p>
<p>Another common construct is:</p>
<p>for(;;)</p>
<p>{</p>
<p>…</p>
<p>}</p>
<p>Personally, I dislike this construct because the syntax doesn’t exactly spell out what is going on.  Thus, if a candidate gives this as a solution, I’ll use it as an opportunity to explore their rationale for doing so.  If their answer is basically – ‘I was taught to do it this way and I have never thought about it since’ – then it tells me something (bad) about them. Conversely, if they state that it’s the K&amp;R preferred method and the only way to get an infinite loop passed Lint, then they score bonus points.</p>
<p>A third solution is to use a goto:</p>
<p>Loop:</p>
<p>…</p>
<p>goto Loop;</p>
<p>Candidates that propose this are either assembly language programmers (which is probably good), or else they are closet BASIC / FORTRAN programmers looking to get into a new field.</p>
<h2>Data declarations</h2>
<p><em>5. Using the variable a, write down definitions for the following:</em></p>
<p><em>(a) </em><em>An integer</em></p>
<p><em>(b) </em><em>A pointer to an integer</em></p>
<p><em>(c) </em><em>A pointer to a pointer to an integer</em></p>
<p><em>(d) </em><em>An array of ten integers</em></p>
<p><em>(e) </em><em>An array of ten pointers to integers</em></p>
<p><em>(f) </em><em>A pointer to an array of ten integers</em></p>
<p><em>(g) </em><em>A pointer to a function that takes an integer as an argument and returns an integer</em></p>
<p>(h)    <em>An array of ten pointers to functions that take an integer argument and return an integer</em>.</p>
<p>The answers are:</p>
<p>(a)    int a;                 // An integer</p>
<p>(b)    int *a;               // A pointer to an integer</p>
<p>(c)    int **a;             // A pointer to a pointer to an integer</p>
<p>(d)    int a[10];          // An array of 10 integers</p>
<p>(e)    int *a[10];        // An array of 10 pointers to integers</p>
<p>(f)     int (*a)[10];     // A pointer to an array of 10 integers</p>
<p>(g)    int (*a)(int);     // A pointer to a function a that takes an integer argument and returns an integer</p>
<p>(h)    int (*a[10])(int); // An array of 10 pointers to functions that take an integer argument and return an integer</p>
<p>People often claim that a couple of these are the sorts of thing that one looks up in textbooks – and I agree. While writing this article, I consulted textbooks to ensure the syntax was correct. However, I expect to be asked this question (or something close to it) when in an interview situation. Consequently, I make sure I know the answers – at least for the few hours of the interview.  Candidates that don’t know the answers (or at least most of them) are simply unprepared for the interview.  If they can’t be prepared for the interview, what will they be prepared for?</p>
<h2>Static</h2>
<p><em>6. What are the uses of the keyword static?</em></p>
<p>This simple question is rarely answered completely.  Static has three distinct uses in C:</p>
<p>(a)    A variable declared static within the body of a function maintains its value between function invocations.</p>
<p>(b)    A variable declared static within a module<a href="#_ftn1">[1]</a>, (but outside the body of a function) is accessible by all functions within that module. It is not accessible by functions within any other module.  That is, it is a localized global.</p>
<p>(c)    Functions declared static within a module may only be called by other functions within that module. That is, the scope of the function is localized to the module within which it is declared.</p>
<p>Most candidates get the first part correct.  A reasonable number get the second part correct, while a pitiful number understand answer (c).  This is a serious weakness in a candidate, since they obviously do not understand the importance and benefits of localizing the scope of both data and code.</p>
<h2>Const</h2>
<p><em>7. What does the keyword const mean?</em></p>
<p>As soon as the interviewee says ‘const means constant’, I know I’m dealing with an amateur. Dan Saks has exhaustively covered const in the last year, such that every reader of ESP should be extremely familiar with what const can and cannot do for you. If you haven’t been reading that column, suffice it to say that const means “read-only”.  Although this answer doesn’t really do the subject justice, I’d accept it as a correct answer. (If you want the detailed answer, then read Saks’ columns – carefully!).</p>
<p>If the candidate gets the answer correct, then I’ll ask him these supplemental questions:</p>
<p>What do the following incomplete<a href="#_ftn2">[2]</a> declarations mean?</p>
<p>const int a;</p>
<p>int const a;</p>
<p>const int *a;</p>
<p>int * const a;</p>
<p>int const * a const;</p>
<p>The first two mean the same thing, namely a is a const (read-only) integer.  The third means a is a pointer to a const integer (i.e., the integer isn’t modifiable, but the pointer is). The fourth declares a to be a const pointer to an integer (i.e., the integer pointed to by a is modifiable, but the pointer is not). The final declaration declares a to be a const pointer to a const integer (i.e., neither the integer pointed to by a, nor the pointer itself may be modified).</p>
<p>If the candidate correctly answers these questions, I’ll be impressed.</p>
<p>Incidentally, one might wonder why I put so much emphasis on const, since it is very easy to write a correctly functioning program without ever using it.  There are several reasons:</p>
<p>(a)    The use of const conveys some very useful information to someone reading your code. In effect, declaring a parameter const tells the user about its intended usage.  If you spend a lot of time cleaning up the mess left by other people, then you’ll quickly learn to appreciate this extra piece of information. (Of course, programmers that use const, rarely leave a mess for others to clean up…)</p>
<p>(b)    const has the potential for generating tighter code by giving the optimizer some additional information.</p>
<p>(c)    Code that uses const liberally is inherently protected by the compiler against inadvertent coding constructs that result in parameters being changed that should not be.  In short, they tend to have fewer bugs.</p>
<p><strong>Volatile</strong></p>
<p><em>8. What does the keyword volatile mean? Give three different examples of its use.</em></p>
<p>A volatile variable is one that can change unexpectedly.  Consequently, the compiler can make no assumptions about the value of the variable.  In particular, the optimizer must be careful to reload the variable every time it is used instead of holding a copy in a register.  Examples of volatile variables are:</p>
<p>(a)    Hardware registers in peripherals (e.g., status registers)</p>
<p>(b)    Non-stack variables referenced within an interrupt service routine.</p>
<p>(c)    Variables shared by multiple tasks in a multi-threaded application.</p>
<p>If a candidate does not know the answer to this question, they aren’t hired.  I consider this the most fundamental question that distinguishes between a ‘C programmer’ and an ‘embedded systems programmer’.  Embedded folks deal with hardware, interrupts, RTOSes, and the like. All of these require volatile variables. Failure to understand the concept of volatile will lead to disaster.</p>
<p>On the (dubious) assumption that the interviewee gets this question correct, I like to probe a little deeper, to see if they really understand the full significance of volatile. In particular, I’ll ask them the following:</p>
<p><em>(a) </em><em>Can a parameter be both const and volatile? Explain your answer.</em></p>
<p><em>(b) </em><em>Can a pointer be volatile? Explain your answer.</em></p>
<p>(c) <em>What is wrong with the following function?:</em></p>
<p>int square(volatile int *ptr)</p>
<p>{</p>
<p>return *ptr * *ptr;</p>
<p>}</p>
<p>The answers are as follows:</p>
<p>(a)    Yes. An example is a read only status register. It is volatile because it can change unexpectedly. It is const because the program should not attempt to modify it.</p>
<p>(b)    Yes. Although this is not very common. An example is when an interrupt service routine modifies a pointer to a buffer.</p>
<p>(c)    This one is wicked.  The intent of the code is to return the square of the value pointed to by *ptr. However, since *ptr points to a volatile parameter, the compiler will generate code that looks something like this:</p>
<p>int square(volatile int *ptr)</p>
<p>{</p>
<p>int a,b;</p>
<p>a = *ptr;</p>
<p>b = *ptr;</p>
<p>return a * b;</p>
<p>}</p>
<p>Since it is possible for the value of *ptr to change unexpectedly, it is possible for a and b to be different. Consequently, this code could return a number that is not a square!  The correct way to code this is:</p>
<p>long square(volatile int *ptr)</p>
<p>{</p>
<p>int a;</p>
<p>a = *ptr;</p>
<p>return a * a;</p>
<p>}</p>
<h2>Bit Manipulation</h2>
<p>9. Embedded systems always require the user to manipulate bits in registers or variables. Given an integer variable a, write two code fragments. The first should set bit 3 of a. The second should clear bit 3 of a. In both cases, the remaining bits should be unmodified.</p>
<p>These are the three basic responses to this question:</p>
<p>(a) No idea. The interviewee cannot have done any embedded systems work.</p>
<p>(b) Use bit fields.  Bit fields are right up there with trigraphs as the most brain-dead portion of C.  Bit fields are inherently non-portable across compilers, and as such guarantee that your code is not reusable.  I recently had the misfortune to look at a driver written by Infineon for one of their more complex communications chip.  It used bit fields, and was completely useless because my compiler implemented the bit fields the other way around. The moral – never let a non-embedded person anywhere near a real piece of hardware!<a href="#_ftn3">[3]</a></p>
<p>(c) Use #defines and bit masks.  This is a highly portable method, and is the one that should be used.  My optimal solution to this problem would be:</p>
<p>#define BIT3       (0&#215;1 &lt;&lt; 3)</p>
<p>static int a;</p>
<p>void set_bit3(void) {</p>
<p>a |= BIT3;</p>
<p>}</p>
<p>void clear_bit3(void) {</p>
<p>a &amp;= ~BIT3;</p>
<p>}</p>
<p>Some people prefer to define a mask, together with manifest constants for the set &amp; clear values.  This is also acceptable.  The important elements that I’m looking for are the use of manifest constants, together with the |= and &amp;= ~ constructs.</p>
<h1><strong>Accessing fixed memory locations</strong></h1>
<p><em>10. Embedded systems are often characterized by requiring the programmer to access a specific memory location. On a certain project it is required to set an integer variable at the absolute address 0x67a9 to the value 0xaa55. The compiler is a pure ANSI compiler. Write code to accomplish this task</em>.</p>
<p>This problem tests whether you know that it is legal to typecast an integer to a pointer in order to access an absolute location.  The exact syntax varies depending upon one’s style. However, I would typically be looking for something like this:</p>
<p>int *ptr;</p>
<p>ptr = (int *)0x67a9;</p>
<p>*ptr = 0xaa55;</p>
<p>A more obfuscated approach is:</p>
<p>*(int * const)(0x67a9) = 0xaa55;</p>
<p>Even if your taste runs more to the second solution, I suggest the first solution when you are in an interview situation.</p>
<h2>Interrupts</h2>
<p>11. Interrupts are an important part of embedded systems. Consequently, many compiler vendors offer an extension to standard C to support interrupts. Typically, this new key word is __interrupt. The following code uses __interrupt to define an interrupt service routine. Comment on the code.</p>
<p>__interrupt double compute_area(double radius) {</p>
<p>{</p>
<p>double area = PI * radius * radius;</p>
<p>printf(“\nArea = %f”, area);</p>
<p>return area;</p>
<p>}</p>
<p>This function has so much wrong with it, it’s almost tough to know where to start.</p>
<p>(a)    Interrupt service routines cannot return a value. If you don’t understand this, then you aren’t hired.</p>
<p>(b)    ISR’s cannot be passed parameters. See item (a) for your employment prospects if you missed this.</p>
<p>(c)    On many processors / compilers, floating point operations are not necessarily re-entrant. In some cases one needs to stack additional registers, in other cases, one simply cannot do floating point in an ISR. Furthermore, given that a general rule of thumb is that ISRs should be short and sweet, one wonders about the wisdom of doing floating point math here.</p>
<p>(d)    In a similar vein to point (c), printf() often has problems with reentrancy and performance.  If you missed points (c) &amp; (d) then I wouldn’t be too hard on you.  Needless to say, if you got these two points, then your employment prospects are looking better and better.</p>
<h2>Code Examples</h2>
<p><em>12. What does the following code output and why?</em></p>
<p>void foo(void)</p>
<p>{</p>
<p>unsigned int a = 6;</p>
<p>int b = -20;</p>
<p>(a+b &gt; 6) ? puts(&#8220;&gt; 6&#8243;) : puts(&#8220;&lt;= 6&#8243;);</p>
<p>}</p>
<p>This question tests whether you understand the integer promotion rules in C – an area that I find is very poorly understood by many developers.  Anyway, the answer is that this outputs “&gt; 6”.  The reason for this is that expressions involving signed and unsigned types have all operands promoted to unsigned types. Thus –20 becomes a very large positive integer and the expression evaluates to greater than 6. This is a very important point in embedded systems where unsigned data types should be used frequently (see reference 2).  If you get this one wrong, then you are perilously close to not being hired.</p>
<p><em>13. Comment on the following code fragment?</em></p>
<p>unsigned int zero = 0;</p>
<p>unsigned int compzero = 0xFFFF;       /*1’s complement of zero */</p>
<p>On machines where an int is not 16 bits, this will be incorrect. It should be coded:</p>
<p>unsigned int compzero = ~0;</p>
<p>This question really gets to whether the candidate understands the importance of word length on a computer.  In my experience, good embedded programmers are critically aware of the underlying hardware and its limitations, whereas computer programmers tend to dismiss the hardware as a necessary annoyance.</p>
<p>By this stage, candidates are either completely demoralized – or they are on a roll and having a good time.  If it is obvious that the candidate isn’t very good, then the test is terminated at this point. However, if the candidate is doing well, then I throw in these supplemental questions.  These questions are hard, and I expect that only the very best candidates will do well on them. In posing these questions, I’m looking more at the way the candidate tackles the problems, rather than the answers. Anyway, have fun…</p>
<p><strong>Dynamic memory allocation.</strong></p>
<p>14. Although not as common as in non-embedded computers, embedded systems still do dynamically allocate memory from the heap.  What are the problems with dynamic memory allocation in embedded systems?</p>
<p>Here, I expect the user to mention memory fragmentation, problems with garbage collection, variable execution time, etc. This topic has been covered extensively in ESP, mainly by Plauger.  His explanations are far more insightful than anything I could offer here, so go and read those back issues! Having lulled the candidate into a sense of false security, I then offer up this tidbit:</p>
<p><em>What does the following code fragment output and why?</em></p>
<p>char *ptr;</p>
<p>if ((ptr = (char *)malloc(0)) == NULL) {</p>
<p>puts(“Got a null pointer”);</p>
<p>}</p>
<p>else {</p>
<p>puts(“Got a valid pointer”);</p>
<p>}</p>
<p>This is a fun question.  I stumbled across this only recently, when a colleague of mine inadvertently passed a value of 0 to malloc, and got back a valid pointer! After doing some digging, I discovered that the result of malloc(0) is implementation defined, so that the correct answer is ‘it depends’. I use this to start a discussion on what the interviewee thinks is the correct thing for malloc to do.  Getting the right answer here is nowhere near as important as the way you approach the problem and the rationale for your decision.</p>
<h2>Typedef</h2>
<p><em>15. Typedef is frequently used in C to declare synonyms for pre-existing data types.  It is also possible to use the preprocessor to do something similar. For instance, consider the following code fragment:</em></p>
<p><em> </em></p>
<p>#define dPS  struct s *</p>
<p>typedef  struct s * tPS;</p>
<p><em> </em></p>
<p><em>The intent in both cases is to define dPS and tPS to be pointers to structure s.  Which method (if any) is preferred and why? </em></p>
<p>This is a very subtle question, and anyone that gets it right (for the right reason) is to be congratulated or condemned (“get a life” springs to mind). The answer is the typedef is preferred. Consider the declarations:</p>
<p>dPS p1,p2;</p>
<p>tPS p3,p4;</p>
<p>The first expands to</p>
<p>struct s * p1, p2;</p>
<p>which defines p1 to be a pointer to the structure and p2 to be an actual structure, which is probably not what you wanted. The second example correctly defines p3 &amp; p4 to be pointers.</p>
<h2>Obfuscated syntax</h2>
<p><em>16. C allows some appalling constructs.  Is this construct legal, and if so what does this code do? </em></p>
<p><em> </em></p>
<p>int a = 5, b = 7, c;</p>
<p>c = a+++b;  <em> </em></p>
<p><em> </em></p>
<p>This question is intended to be a lighthearted end to the quiz, as, believe it or not, this is perfectly legal syntax.  The question is how does the compiler treat it? Those poor compiler writers actually debated this issue, and came up with the “maximum munch” rule, which stipulates that the compiler should bite off as big a (legal) chunk as it can.  Hence, this code is treated as:</p>
<p>c = a++ + b;</p>
<p>Thus, after this code is executed, a = 6, b = 7 &amp; c = 12;</p>
<p>If you knew the answer, or guessed correctly – then well done.  If you didn’t know the answer then I would not consider this to be a problem.  I find the biggest benefit of this question is that it is very good for stimulating questions on coding styles, the value of code reviews and the benefits of using lint.</p>
<p>Well folks, there you have it.  That was my version of the C test.  I hope you had as much fun doing it as I had writing it.  If you think the test is a good test, then by all means use it in your recruitment.  Who knows, I may get lucky in a year or two and end up being on the receiving end of my own work.</p>
<p>References:</p>
<ol>
<li>In      Praise of the #error directive. ESP September 1999.</li>
<li>Efficient      C Code for Eight-Bit MCUs. ESP November 1988.</li>
</ol>
<hr size="1" /><a href="#_ftnref">[1]</a> Translation unit for the pedagogues out there.</p>
<p><a href="#_ftnref">[2]</a> I’ve had complaints that these code fragments are incorrect syntax. This is correct. However, writing down syntactically correct code pretty much gives the game away.</p>
<p><a href="#_ftnref">[3]</a> I’ve recently softened my stance on bit fields. At least one compiler vendor (IAR) now offers a compiler switch for specifying the bit field ordering. Furthermore the compiler generates optimal code with bit field defined registers – and as such I now do use bit fields in IAR applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/a-c-test-the-0x10-best-questions-for-would-be-embedded-programmers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced SCUBA Equipment</title>
		<link>http://www.rmbconsulting.us/poseidon-diving-systems-mkvi-rebreather</link>
		<comments>http://www.rmbconsulting.us/poseidon-diving-systems-mkvi-rebreather#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:55:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=70</guid>
		<description><![CDATA[Expanding the Market Until recently closed circuit underwater breathing apparatus, commonly referred to as rebreathers, have been reserved purely for technical and military divers. Poseidon Diving Systems wanted to bring rebreathers to the recreational dive market, but lacked the in-house expertise to do so. Therefore they approached our client Stone Aerospace for help. Stone Aerospace [...]]]></description>
			<content:encoded><![CDATA[<h2>Expanding the Market</h2>
<div class="photosRight"><a href="/photos/pictures/picture-16.jpg" target="_blank" class="thickbox" rel="gallery" title="Poseidon Discovery MKVI"><img src="/photos/thumbnails/thumb-16.jpg" width="100" border="0" /></a><br />
<a href="/photos/pictures/picture-12.jpg" target="_blank" class="thickbox" rel="gallery" title="Discovery MkVI Display"><img src="/photos/thumbnails/thumb-12.jpg" width="100" border="0" /></a><br />
<a href="/photos/pictures/picture-17.jpg" target="_blank" class="thickbox" rel="gallery" title="Poseidon Discovery MKVI diver surfacing"><img src="/photos/thumbnails/thumb-17.jpg" width="100" border="0" /></a><br />
<a href="/photos/pictures/picture-23.jpg" target="_blank" class="thickbox" rel="gallery" title="Diver enjoying his Poseidon Discovery MKVI"><img src="/photos/thumbnails/thumb-23.jpg" width="100" border="0" /></a>
</div>
<p>Until recently closed circuit underwater breathing apparatus, commonly referred to as rebreathers, have been reserved purely for technical and military divers. Poseidon Diving Systems wanted to bring rebreathers to the recreational dive market, but lacked the in-house expertise to do so. Therefore they approached our client Stone Aerospace for help. Stone Aerospace promptly recommended that RMB be brought into the project to provide electronics and firmware expertise.</p>
<h2>Re-inventing the Rebreather</h2>
<p>Poseidon’s concept was audacious in scope. Execution required innovation and expertise on a higher level than competing products. During the initial brain storming session, RMB made critical contributions that surpassed industry norms. This innovation resulted in multiple patent filings and many trade secrets. The design consists of a distributed network of processors, together with a smart battery charger. In all, RMB designed six separate PCBs, wrote 134,000 lines of embedded code, and provided hundreds of pages of technical documentation to support CE certification.</p>
<h2>Best in Class</h2>
<p>The Poseidon Diving Systems MKVI rebreather was successfully launched and is finding wide and enthusiastic support in the market place. Its technical innovations have caused both consternation and admiration in the industry, and have firmly established Poseidon as the market leader.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/poseidon-diving-systems-mkvi-rebreather/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infrared Moisture Gauge</title>
		<link>http://www.rmbconsulting.us/sensortech-ir3000</link>
		<comments>http://www.rmbconsulting.us/sensortech-ir3000#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:55:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=68</guid>
		<description><![CDATA[Measurement Challenges Sensortech Systems has long been the leader in moisture measurement using RF technology. When they decided to expand their product offerings to include an online moisture gauge based upon near-infrared adsorption, they knew they needed a partner who could handle a wide range of technical problems including very low level signal measurement, brushless [...]]]></description>
			<content:encoded><![CDATA[<h2>Measurement Challenges</h2>
<div class="photosRight">
<a class="thickbox" title="MoistTech IR-3000 PCB + Optics" rel="gallery" href="/photos/pictures/picture-65.jpg" target="_blank"><img src="/photos/thumbnails/thumb-65.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="MoistTech IR-3000 Optics deck" rel="gallery" href="/photos/pictures/picture-64.jpg" target="_blank"><img src="/photos/thumbnails/thumb-64.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="MoistTech IR-3000 Electronics" rel="gallery" href="/photos/pictures/picture-59.jpg" target="_blank"><img src="/photos/thumbnails/thumb-59.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="MoistTech IR-3000 in use #1" rel="gallery" href="/photos/pictures/picture-60.jpg" target="_blank"><img src="/photos/thumbnails/thumb-60.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="MoistTech IR-3000 in use #2" rel="gallery" href="/photos/pictures/picture-62.jpg" target="_blank"><img src="/photos/thumbnails/thumb-62.jpg" border="0" alt="" width="100" /></a>
</div>
<p>Sensortech Systems has long been the leader in moisture measurement using RF technology. When they decided to expand their product offerings to include an online moisture gauge based upon near-infrared adsorption, they knew they needed a partner who could handle a wide range of technical problems including very low level signal measurement, brushless DC motor control, and complex computational algorithms. There were also challenges dealing with a plethora of connectivity options including TCP/IP, IrDA, and the usual field bus protocols such as DeviceNet, Profibus and Modbus.</p>
<h2>Understanding the Industry</h2>
<p>RMB crafted a solution that was half the size of competing products while offering dramatically more functionality at a significantly lower cost. We were cognizant that commissioning costs of online instrumentation can be significant, and so we incorporated a level of diagnostics that was previously unheard of in the industry.</p>
<h2>Leading the Way</h2>
<p>The IR3000 has been the key to the tremendous growth of Sensortech’s MoistTech division. It has been the foundation upon which subsequent products have been based and it continues to lead the industry today.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/sensortech-ir3000/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autonomous Underwater Vehicle</title>
		<link>http://www.rmbconsulting.us/stone-aerospace-depthx</link>
		<comments>http://www.rmbconsulting.us/stone-aerospace-depthx#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:54:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=66</guid>
		<description><![CDATA[To the Moon As part of NASA’a planetary robotics program, Stone Aerospace was selected by NASA to develop an autonomous underwater robot capable of mapping its environment on the fly and using this map to return home. This was considered to be a critical step with the ultimate aim of exploring the sub-surface ocean of [...]]]></description>
			<content:encoded><![CDATA[<h2>To the Moon</h2>
<div class="photosRight"><a href="/photos/pictures/picture-26.jpg" target="_blank" class="thickbox" rel="gallery" title="DepthX under the hood"><img src="/photos/thumbnails/thumb-26.jpg" width="100" border="0" /></a><br />
<a href="/photos/pictures/picture-25.jpg" target="_blank" class="thickbox" rel="gallery" title="Mapping principle"><img src="/photos/thumbnails/thumb-25.jpg" width="100" border="0" /></a><br />
<a href="/photos/pictures/picture-28.jpg" target="_blank" class="thickbox" rel="gallery" title="DepthX rendering"><img src="/photos/thumbnails/thumb-28.jpg" width="100" border="0" /></a><br />
<a href="/photos/pictures/picture-24.jpg" target="_blank" class="thickbox" rel="gallery" title="DepthX being deployed for a mission"><img src="/photos/thumbnails/thumb-24.jpg" width="100" border="0" /></a>
</div>
<p>As part of NASA’a planetary robotics program, Stone Aerospace was selected by NASA to develop an autonomous underwater robot capable of mapping its environment on the fly and using this map to return home. This was considered to be a critical step with the ultimate aim of exploring the sub-surface ocean of Europa, one of the moons of Jupiter. While many of the technical problems were to be taken on by universities, Stone Aerospace needed a trusted partner that not only could take on the design of key components of the robot, but could also assess whether the other contractors were developing robust technical solutions in a timely manner.</p>
<h2>DepthX Circuit Boards</h2>
<p>RMB designed multiple printed circuit boards for use in the DepthX vehicle and made significant contributions to the power storage and distribution systems. Through periodic meetings and reviews RMB helped keep the project on track–particularly when another vendor’s system failed at low temperatures during a critical trial.</p>
<h2>Where No Man Has Gone Before</h2>
<p>The DepthX vehicle was successfully deployed in Northern Mexico in May 2007 and was used to autonomously explore hitherto unexplored cenotes. As a result of these successful trials, Stone Aerospace has received further contracts to develop the technology—and RMB is continuing to ensure the future success.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/stone-aerospace-depthx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magnetic Locator</title>
		<link>http://www.rmbconsulting.us/schonstedt-ga-92xtd</link>
		<comments>http://www.rmbconsulting.us/schonstedt-ga-92xtd#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:53:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[schonstedt]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=64</guid>
		<description><![CDATA[Testing the Waters When Schonstedt Instrument Company decided to introduce its GA-92XTd magnetic locator, it didn&#8217;t know if the radical mechanical design would be a big success or not. To minimize their development costs they repackaged an existing design for the electronics component. Shortly after its introduction, it was clear that Schonstedt had a hit [...]]]></description>
			<content:encoded><![CDATA[<h2>Testing the Waters</h2>
<div class="photosRight"><a class="thickbox" title="The Schonstedt XT extended and retracted" rel="gallery" href="/photos/pictures/picture-50.jpg" target="_blank"><img src="/photos/thumbnails/thumb-50.jpg" border="0" alt="" width="100" /></a><a class="thickbox" title="The Schonstedt XT retracted for carrying" rel="gallery" href="/photos/pictures/picture-49.jpg" target="_blank"><img src="/photos/thumbnails/thumb-49.jpg" border="0" alt="" width="100" /></a><a class="thickbox" title="User Interface of the Schonstedt XT" rel="gallery" href="/photos/pictures/picture-56.jpg" target="_blank"><img src="/photos/thumbnails/thumb-56.jpg" border="0" alt="" width="100" /></a></div>
<p>When Schonstedt Instrument Company decided to introduce its GA-92XTd magnetic locator, it didn&#8217;t know if the radical mechanical design would be a big success or not. To minimize their development costs they repackaged an existing design for the electronics component. Shortly after its introduction, it was clear that Schonstedt had a hit on their hands, and so they turned their attention to the manufacturing cost of the unit. RMB was asked to redesign the electronics with the express intent of eliminating cost. By delegating this task to RMB, they freed up their own engineers for other tasks and could easily quantify the cost of the redesign project.</p>
<h2>Passing the Test</h2>
<p>The first step was to analyze the existing analog circuit using a combination of SPICE simulation and in-circuit testing. Once this was complete, the bulk of the analog circuitry was removed and replaced with a microcontroller. Final verification of the design involved a series of blind tests with experienced users of the device. Only once the testers were unable to differentiate between the original and new designs was the redesign complete.</p>
<h2>Good Engineering Saves Money</h2>
<p>The redesigned main board featured only 4 layers (down from 6), less than half the number of components, and a cost reduction of 40%. The cost of the redesign was recouped by Schonstedt within just 6 months.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/schonstedt-ga-92xtd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diesel Burner Controller</title>
		<link>http://www.rmbconsulting.us/babington-ubiac</link>
		<comments>http://www.rmbconsulting.us/babington-ubiac#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:52:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[babington]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=62</guid>
		<description><![CDATA[The Need for Custom Design For many years Babington Technology had used an off-the-shelf controller for its Airtronic diesel burner. The US military was using it extensively as part of their field feeding systems, but it had several weaknesses that were creating support headaches for Babington. RMB was brought in to explore the possibility of [...]]]></description>
			<content:encoded><![CDATA[<h2>The Need for Custom Design</h2>
<div class="photosRight"><a class="thickbox" title="Close-up of the UBIAC control" rel="gallery" href="/photos/pictures/picture-9.jpg" target="_blank"><img src="/photos/thumbnails/thumb-9.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="Back of burner showing UBIAC" rel="gallery" href="/photos/pictures/picture-7.jpg" target="_blank"><img src="/photos/thumbnails/thumb-7.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="Babington burner alight under control of the UBIAC" rel="gallery" href="/photos/pictures/picture-3.jpg" target="_blank"><img src="/photos/thumbnails/thumb-3.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="Babington Griddle incorporating the UBIAC control" rel="gallery" href="/photos/pictures/picture-4.jpg" target="_blank"><img src="/photos/thumbnails/thumb-4.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" title="Babington mobile kitchen using multiple burners with UBIAC controls" rel="gallery" href="/photos/pictures/picture-6.jpg" target="_blank"><img src="/photos/thumbnails/thumb-6.jpg" border="0" alt="" width="100" /></a></div>
<p>For many years Babington Technology had used an off-the-shelf controller for its Airtronic diesel burner. The US military was using it extensively as part of their field feeding systems, but it had several weaknesses that were creating support headaches for Babington. RMB was brought in to explore the possibility of developing a custom control for the Airtronic burner. The challenge was to make the design backward compatible while adding new features for protection and diagnosis of the overall system.</p>
<h2>Simulated, Tested, and Approved</h2>
<p>The first step was to build a true-to-life simulation of the new proposed control. This included a fully working user interface that simulated behavior in the presence of under/over voltage line conditions, non-sinusoidal power, and ignition/fuel faults. The simulation demonstrated the controller&#8217;s look and function, thus cutting down enormously on the iterations typically required by such a project.</p>
<p>Upon approval of the simulated behavior, we designed the housing, a custom LCD, two printed circuit boards, and a substantial amount of complex firmware. After successful testing of the prototypes, we helped select a contract manufacturer and supervised the transfer of the design for production.</p>
<h2>Better Products Mean Bigger Profits</h2>
<p>Today Babington finally has a control that matches the sophistication of its Airtronic burner. The control&#8217;s new capabilities are opening up new markets for Babington, while its support issues are fading away as the UBIAC is deployed across its existing customer base.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/babington-ubiac/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Engineering Management Case Study</title>
		<link>http://www.rmbconsulting.us/engineering-consulting-engineering-management</link>
		<comments>http://www.rmbconsulting.us/engineering-consulting-engineering-management#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:51:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=60</guid>
		<description><![CDATA[When a major pharmaceutical company ran into an unexpected problem shortly before a new product was to be submitted for approval testing, they turned to RMB for an independent review of the proposed solution. The review was arranged at very short notice and required a consultant that understood all aspects of embedded systems design including [...]]]></description>
			<content:encoded><![CDATA[<div class="photosRight"><a href="/photos-stock/ist2_7958873-glucometer.jpg" target="_blank" class="thickbox" rel="gallery" title=""><img src="/photos-stock/ist2_7958873-glucometer.jpg" width="100" border="0" /></a>
</div>
<p>When a major pharmaceutical company ran into an unexpected problem shortly before a new product was to be submitted for approval testing, they turned to RMB for an independent review of the proposed solution. The review was arranged at very short notice and required a consultant that understood all aspects of embedded systems design including power supplies, power management, signal measurement, data analysis, and firmware. RMB was able to quickly understand the issues at hand, examine the proposed solution, and offer an independent assessment of the solution and risks.</p>
<p>At the end of the review process, the project manager expressed gratitude for our contribution and said he wished we had been available from the beginning.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/engineering-consulting-engineering-management/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Venture Capital Case Study</title>
		<link>http://www.rmbconsulting.us/engineering-consulting-venture-capital</link>
		<comments>http://www.rmbconsulting.us/engineering-consulting-venture-capital#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:49:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=55</guid>
		<description><![CDATA[A group of private investors were interested in purchasing a small technology company with very interesting intellectual property related to secure printing mechanisms. RMB was asked to: visit the company assess the technology determine whether the technology was sufficiently well developed and documented for ease of transfer After meeting with the technical staff, reviewing schematics, [...]]]></description>
			<content:encoded><![CDATA[<div class="photosRight"><a href="/photos-stock/ist2_10530899-stock-market-analysis.jpg" target="_blank" class="thickbox" rel="gallery" title=""><img src="/photos-stock/ist2_10530899-stock-market-analysis.jpg" width="100" border="0" /></a>
</div>
<p>A group of private investors were interested in purchasing a small technology company with very interesting intellectual property related to secure printing mechanisms. RMB was asked to:</p>
<ul>
<li>visit the company</li>
<li>assess the technology</li>
<li>determine whether the technology was sufficiently well developed and documented for ease of transfer</li>
</ul>
<p>After meeting with the technical staff, reviewing schematics, and poring over source code for several days, RMB was able to write a detailed report on our findings. The result was an informed decision that reduced risk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/engineering-consulting-venture-capital/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Law Firm Case Study</title>
		<link>http://www.rmbconsulting.us/engineering-consulting-law-firm</link>
		<comments>http://www.rmbconsulting.us/engineering-consulting-law-firm#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:48:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=53</guid>
		<description><![CDATA[A Canadian Printed Circuit Board manufacturer was suspected of knowingly participating in the manufacture of electronic devices designed to enable theft of copyrighted materials. An Anton Piller order (search and seizure order) was duly obtained. However, prior to its execution the legal team needed advice on what to look for when they walked through the [...]]]></description>
			<content:encoded><![CDATA[<div class="photosRight"><a class="thickbox" rel="gallery" href="/photos-stock/ist2_39931-computer-circuit-board-green.jpg" target="_blank"><img src="/photos-stock/ist2_39931-computer-circuit-board-green.jpg" border="0" alt="" width="100" /></a></div>
<p>A Canadian Printed Circuit Board manufacturer was suspected of knowingly participating in the manufacture of electronic devices designed to enable theft of copyrighted materials. An Anton Piller order (search and seizure order) was duly obtained. However, prior to its execution the legal team needed advice on what to look for when they walked through the door.</p>
<p>Beyond merely providing background information prior to the raid, an RMB engineer accompanied the legal team throughout the search and seizure process and was able to effectively identify parts and drawings related to the order.</p>
<p>Equally importantly, RMB was able to offer advice on how PCB manufacturers operate and how the raid should be conducted so as to have the minimum impact on the business, thus minimizing the possibility of the manufacturer suing the plaintiff for loss of revenue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/engineering-consulting-law-firm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Satellite TV Case Study</title>
		<link>http://www.rmbconsulting.us/expert-witness-satellite-tv</link>
		<comments>http://www.rmbconsulting.us/expert-witness-satellite-tv#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:47:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rmbconsulting.us/?p=51</guid>
		<description><![CDATA[When DISH Network needed expert help in analyzing satellite TV receivers that were suspected of being designed for TV piracy, they turned to RMB’s president Nigel Jones for help. DISH Network knew of Mr. Jones from his work and testimony as an opposing witness in earlier litigation. The distributors of the receivers in question alleged [...]]]></description>
			<content:encoded><![CDATA[<div class="photosRight"><a class="thickbox" rel="gallery" href="/photos-stock/iStock_000001770249XSmall.jpg" target="_blank"><img src="/photos-stock/iStock_000001770249XSmall.jpg" border="0" alt="" width="100" /></a><br />
<a class="thickbox" rel="gallery" href="/photos-stock/iStock_000004089317XSmall.jpg" target="_blank"><img src="/photos-stock/iStock_000004089317XSmall.jpg" border="0" alt="" width="100" /></a></div>
<p>When DISH Network needed expert help in analyzing satellite TV receivers that were suspected of being designed for TV piracy, they turned to RMB’s president Nigel Jones for help. DISH Network knew of Mr. Jones from his work and testimony as an opposing witness in earlier litigation.</p>
<p>The distributors of the receivers in question alleged the product had a legitimate use.  However, it was known the receivers were widely used for DISH Network piracy. Thus the essential question to be answered was, &#8220;Is there evidence to either support or disprove the hypothesis that these receivers were designed explicitly for piracy?&#8221;  The analysis involved studying the hardware in the receivers, together with the factory and pirate firmware. Extensive knowledge of both hardware and firmware was needed, together a very good understanding of manufacturing methods.</p>
<p>To date Mr. Jones has generated detailed reports in support of multiple cases in both the USA and Canada. The first case settled shortly after the submission of his report, with an agreed judgment in the amount of $106m being entered, along with a permanent injunction barring any further importation, distribution or other trafficking in the illicit receivers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rmbconsulting.us/expert-witness-satellite-tv/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
