OT: What is a stack (not the AVR type)?

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I don't even know enough to know how to phrase an appropriate question. I just tried to Google on "stack" and the responses were useless (at least they seemed so). I was just reading a thread and this is a quote from it:

Quote:
So zigbee is here, but where is the zigbee stack??? Does anybody know is there any free zigbee stack or even cheap commercial stacks? Or how you guys are going to use zigbee chip?

So specifically:

Quote:
but where is the zigbee stack???
what does that refer to?

I hear this term fairly often but don't have a clue what it is referring to. Just curious (and don't like being totally stupid :wink: ).

I do know what the stack and stack pointer are on an AVR but my gut tells me that stack used in the quotes above is something entirely different.

Thanks,
Steve

Last Edited: Sat. Jul 23, 2005 - 03:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In this context, I think that Stack is like the API (Aplication Programmer Interface), i.e., a library which take care of the details of the protocol. It is used in the same sense when people talk about "TCP/IP stack"

Any way, it seems that Wikipedia has a better answer than mine.

Regards,
Alejandro.
http://www.ocam.cl

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Thanks, now I have a better understanding. Your post (and link) gave me some more meaningful terms to search with (which I have already done). At least now I don't feel totally lost :roll: .

I take it then that when someone asks for a "stack" they are asking for the C source code which they can then port to the AVR? One of these days I might make it to the 21st century 8) .

Regards,
Steve

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I suspect that the term "stack" in this context is related to the idea of the OSI "Layer Model". The conventional representation shows the layers stacked on top of each other (physical layer, transport layer, etc).

Hence, the code implementing this model might be thought of as a "stack".

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I suspect that the term "stack" in this context is related to the idea of the OSI "Layer Model". The conventional representation shows the layers stacked on top of each other (physical layer, transport layer, etc).

You are correct (although it is not restricted to the OSI "Layer Model").

The term "protocol stack" is (was?) also used, distinguishing it from the "call stack" (or "call frame stack") that You weren't asking about.

IMHO an API is what is on the "top surface" of a layer on the protocol stack. Usually the top surface of the top layer of the stack.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, I`m going to program using the zigbee z-stack in a few months. I know the OSI-layers allthough I`m not familiar with the way of actually programming them to a microcontroller. I`m used to one main file with other source-files connected to it trough header-files. What would this look like when programming with the z-stack? I guess there will not be a main file with headers? What will the makefile look like?

All help will be appreciated

Pete