SlideShare a Scribd company logo
Embedded
Networks
Gökhan URUL
Computer Networks
• Client/Server Model
• File server A computer that stores and manages files for multiple users on a
network
• Web server A computer dedicated to responding to requests (from the browser
client) for web pages
• Local-area network (LAN) A network that connects a relatively small number of
machines in a relatively close geographical area
Types of Networks
• Ring topology A configuration that
connects all nodes in a closed loop on
which messages travel in one direction
• Star topology A configuration that
centers around one node to which all
others are connected and through which
all messages are sent
• Bus topology All nodes are connected to
a single communication line that carries
messages in both directions
• Ethernet
• CANBus
OSI Layer
Upper Layers
Lower Layers
Middle Layer
7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical
• Open Systems
Interconnection (OSI)
OSI Katmanı
OSI Layer
7. Application
6. Presentation
1. Physical
Node A
Data Out
Data In
To/from
Node B
Layer Mimarisi ve Gerçek Haberleşme
7. Application
1. Physical
7. Application
1.Physical
Node a Node b
Layer Mimarisi ve Sanal Haberleşme
7. Application
3. Network
7. Application
3. Network
Wireshark
RS232 Seri Haberleşme
• Bilgisayar ve çevre birimleri
• Askeri birimlerde çoğunlukla
• Eski bir teknoloji
• Çeşitli hızlarda 9600, 115200 Baudrate
• Haberleşme çeşidi: Stream byte
• Windows üzerinde ortak
•
RS422/485 Seri Haberleşme
• Bilgisayar ve çevre birimleri
• Askeri birimlerde çoğunlukla
• Çeşitli hızlarda 9600, 115200, 968000
Baudrate(bit/second)
• Haberleşme çeşidi: Stream byte
• Windows üzerinde ortak
RS232 – RS422 Seri Haberleşme
Programlama
• http://www.codeproject.com/Articles/678025/Serial-Comms-in-Csharp-for-Beginners
public static void Write()
{
_serialPort. Write(0x65);
}
public static void Read()
{
while (_continue)
{
try
{
string message = _serialPort.ReadExisting();
Console.WriteLine(message);
}
catch (TimeoutException) { }
}
}
using System.IO.Ports;
public class PortChat
{
static SerialPort _serialPort;
public static void Main()
{
_serialPort = new SerialPort();
// Seri kanal özellikleri ayarlanır.
_serialPort.PortName = SetPortName(“COM1”);
_serialPort.BaudRate = SetPortBaudRate(“9600”);
_serialPort.Parity = SetPortParity(“NONE”);
_serialPort.DataBits = SetPortDataBits(“8”);
_serialPort.StopBits = SetPortStopBits(“1”);
// Geçerlilik süreleri ayarlanır.
_serialPort.ReadTimeout = 500;
_serialPort.WriteTimeout = 500;
_serialPort.Open();
readThread.Start();
}
}
CANBus Haberleşme
• Bus topology
• The CAN protocol uses a modified
version of the Carrier Sense Multiple
Access/Collision Avoidance
(CSMA/CA) technique used on
Ethernet
CANBus Haberleşme
• Uses a single terminated twisted pair cable
• Is multi master
• Maximum Signal frequency used is 1 Mbit/sec
• Length is typically 40M at 1Mbit/sec up to 10KM at
5Kbits/sec
• Has high reliability with extensive error checking
• Typical maximum data rate achievable is 40KBytes/sec
• Maximum latency of high priority message <120 µsec at
1Mbit/sec
CANBus Haberleşme Yöntemi
• Start of frame (SOF)
• Message Identifier (MID) the Lower the value the Higher the priority of the message
its length is either 11 or 29 bits long depending on the standard being used
• Remote Transmission Request (RTR) = 0 ----- see "Remote Frames" para below for non
zero value
• Control field (CONTROL) this specifies the number of bytes of data to follow (0-8)
• Data Field (DATA) length 0 to 8 bytes
• CRC field containing a fifteen bit cyclic redundancy check code
• Acknowledge field (ACK) an empty slot which will be filled by any and every node that
receives the frame
it does NOT say that the node you intended the data for got it, just that at least
one node on the whole network got it.
• End of Frame (EOF)
CANBus OSI Layer
CANBus Programming
• IXXAT
• Lawicel
Beschreibung VCI V2 VCI V3
Board selection
XAT_SelectHardware
XAT_EnumHwEntry
XAT_FindHwEntry
XAT_GetConfig
vciSelectDeviceDlg
vciEnumDeviceOpen
vciEnumDeviceNe xt
vciEnumDeviceClose
vciFindDeviceByHwid
vciFindDeviceByCla ss
Board initialization VCI2_PrepareBoard vciDeviceOpen
Board info VCI_ReadBoardInfo vciDeviceGetInfo
CAN controller
initialization
VCI_InitCan
canControlOpen
canControlInitialize
CAN message filter VCI_SetAccMask canControlSetAccFilter
CAN status VCI_ReadCanStatus canControlGetStatus
CAN channel
initialization
VCI_ConfigQueue(Tx)
VCI_ConfigQueue(Rx)
VCI_AssignRxQueO bj
canChannelOpen
canChannelInitialize
canChannelActivate
CAN channel status VCI_ReadQueStatus canChannelGetStatus
CAN controller start VCI_StartCan canControlStart
CAN message
transmission
VCI_TransmitObjVCI_R
equestObj
canChannelSendMessa
ge
and
canChannelPostMessag
e
CAN message
receiving
VCI_ReadQueObj
(Receive-Callbacks)
canChannelReadMessa
ge
or
canChannelWaitRxEven
t
canCha
nnelPeekMessage
Cancel board VCI_CancelBoard
canChannelClose
canControlClose
vciDeviceClose
CANOpen
• Özellikleri
• CANopen a subset from CAL (CAN Application Layer) developed by CiA!
• Auto configuration the network
• Easy access to all device parameters
• Device synchronization
• Cyclic and event-driven data transfer
• Synchronous reading or setting of inputs, outputs or parameters
• Uygulamalar
• Machine automatisation
• Avantajları
• Accommodating the integration of very small sensors and actuators
• Open and vendor independent
• Support s inter-operability of different devices
• High speed real-time capability
CANOpen
• Object Dictionary
• Message Types
• Service Data Objects (SDOs)
• Process Data Objects (PDOs)
• Network Management (NMT)
• Guarding and Heartbeats
• Emergency Messages
CANOpen
CANOpen / PDO , SDO,
• Types
• transfer PDOs (TPDOs)
• receive PDOs (RPDOs)
• Specs
• Event driven
• Sync based
• polling
• Time driven
• Detaylı CanOpen mesajlaşmaları için: CanOpen_Manual.pdf
• Canopen Basics: CANopen Seminar.pdf

More Related Content

PDF
TC Flower Offload
PDF
User guide wishbone serializer
PPTX
OTV PPT by NETWORKERS HOME
PPTX
Fabric Path PPT by NETWORKERS HOME
PPTX
Single Host Docker Networking
PPTX
FEX -PPT By NETWORKERS HOME
PPTX
Slideshare - linux crypto
PDF
LF_OVS_17_OVN and Containers - An update.
TC Flower Offload
User guide wishbone serializer
OTV PPT by NETWORKERS HOME
Fabric Path PPT by NETWORKERS HOME
Single Host Docker Networking
FEX -PPT By NETWORKERS HOME
Slideshare - linux crypto
LF_OVS_17_OVN and Containers - An update.

What's hot (20)

PDF
DPDK Support for New HW Offloads
PDF
6LoWPAN: An open IoT Networking Protocol
PPTX
Vpc notes
PPTX
Docker Networking
PDF
Cilium - Container Networking with BPF & XDP
PDF
OVS Hardware Offload with TC Flower
PPTX
VPC PPT @NETWORKERSHOME
PDF
LF_OVS_17_OVS Performance on Steroids - Hardware Acceleration Methodologies
PDF
Open vSwitch Implementation Options
PDF
Contemporary Linux Networking
PDF
Networking and Go: An Epic Journey
PDF
ODP
HornetQ Presentation On JBoss World 2009
PDF
Cilium - BPF & XDP for containers
PDF
LF_OVS_17_State of the OVN
PDF
LF_OVS_17_Open vSwitch Offload: Conntrack and the Upstream Kernel
PPT
Ixia presentation
PPTX
Otv notes
PPTX
L3 and Multicasting PPT by NETWORKERS HOME
PDF
InfiniBand in the Lab (London VMUG)
DPDK Support for New HW Offloads
6LoWPAN: An open IoT Networking Protocol
Vpc notes
Docker Networking
Cilium - Container Networking with BPF & XDP
OVS Hardware Offload with TC Flower
VPC PPT @NETWORKERSHOME
LF_OVS_17_OVS Performance on Steroids - Hardware Acceleration Methodologies
Open vSwitch Implementation Options
Contemporary Linux Networking
Networking and Go: An Epic Journey
HornetQ Presentation On JBoss World 2009
Cilium - BPF & XDP for containers
LF_OVS_17_State of the OVN
LF_OVS_17_Open vSwitch Offload: Conntrack and the Upstream Kernel
Ixia presentation
Otv notes
L3 and Multicasting PPT by NETWORKERS HOME
InfiniBand in the Lab (London VMUG)
Ad

Similar to Embedded networks (20)

PPT
Controlled Area Networks in embedded systems
PPT
CAN(controlled area network) presentation
PPT
CONTROL AREA NETWORK FOR AUTOMOBILES.ppt
PPT
CANCANCANCANCANCANCANCANCANCANCANCANCANCAN
PPT
CAN bus basic_engineering_pptMulti-Master Architecture.ppt
PPT
CAN.ppt
PPTX
Controller Area Network(CAN)
PPTX
Introduction_to_CAN_Protocol: Basics.pptx
PDF
LI2Y(St)CH Can Bus Cables
PDF
3. Arduino Wired Communication Protocols.pdf
PDF
Can Protocol For Automobiles
PDF
4-10-4up.pdf data communication note by timon
PPT
Role of CAN BUS in automotives
PPTX
PDF
Kordik fundamental guidtoindustrialnetworking -v_imp
PPTX
Control area network protocol in embedded system
TXT
Socketcan
PDF
Scalable Service-Oriented Middleware over IP
PPT
datacommunication for engineering sudents
PPTX
Can network development using arm cortex m3
Controlled Area Networks in embedded systems
CAN(controlled area network) presentation
CONTROL AREA NETWORK FOR AUTOMOBILES.ppt
CANCANCANCANCANCANCANCANCANCANCANCANCANCAN
CAN bus basic_engineering_pptMulti-Master Architecture.ppt
CAN.ppt
Controller Area Network(CAN)
Introduction_to_CAN_Protocol: Basics.pptx
LI2Y(St)CH Can Bus Cables
3. Arduino Wired Communication Protocols.pdf
Can Protocol For Automobiles
4-10-4up.pdf data communication note by timon
Role of CAN BUS in automotives
Kordik fundamental guidtoindustrialnetworking -v_imp
Control area network protocol in embedded system
Socketcan
Scalable Service-Oriented Middleware over IP
datacommunication for engineering sudents
Can network development using arm cortex m3
Ad

Recently uploaded (20)

PPTX
additive manufacturing of ss316l using mig welding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
573137875-Attendance-Management-System-original
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
Project quality management in manufacturing
PPTX
Welding lecture in detail for understanding
PDF
PPT on Performance Review to get promotions
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Well-logging-methods_new................
PPTX
Sustainable Sites - Green Building Construction
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
composite construction of structures.pdf
additive manufacturing of ss316l using mig welding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
573137875-Attendance-Management-System-original
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Project quality management in manufacturing
Welding lecture in detail for understanding
PPT on Performance Review to get promotions
Embodied AI: Ushering in the Next Era of Intelligent Systems
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
R24 SURVEYING LAB MANUAL for civil enggi
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Well-logging-methods_new................
Sustainable Sites - Green Building Construction
OOP with Java - Java Introduction (Basics)
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
composite construction of structures.pdf

Embedded networks

  • 2. Computer Networks • Client/Server Model • File server A computer that stores and manages files for multiple users on a network • Web server A computer dedicated to responding to requests (from the browser client) for web pages • Local-area network (LAN) A network that connects a relatively small number of machines in a relatively close geographical area
  • 3. Types of Networks • Ring topology A configuration that connects all nodes in a closed loop on which messages travel in one direction • Star topology A configuration that centers around one node to which all others are connected and through which all messages are sent • Bus topology All nodes are connected to a single communication line that carries messages in both directions • Ethernet • CANBus
  • 4. OSI Layer Upper Layers Lower Layers Middle Layer 7. Application 6. Presentation 5. Session 4. Transport 3. Network 2. Data Link 1. Physical • Open Systems Interconnection (OSI)
  • 6. OSI Layer 7. Application 6. Presentation 1. Physical Node A Data Out Data In To/from Node B
  • 7. Layer Mimarisi ve Gerçek Haberleşme 7. Application 1. Physical 7. Application 1.Physical Node a Node b
  • 8. Layer Mimarisi ve Sanal Haberleşme 7. Application 3. Network 7. Application 3. Network
  • 10. RS232 Seri Haberleşme • Bilgisayar ve çevre birimleri • Askeri birimlerde çoğunlukla • Eski bir teknoloji • Çeşitli hızlarda 9600, 115200 Baudrate • Haberleşme çeşidi: Stream byte • Windows üzerinde ortak •
  • 11. RS422/485 Seri Haberleşme • Bilgisayar ve çevre birimleri • Askeri birimlerde çoğunlukla • Çeşitli hızlarda 9600, 115200, 968000 Baudrate(bit/second) • Haberleşme çeşidi: Stream byte • Windows üzerinde ortak
  • 12. RS232 – RS422 Seri Haberleşme Programlama • http://www.codeproject.com/Articles/678025/Serial-Comms-in-Csharp-for-Beginners public static void Write() { _serialPort. Write(0x65); } public static void Read() { while (_continue) { try { string message = _serialPort.ReadExisting(); Console.WriteLine(message); } catch (TimeoutException) { } } } using System.IO.Ports; public class PortChat { static SerialPort _serialPort; public static void Main() { _serialPort = new SerialPort(); // Seri kanal özellikleri ayarlanır. _serialPort.PortName = SetPortName(“COM1”); _serialPort.BaudRate = SetPortBaudRate(“9600”); _serialPort.Parity = SetPortParity(“NONE”); _serialPort.DataBits = SetPortDataBits(“8”); _serialPort.StopBits = SetPortStopBits(“1”); // Geçerlilik süreleri ayarlanır. _serialPort.ReadTimeout = 500; _serialPort.WriteTimeout = 500; _serialPort.Open(); readThread.Start(); } }
  • 13. CANBus Haberleşme • Bus topology • The CAN protocol uses a modified version of the Carrier Sense Multiple Access/Collision Avoidance (CSMA/CA) technique used on Ethernet
  • 14. CANBus Haberleşme • Uses a single terminated twisted pair cable • Is multi master • Maximum Signal frequency used is 1 Mbit/sec • Length is typically 40M at 1Mbit/sec up to 10KM at 5Kbits/sec • Has high reliability with extensive error checking • Typical maximum data rate achievable is 40KBytes/sec • Maximum latency of high priority message <120 µsec at 1Mbit/sec
  • 15. CANBus Haberleşme Yöntemi • Start of frame (SOF) • Message Identifier (MID) the Lower the value the Higher the priority of the message its length is either 11 or 29 bits long depending on the standard being used • Remote Transmission Request (RTR) = 0 ----- see "Remote Frames" para below for non zero value • Control field (CONTROL) this specifies the number of bytes of data to follow (0-8) • Data Field (DATA) length 0 to 8 bytes • CRC field containing a fifteen bit cyclic redundancy check code • Acknowledge field (ACK) an empty slot which will be filled by any and every node that receives the frame it does NOT say that the node you intended the data for got it, just that at least one node on the whole network got it. • End of Frame (EOF)
  • 17. CANBus Programming • IXXAT • Lawicel Beschreibung VCI V2 VCI V3 Board selection XAT_SelectHardware XAT_EnumHwEntry XAT_FindHwEntry XAT_GetConfig vciSelectDeviceDlg vciEnumDeviceOpen vciEnumDeviceNe xt vciEnumDeviceClose vciFindDeviceByHwid vciFindDeviceByCla ss Board initialization VCI2_PrepareBoard vciDeviceOpen Board info VCI_ReadBoardInfo vciDeviceGetInfo CAN controller initialization VCI_InitCan canControlOpen canControlInitialize CAN message filter VCI_SetAccMask canControlSetAccFilter CAN status VCI_ReadCanStatus canControlGetStatus CAN channel initialization VCI_ConfigQueue(Tx) VCI_ConfigQueue(Rx) VCI_AssignRxQueO bj canChannelOpen canChannelInitialize canChannelActivate CAN channel status VCI_ReadQueStatus canChannelGetStatus CAN controller start VCI_StartCan canControlStart CAN message transmission VCI_TransmitObjVCI_R equestObj canChannelSendMessa ge and canChannelPostMessag e CAN message receiving VCI_ReadQueObj (Receive-Callbacks) canChannelReadMessa ge or canChannelWaitRxEven t canCha nnelPeekMessage Cancel board VCI_CancelBoard canChannelClose canControlClose vciDeviceClose
  • 18. CANOpen • Özellikleri • CANopen a subset from CAL (CAN Application Layer) developed by CiA! • Auto configuration the network • Easy access to all device parameters • Device synchronization • Cyclic and event-driven data transfer • Synchronous reading or setting of inputs, outputs or parameters • Uygulamalar • Machine automatisation • Avantajları • Accommodating the integration of very small sensors and actuators • Open and vendor independent • Support s inter-operability of different devices • High speed real-time capability
  • 19. CANOpen • Object Dictionary • Message Types • Service Data Objects (SDOs) • Process Data Objects (PDOs) • Network Management (NMT) • Guarding and Heartbeats • Emergency Messages
  • 21. CANOpen / PDO , SDO, • Types • transfer PDOs (TPDOs) • receive PDOs (RPDOs) • Specs • Event driven • Sync based • polling • Time driven • Detaylı CanOpen mesajlaşmaları için: CanOpen_Manual.pdf • Canopen Basics: CANopen Seminar.pdf