SlideShare a Scribd company logo
1 of 17
Download to read offline
1
NETWORK GATEWAY
Created by Marek NOVAK (a.k.a OK2NMZ)
2
OBJECTIVE
Create a network device capable to interconnect multiple
communication interfaces:
CAN
RS485
USB (Communication Device Class a.k.a. VCOM)
Ethernet (UDP/TCP)
WiFi
3
POSSIBLE USE-CASES OF THE DEVICE
data concentrator
network adaptation
debugging tool
learning tool
4 . 1
HARDWARE
4 . 2
MICROCONTROLLER
STM32F207VFT6
ARM Cortex-M3 core
Clock frequency - 120 MHz
Flash memory - 768 kB
On chip SRAM - 128 kB
2xCAN, 2xUART, 3xI2C, 3xSPI, 4xUSART, SDIO, ETHERNET
Package - LQFP100
4 . 3
WIFI MODULE - LPT100
Wireless Standard 802.11 b/g/n
Frequency Range 2.412 GHz to 2.484 GHz
Transmit Power 16 dBm @ 802.11b
14 dBm @ 802.11g
13 dBm @ 802.11n
Data Interface UART, GPIO
Security Mechanisms WEP/WPA-PSK/WPA2-PSK
User Interface AT commands
4 . 4
OTHER INTERGRATED CIRCUITS
Ethernet PHY KSZ8081RNACA
CAN PHY MCP2551
RS485 PHY SN75176BD
MAC EEPROM 24AA02E48T
4 . 5
Image of the prototype
5 . 1
SOFTWARE
5 . 2
IDE FOR FIRMWARE
EM::BLOCKS
is a free C/C++ IDE built to meet the most
demanding needs of its users working in the field of
embedded software development It is designed to be very
extensible and fully configurable.
Em::Blocks
5 . 3
EMBEDDED WEB PAGES EDITOR
ATOM
is a text editor that's modern, approachable, yet
hackable to the core - a tool you can customize to do
anything but also use productively without ever touching a
config file.
Atom
5 . 4
SOFTWARE STACKS
- TCP/UDP/IP Stack
- Open source RTOS
- HAL Layer
LwIP
FreeRTOS
STM32F2xx HAL drivers
6 . 1
EMBEDDED WEB SERVER
Based on LwIP sockets
Runs in a separate thread
POST and GET methods implemented
Read-only file system contained
Used for configuration of data "pipes"
6 . 2
Configuration page - show config
g e t _ f u n c t i o n h t t p _ g e t _ f u n c t i o n s [ ] =
{
{ " / " , g e t _ i n d e x , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 2 } ,
{ " / s t a t s . h t m l " , g e t _ s y s t e m _ s t a t u s , G E T _ S T A T I C _ L O A D _ A F T E R , 1 1 } ,
{ " / f l s h . h t m l " , g e t _ c o n f i g , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 1 0 } ,
{ " / d n s . h t m l " , g e t _ d n s _ r e s o l v e , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 9 } ,
/ * C o m p a r i s o n a l w a y s m a t c h e s * /
{ " " , g e t _ s t a t i c _ o r _ 4 0 4 , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 0 } ,
} ;
p o s t _ f u n c t i o n h t t p _ p o s t _ f u n c t i o n s [ ] =
{
{ " w i f i T h r u " , p o s t _ w i f i _ t e s t , 8 } ,
{ " u s b T h r u " , p o s t _ u s b _ t e s t , 7 } ,
{ " R S 4 8 5 - 1 - d a t a " , p o s t _ r s 4 8 5 _ 1 _ t e s t , 1 2 } ,
{ " R S 4 8 5 - 2 - d a t a " , p o s t _ r s 4 8 5 _ 2 _ t e s t , 1 2 } ,
{ " c a n D a t a " , p o s t _ c a n _ t e s t , 7 } ,
{ " E t h S e n d " , p o s t _ e t h _ s e n d , 7 } ,
{ " f l a s h C f g " , p o s t _ u p l o a d _ c o n f i g , 8 } ,
/ * I f n o t h i n g m a t c h e s , t h i s d o e s * /
{ " " , p o s t _ u n k n o w n _ f i e l d , 0 } ,
} ;
simple to use
6 . 3
/ * *
* @ b r i e f I n i t i a l i z e t h e H T T P s e r v e r ( s t a r t i t s t h r e a d )
* @ p a r a m n o n e
* @ r e t v a l n o n e
* /
v o i d h t t p _ s e r v e r _ s o c k e t _ i n i t ( v o i d )
{
s y s _ t h r e a d _ n e w ( " H T T P " ,
h t t p _ s e r v e r _ s o c k e t _ t h r e a d ,
N U L L ,
D E F A U L T _ T H R E A D _ S T A C K S I Z E ,
W E B S E R V E R _ T H R E A D _ P R I O ) ;
}
... just call init and implement your callbacks
6 . 4
7
THANK YOUR FOR YOUR ATTENTION!
https://gitlab.com/OK2NMZ/NGW

More Related Content

What's hot

தமிழ் நெடுங்கணக்கு
தமிழ் நெடுங்கணக்குதமிழ் நெடுங்கணக்கு
தமிழ் நெடுங்கணக்கு
Raja Segaran
 
Certificate of Service A Neill Shift Supervisor_0007
Certificate of Service A Neill Shift Supervisor_0007Certificate of Service A Neill Shift Supervisor_0007
Certificate of Service A Neill Shift Supervisor_0007
Angie Neill
 
Testing Fuse Fabric with Pax Exam
Testing Fuse Fabric with Pax ExamTesting Fuse Fabric with Pax Exam
Testing Fuse Fabric with Pax Exam
Henryk Konsek
 
ERJ190_Fl.Ops.PDF
ERJ190_Fl.Ops.PDFERJ190_Fl.Ops.PDF
ERJ190_Fl.Ops.PDF
Vadim Rusu
 

What's hot (14)

Img 0020
Img 0020Img 0020
Img 0020
 
தமிழ் நெடுங்கணக்கு
தமிழ் நெடுங்கணக்குதமிழ் நெடுங்கணக்கு
தமிழ் நெடுங்கணக்கு
 
The Studio: In Progress
The Studio: In ProgressThe Studio: In Progress
The Studio: In Progress
 
Certificate of Service A Neill Shift Supervisor_0007
Certificate of Service A Neill Shift Supervisor_0007Certificate of Service A Neill Shift Supervisor_0007
Certificate of Service A Neill Shift Supervisor_0007
 
The Power of CSS
The Power of CSSThe Power of CSS
The Power of CSS
 
Trinity Kings World Leadership: Integrity 1st, Service Before Self, Excellenc...
Trinity Kings World Leadership: Integrity 1st, Service Before Self, Excellenc...Trinity Kings World Leadership: Integrity 1st, Service Before Self, Excellenc...
Trinity Kings World Leadership: Integrity 1st, Service Before Self, Excellenc...
 
Trinity Kings World Leadership(Family Archives): I, King Terrell prayed and a...
Trinity Kings World Leadership(Family Archives): I, King Terrell prayed and a...Trinity Kings World Leadership(Family Archives): I, King Terrell prayed and a...
Trinity Kings World Leadership(Family Archives): I, King Terrell prayed and a...
 
Img 0006
Img 0006Img 0006
Img 0006
 
Testing Fuse Fabric with Pax Exam
Testing Fuse Fabric with Pax ExamTesting Fuse Fabric with Pax Exam
Testing Fuse Fabric with Pax Exam
 
Nature ( Form 5 poem for literature component)
Nature ( Form 5 poem for literature component)Nature ( Form 5 poem for literature component)
Nature ( Form 5 poem for literature component)
 
Profiling Web Archives IIPC GA 2015
Profiling Web Archives IIPC GA 2015Profiling Web Archives IIPC GA 2015
Profiling Web Archives IIPC GA 2015
 
ERJ190_Fl.Ops.PDF
ERJ190_Fl.Ops.PDFERJ190_Fl.Ops.PDF
ERJ190_Fl.Ops.PDF
 
IPC13 Munich: Planning the Unplannable
IPC13 Munich: Planning the UnplannableIPC13 Munich: Planning the Unplannable
IPC13 Munich: Planning the Unplannable
 
ゲーム理論BASIC 第22回 -情報不完備ゲームとベイジアンゲーム-
ゲーム理論BASIC 第22回 -情報不完備ゲームとベイジアンゲーム-ゲーム理論BASIC 第22回 -情報不完備ゲームとベイジアンゲーム-
ゲーム理論BASIC 第22回 -情報不完備ゲームとベイジアンゲーム-
 

Viewers also liked

Gateway Networking
Gateway NetworkingGateway Networking
Gateway Networking
Usman Maaz
 
Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.
sflynn073
 

Viewers also liked (10)

Basics of Gateway By Naveen Karn
 Basics of Gateway By Naveen Karn Basics of Gateway By Naveen Karn
Basics of Gateway By Naveen Karn
 
Gateway Networking
Gateway NetworkingGateway Networking
Gateway Networking
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
PPT on Basic of Gateway
PPT on Basic of GatewayPPT on Basic of Gateway
PPT on Basic of Gateway
 
Cloud computing protocol
Cloud computing protocolCloud computing protocol
Cloud computing protocol
 
Web Api services using IBM Datapower
Web Api services using IBM DatapowerWeb Api services using IBM Datapower
Web Api services using IBM Datapower
 
Gateway Networking
Gateway NetworkingGateway Networking
Gateway Networking
 
IBM DataPower Gateways - What's new in 2016 v7.5.2
IBM DataPower Gateways - What's new in 2016 v7.5.2IBM DataPower Gateways - What's new in 2016 v7.5.2
IBM DataPower Gateways - What's new in 2016 v7.5.2
 
IBM DataPower Gateway - Common Use Cases
IBM DataPower Gateway - Common Use CasesIBM DataPower Gateway - Common Use Cases
IBM DataPower Gateway - Common Use Cases
 
Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.
 

Similar to Network gateway

Modeling avengers – open source technology mix for saving the world
Modeling avengers – open source technology mix for saving the worldModeling avengers – open source technology mix for saving the world
Modeling avengers – open source technology mix for saving the world
Cédric Brun
 
Modeling avengers – open source technology mix for saving the world econ fr
Modeling avengers – open source technology mix for saving the world econ frModeling avengers – open source technology mix for saving the world econ fr
Modeling avengers – open source technology mix for saving the world econ fr
Cédric Brun
 
Lebanese construction law
Lebanese construction lawLebanese construction law
Lebanese construction law
bassamnakfour
 

Similar to Network gateway (20)

Modeling avengers – open source technology mix for saving the world
Modeling avengers – open source technology mix for saving the worldModeling avengers – open source technology mix for saving the world
Modeling avengers – open source technology mix for saving the world
 
Modeling avengers – open source technology mix for saving the world econ fr
Modeling avengers – open source technology mix for saving the world econ frModeling avengers – open source technology mix for saving the world econ fr
Modeling avengers – open source technology mix for saving the world econ fr
 
DevOps導入支援サービス
DevOps導入支援サービスDevOps導入支援サービス
DevOps導入支援サービス
 
Create Custom Post Type Plugin
Create Custom Post Type PluginCreate Custom Post Type Plugin
Create Custom Post Type Plugin
 
Srd991 iom german
Srd991 iom germanSrd991 iom german
Srd991 iom german
 
Srd991 iom german
Srd991 iom germanSrd991 iom german
Srd991 iom german
 
Linuxカーネルを読んで改めて知るプロセスとスレッドの違い
Linuxカーネルを読んで改めて知るプロセスとスレッドの違いLinuxカーネルを読んで改めて知るプロセスとスレッドの違い
Linuxカーネルを読んで改めて知るプロセスとスレッドの違い
 
Spring Roo 2.0 Preview at Spring I/O 2016
Spring Roo 2.0 Preview at Spring I/O 2016 Spring Roo 2.0 Preview at Spring I/O 2016
Spring Roo 2.0 Preview at Spring I/O 2016
 
Code GPU with CUDA - Identifying performance limiters
Code GPU with CUDA - Identifying performance limitersCode GPU with CUDA - Identifying performance limiters
Code GPU with CUDA - Identifying performance limiters
 
Arrays in c
Arrays in cArrays in c
Arrays in c
 
Code GPU with CUDA - Applying optimization techniques
Code GPU with CUDA - Applying optimization techniquesCode GPU with CUDA - Applying optimization techniques
Code GPU with CUDA - Applying optimization techniques
 
Assembly Language Tutorials for Windows - 02 x86-64 Architecture
Assembly Language Tutorials for Windows - 02 x86-64 ArchitectureAssembly Language Tutorials for Windows - 02 x86-64 Architecture
Assembly Language Tutorials for Windows - 02 x86-64 Architecture
 
Profile Serialization IIPC GA 2015
Profile Serialization IIPC GA 2015Profile Serialization IIPC GA 2015
Profile Serialization IIPC GA 2015
 
C Programming Homework Help
C Programming Homework HelpC Programming Homework Help
C Programming Homework Help
 
DevOps導入支援サービス(Ver.2)
DevOps導入支援サービス(Ver.2)DevOps導入支援サービス(Ver.2)
DevOps導入支援サービス(Ver.2)
 
Elixirでハードウェアが作れちゃう,かも!!? データフロー型ハードウェア設計環境Cockatriceのご紹介
Elixirでハードウェアが作れちゃう,かも!!?データフロー型ハードウェア設計環境Cockatriceのご紹介Elixirでハードウェアが作れちゃう,かも!!?データフロー型ハードウェア設計環境Cockatriceのご紹介
Elixirでハードウェアが作れちゃう,かも!!? データフロー型ハードウェア設計環境Cockatriceのご紹介
 
InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266
InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266
InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266
 
InterCon 2016 - Blockchain e smart-contracts em Ethereu
InterCon 2016 - Blockchain e smart-contracts em EthereuInterCon 2016 - Blockchain e smart-contracts em Ethereu
InterCon 2016 - Blockchain e smart-contracts em Ethereu
 
history-2
history-2history-2
history-2
 
Lebanese construction law
Lebanese construction lawLebanese construction law
Lebanese construction law
 

Recently uploaded

如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
mestb
 
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotecAbortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
mestb
 
Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...
Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...
Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...
drjose256
 
Balancing of rotating bodies questions.pptx
Balancing of rotating bodies questions.pptxBalancing of rotating bodies questions.pptx
Balancing of rotating bodies questions.pptx
joshuaclack73
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
vwymvu
 
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec QatarBuy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
samsungultra782445
 
[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...
[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...
[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...
daisycvs
 
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
mestb
 
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
mestb
 
Abortion Clinic in Jeddah +966572737505 buy cytotec pills
Abortion Clinic in Jeddah +966572737505 buy cytotec pillsAbortion Clinic in Jeddah +966572737505 buy cytotec pills
Abortion Clinic in Jeddah +966572737505 buy cytotec pills
Abortion pills in Riyadh +966572737505 get cytotec
 
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotecAbortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Vibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptxVibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptx
joshuaclack73
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
mestb
 
Cytotec 200 mcg in doha [+966572737505 ] buy abortion pills
Cytotec 200 mcg in doha [+966572737505 ] buy abortion pillsCytotec 200 mcg in doha [+966572737505 ] buy abortion pills
Cytotec 200 mcg in doha [+966572737505 ] buy abortion pills
samsungultra782445
 

Recently uploaded (19)

如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
 
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotecAbortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
 
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
 
Cyber-Security-power point presentation.
Cyber-Security-power point presentation.Cyber-Security-power point presentation.
Cyber-Security-power point presentation.
 
Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...
Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...
Top^Clinic Soweto ^%[+27838792658_termination in florida_Safe*Abortion Pills ...
 
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
 
Balancing of rotating bodies questions.pptx
Balancing of rotating bodies questions.pptxBalancing of rotating bodies questions.pptx
Balancing of rotating bodies questions.pptx
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
 
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec QatarBuy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
 
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
 
[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...
[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...
[[Jeddah]] IN RIYADH +2773-7758557]] Abortion pills in Jeddah Cytotec in Riya...
 
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
 
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
 
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhhMatrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
 
Abortion Clinic in Jeddah +966572737505 buy cytotec pills
Abortion Clinic in Jeddah +966572737505 buy cytotec pillsAbortion Clinic in Jeddah +966572737505 buy cytotec pills
Abortion Clinic in Jeddah +966572737505 buy cytotec pills
 
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotecAbortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
 
Vibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptxVibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptx
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
 
Cytotec 200 mcg in doha [+966572737505 ] buy abortion pills
Cytotec 200 mcg in doha [+966572737505 ] buy abortion pillsCytotec 200 mcg in doha [+966572737505 ] buy abortion pills
Cytotec 200 mcg in doha [+966572737505 ] buy abortion pills
 

Network gateway

  • 1. 1 NETWORK GATEWAY Created by Marek NOVAK (a.k.a OK2NMZ)
  • 2. 2 OBJECTIVE Create a network device capable to interconnect multiple communication interfaces: CAN RS485 USB (Communication Device Class a.k.a. VCOM) Ethernet (UDP/TCP) WiFi
  • 3. 3 POSSIBLE USE-CASES OF THE DEVICE data concentrator network adaptation debugging tool learning tool
  • 5. 4 . 2 MICROCONTROLLER STM32F207VFT6 ARM Cortex-M3 core Clock frequency - 120 MHz Flash memory - 768 kB On chip SRAM - 128 kB 2xCAN, 2xUART, 3xI2C, 3xSPI, 4xUSART, SDIO, ETHERNET Package - LQFP100
  • 6. 4 . 3 WIFI MODULE - LPT100 Wireless Standard 802.11 b/g/n Frequency Range 2.412 GHz to 2.484 GHz Transmit Power 16 dBm @ 802.11b 14 dBm @ 802.11g 13 dBm @ 802.11n Data Interface UART, GPIO Security Mechanisms WEP/WPA-PSK/WPA2-PSK User Interface AT commands
  • 7. 4 . 4 OTHER INTERGRATED CIRCUITS Ethernet PHY KSZ8081RNACA CAN PHY MCP2551 RS485 PHY SN75176BD MAC EEPROM 24AA02E48T
  • 8. 4 . 5 Image of the prototype
  • 10. 5 . 2 IDE FOR FIRMWARE EM::BLOCKS is a free C/C++ IDE built to meet the most demanding needs of its users working in the field of embedded software development It is designed to be very extensible and fully configurable. Em::Blocks
  • 11. 5 . 3 EMBEDDED WEB PAGES EDITOR ATOM is a text editor that's modern, approachable, yet hackable to the core - a tool you can customize to do anything but also use productively without ever touching a config file. Atom
  • 12. 5 . 4 SOFTWARE STACKS - TCP/UDP/IP Stack - Open source RTOS - HAL Layer LwIP FreeRTOS STM32F2xx HAL drivers
  • 13. 6 . 1 EMBEDDED WEB SERVER Based on LwIP sockets Runs in a separate thread POST and GET methods implemented Read-only file system contained Used for configuration of data "pipes"
  • 14. 6 . 2 Configuration page - show config
  • 15. g e t _ f u n c t i o n h t t p _ g e t _ f u n c t i o n s [ ] = { { " / " , g e t _ i n d e x , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 2 } , { " / s t a t s . h t m l " , g e t _ s y s t e m _ s t a t u s , G E T _ S T A T I C _ L O A D _ A F T E R , 1 1 } , { " / f l s h . h t m l " , g e t _ c o n f i g , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 1 0 } , { " / d n s . h t m l " , g e t _ d n s _ r e s o l v e , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 9 } , / * C o m p a r i s o n a l w a y s m a t c h e s * / { " " , g e t _ s t a t i c _ o r _ 4 0 4 , G E T _ N O _ H E A D E R | G E T _ N O _ F O O T E R , 0 } , } ; p o s t _ f u n c t i o n h t t p _ p o s t _ f u n c t i o n s [ ] = { { " w i f i T h r u " , p o s t _ w i f i _ t e s t , 8 } , { " u s b T h r u " , p o s t _ u s b _ t e s t , 7 } , { " R S 4 8 5 - 1 - d a t a " , p o s t _ r s 4 8 5 _ 1 _ t e s t , 1 2 } , { " R S 4 8 5 - 2 - d a t a " , p o s t _ r s 4 8 5 _ 2 _ t e s t , 1 2 } , { " c a n D a t a " , p o s t _ c a n _ t e s t , 7 } , { " E t h S e n d " , p o s t _ e t h _ s e n d , 7 } , { " f l a s h C f g " , p o s t _ u p l o a d _ c o n f i g , 8 } , / * I f n o t h i n g m a t c h e s , t h i s d o e s * / { " " , p o s t _ u n k n o w n _ f i e l d , 0 } , } ; simple to use
  • 16. 6 . 3 / * * * @ b r i e f I n i t i a l i z e t h e H T T P s e r v e r ( s t a r t i t s t h r e a d ) * @ p a r a m n o n e * @ r e t v a l n o n e * / v o i d h t t p _ s e r v e r _ s o c k e t _ i n i t ( v o i d ) { s y s _ t h r e a d _ n e w ( " H T T P " , h t t p _ s e r v e r _ s o c k e t _ t h r e a d , N U L L , D E F A U L T _ T H R E A D _ S T A C K S I Z E , W E B S E R V E R _ T H R E A D _ P R I O ) ; } ... just call init and implement your callbacks
  • 17. 6 . 4 7 THANK YOUR FOR YOUR ATTENTION! https://gitlab.com/OK2NMZ/NGW