State Machine Diagram for a Telephone?

AI Thread Summary
A State Machine Diagram for a telephone includes several key states such as Idle and on hook, Dial tone, Dialing, and Connected. Each state transitions based on specific events, like moving from Idle and off hook to Dial tone when a phone carrier connection is established. The diagram represents these states and transitions as a directed graph, highlighting the initial and potential end states. Understanding these components is essential for visualizing the operational flow of a telephone system. This foundational knowledge aids in grasping the concept of state machines in software engineering.
kloong
Messages
35
Reaction score
0
Hi, I'm not from Software Engineering background and I'm trying to learn State Machine Diagrams on my own by looking at resources on the internet.

I'm trying to come up with a State Machine Diagram for a telephone but I can't seem to find an answer on the internet. Can you help me by telling me how should a state diagram for a telephone looks like?

Thank you!
 
Technology news on Phys.org
First list the possible states for a telephone. For example:
1) Idle and on hook
2) Idle and off hook
3) Dial tone
4) Dialing
5) Connecting
6) On hook and Ringing
7) Connected
8) Announcing Busy
9) Announcing Off hook

Now draw a bubble for each one and describe what events cause a transition from one of those states to another.

For example:
(Idle and off hook) -> Phone carrier connection -> (Dial tone)
(IDial tone) -> User operating dial -> (Dialing)
(Dialing) -> Phone carrier recognizes dialed number -> (Connecting)
...
 
'State Machine' also known as 'Finite State Automaton', is a directed Graph of 'States' and 'Transitions' between 'States'.

it has 'Initial State' & 'End State'.

'End state' might be reachable or not.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top