Appendix to Vehicle Automation and Security (Matthew Grojean & Nathan Hart) Nathan Hart Professor Zalewski 04/25/2014

Size: px
Start display at page:

Download "Appendix to Vehicle Automation and Security (Matthew Grojean & Nathan Hart) Nathan Hart Professor Zalewski 04/25/2014"

Transcription

1 Page 1 Appendix to Vehicle Automation and Security (Matthew Grojean & Nathan Hart) Nathan Hart Professor Zalewski 04/25/2014 A1. Overview of Previous Project The goal of the original Vehicle Automation and Security project [1] was to create and implement a functioning vehicle remote control unit using an Atmel microcontroller. The Atmel microcontroller was to simulate the behavior of a car which can receive basic commands over the Internet. The project was mainly a tool to understand networks and communication over the Internet. The design of the project consisted primarily of the Atmel microcontroller which could receive commands and return a status over a serial to Wi-Fi adapter. The second half of the project is a web interface which allows a user to issue commands to the Atmel board and receive the status back from the board. All of the communications in the project are through UDP packets on port UDP port The system architecture is shown in figure 1. Figure 1. System architecture The servers IP address needs to be hard coded into the Serial to Wi-Fi adapter so it knows where to initiate the communications. The server can then pull the IP address of the Atmel board via the status updates it constantly is sending. This supports the original goal of the project so essentially the car can be mobile and connect from anywhere and the server can issue commands to whichever IP address the Atmel board is on.

2 Page 2 There were a few things needing work and improvements in the project. All of the pieces of the previous project were functioning separately but not communicating correctly in the production environment. The Atmel microcontroller and web server are both connected to the FGCU public network which blocks the UDP ports necessary for full functionality. Another main issue was the serial to Wi-Fi adapter used with the Atmel was also very prone to errors and would constantly cause hassles and delays due to freezing and non-responsiveness. The web panel has 3 buttons. The first button issues the command to lock or unlock the car and receive the new lock status back from the board The second button issues the command to start of turn off the car engine and receive the engine status of the car back. The last button is the refresh button which receives the status of everything. The Atmel board itself has physical hardware buttons to lock, unlock, start, and turn off the car as well. The web panel is an ASP.Net web page with C# code running on the back end. The simple user interface of the web panel is shown in Figure 2 and a snippet of code which is sending a command to the Atmel board is shown in Figure 3. Figure 2. User interface

3 Page 3 Figure 3. Sending command from the server The Atmel board is programmed to accept commands from the server/gui and send a constant stream with the status of the board to the server. The board is also programmed to accept commands from the hardware buttons which can be reflected back on the website. The board also displays LEDs to show to the user which command was executed. The Atmel board is programmed in C and can really only communicate through serial which is why the serial to Wi- Fi adapter is such a vital component in the project. The code which allows the Atmel board to receive commands is shown in Figure 4. The getchar command is normally a blocking call in C programming so running it as a different thread was essential to get the Atmel to function as necessary. // Get a character from the USART Receiver buffer char getchar(void) char c; while(rx_counter == 0) /* wait for a character... */ ; c = Rx_Buffer[RX_Rd_Index]; /* get one from the buffer..*/ if(++rx_rd_index > RX_BUFFER_SIZE) /* wrap the pointer */ RX_Rd_Index = 0; if(rx_counter) RX_Counter--; /* keep a count (buffer size) */ return c;

4 Page 4 Figure 4. getchar command A2. New Objectives The new objectives are all aimed at getting the original project to function as originally intended. The most important improvement is to get the communications working between the server which hosts the web panel and the Atmel microcontroller. The other objectives are to fix a few bugs in the code and add a video stream of the Atmel to the website. The bugs are a few random errors that occur in the website. The video stream will allow the user to view the lights on the Atmel when sending a command to verify the correct command was sent. A few other non-essential changes have to be made to the project to make things easier to user. One of those changes is to remove the login page on the website so users can enter directly in to the control panel. Another change is to prevent the page from refreshing every time a button is pressed which will provide a much nicer UI. A3. Implementation The objective that was most critical to work on first is the network connectivity issue. The issue had two possible fixes. The one fix was to continue working with the network team at school to open up all the necessary firewall restrictions and UDP ports. This task seemed to be going nowhere since no matter what they said they tried, the UDP packets would never reach their destination. The next option was to purchase a new Serial to Wi-Fi adapter which could connect to a different network in the lab at school. This network has enterprise level security which the old adapter didn t support. The second option ended up being the better option especially due to the fact that the old adapter kept freezing up and not working for periods of time. The new serial to Wi-Fi adapter was a Sollae EzTCP adapter [2] and supported more WLAN security policies such as WPA-Enterprise. After a few hours of work setting up the new Wi-Fi adapter the server was able to connect the Atmel board to the local network in the lab and thus bypass much of the school network. Configuring the Wi-Fi adapter was done through a program called eztcp Manager which is put out by the company who makes the adapter [2]. The

5 Page 5 first step in configuring this device is to put it into Soft AP mode by setting the switch on the side as shown in Figure 5. Figure 5. Soft AP Switch Once the device is put into Soft AP mode connect to the Wi-Fi network it broadcasts on with the computer that has eztcp Manager on it. Once on the network the eztcp Manager can connect to the device after clicking Read by using the IP address and port as shown in Figure 6. Figure 6. Connecting to eztcp device Once connected there are several settings that needed to be set as follows: 1. The adapter should pull a local IP address from the router so it is necessary to set that as shown in Figure 7.

6 Page 6 Figure 7. Configuring IP 2. The adapters serial port settings and communications settings need to be set as shown in Figure 8.

7 Page 7 Figure 8. Configuring UDP communication and Com Port 3. The next step is to set the settings to connect to a specific network as shown below. In this case the connection is to a local network in the lab at FGCU in order that the communications between the server and eztcp are not blocked. Figure 9. Configuring W-LAN 4. Verify the last of the settings on the options page as shown in Figure 10

8 Page 8 Figure 10. Verification After entering these settings and clicking the Write button in eztcp manager, the device is able to connect to the local network. This fixed all of the communication issues between the server and the Atmel board. The next problem to be fixed was the random errors occurring on the web panel. Occasionally on a page refresh the whole site would crash. The problem was eventually narrowed down to a UDP socket not being correctly disposed of in the code on page refresh. The issue was resolved after adding the necessary C# code to dispose of the resources properly as shown below: using (Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)) Placing all disposable resources in a using clause in C# handles all of the necessary disposing of objects which made this fix fairly simple to implement.

9 Page 9 The last thing to be added to the project was a webcam stream embedded into the web site. This required a webcam be plugged into the server, and streamed to a certain port on the server which could be displayed on the web. The program used to broadcast the webcam feed to the web is called YAWCam and it can send an MJPEG stream to a specific port [3]. After getting the broadcast set up with YAWCam all that is needed is to add the embedded stream to the site. The following HTML does just that: <object id="mediaplayer" width="640" height="540" type="application/xoleobject"> <param name="filename"value=" <param name="autostart" value="true"> <param name="showcontrols" value="false"> <param name="showstatusbar" value="false"> <param name="showdisplay" value="false"> <embed type="application/x-mplayer2" src=" width="640" height="540" /> </object> The steps for setting up the YAWCam streaming are shown as follows: 1. Open YawCam. Click on Settings > Device > Change To. Select the desired webcam to embed into the site. (Figure 11) Figure 11. YAWCam webcam Settings

10 Page Click on Settings > Edit Settings. Under the Output heading on the Left side click on stream and change the Port to the desired port and Stream type to MJPEG as shown in Figure 12 Figure 12. Stream Settings A4. Testing Testing the project consists of navigating to the Car Control Panel at atmel.fgcu.edu and testing the commands are received by the board and the status is sent back to the site. The video stream makes it extremely easy to confirm the commands were sent properly. If the lights go off on the board and the status changes on the website then you know that everything is working. Since all of the fixes have been implemented all of these aspects of the project have been tested thoroughly without any errors. For example when clicking the Unlock car button, as shown in Figure 13

11 Page 11 Figure 13. Unlocking The status is succesfully updated as shown in Figure 14. Figure 14. Status Update In the case that the user is using the Chrome web browser an extension called VLC [4] needs to be installed to view the video stream. A5. Conclusion After the described changes were implemented the purpose of the original project is now accomplished. The web site can now be a demonstration for a Remote Vehicle Control unit when combined with the Atmel microcontroller. The microcontroller can send a status to the server and receive commands back from it. This completely simulates the behavior a car could have with the same web panel. The project can still be improved on both ends to add more features and commands to be sent from the website. For example some temperature sensors could be added to the microcontroller to simulate the temperature of the car and allow the Air conditioning in the car to be controlled remotely as well. Also adding motors to the Atmel microcontoller would be beneficial to further simulate a real car.

12 Page 12 A6. References [1] Grojean, Matthew, and Nathan Hart. Vehicle Automation and Security. Dr. Zalewski [2] "CSW-H85F - RS232/RS422/RS485 to WiFi Adapter." CSW-H85F. N.p., n.d. Web. 08 Apr < [3] "YAWCam." YawCam. N.p., n.d. Web. 08 Apr < [4] VideoLan. VideoLan. N.p., n.d. Web. 25 Apr < A7. Appendix Server Side Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net.Sockets; using System.Net; using System.Text; namespace CarControlPanel public partial class _Default : Page public int SendPort = 2222; public int ReceivePort = 2222; protected void Page_Load(object sender, EventArgs e) if (!IsPostBack) getstatus(); public void getstatus() try

13 Page 13 using (Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)) using (UdpClient receivingudpclient = new UdpClient(ReceivePort)) IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Any, 0); receivingudpclient.client.receivetimeout = 5000; System.Threading.Thread.Sleep(150); Byte[] receivebytes = receivingudpclient.receive(ref RemoteIpEndPoint); //store ip address for sending commands back to Atmel. Session["ip"] = RemoteIpEndPoint.Address.ToString(); state"; //lblerror.visible = false; lblerror.text = Session["ip"].ToString(); if (receivebytes[0] == '1') lbllockstate.text = "Car is locked"; btnlockstate.text = "Unlock car"; else if (receivebytes[0] == '0') lbllockstate.text = "Car is unlocked"; btnlockstate.text = "Lock car"; else lbllockstate.text = "Error getting lock if (receivebytes[1] == '0') lblenginestate.text = "Engine is off"; btnenginestate.text = "Start car"; else if (receivebytes[1] == '1') lblenginestate.text = "Engine is running"; btnenginestate.text = "Turn off car"; else

14 Page 14 engine state"; sounding"; sounding!!!!"; state"; lblenginestate.text = "Error getting if (receivebytes[2] == '0') lblalarmstate.text = "Car alarm is not else if (receivebytes[2] == '1') lblalarmstate.text = "Car alarm is else lblalarmstate.text = "Error getting alarm lblerror.visible = false; catch (Exception) //timeout period expired. cannot find atmel lblalarmstate.visible = false; lblenginestate.visible = false; lbllockstate.visible = false; btnenginestate.visible = false; btnlockstate.visible = false; btnrefreshall.visible = false; lblerror.visible = true; lblerror.text = "Cannot communicate with Car!!"; public void sendcommand(string msg) using (Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)) try IPAddress serveraddr = IPAddress.Parse((String)Session["ip"]); IPEndPoint endpoint = new IPEndPoint(serverAddr, SendPort);

15 Page 15 byte[] send_buffer = Encoding.ASCII.GetBytes(msg); sock.sendto(send_buffer, endpoint); lblerror.visible = false; catch (Exception) lblerror.visible = true; lblerror.text = "Error Sending command"; protected void btnlockstate_click(object sender, EventArgs e) if (btnlockstate.text == "Lock car") sendcommand("0"); else sendcommand("1"); System.Threading.Thread.Sleep(1000); getstatus(); protected void btnenginestate_click(object sender, EventArgs e) if (btnenginestate.text == "Start car") sendcommand("2"); else sendcommand("3"); System.Threading.Thread.Sleep(1000); getstatus(); protected void btnrefreshall_click(object sender, EventArgs e) getstatus();

16 Page 16 Atmel Code: #include <mega8515.h> #define xtal L /* quartz crystal frequency [Hz] */ #include <delay.h> //int interruptcount = 0; // USART Receiver buffer #define RX_BUFFER_SIZE 24 char Rx_Buffer[RX_BUFFER_SIZE+1]; // character array (buffer) char RX_Wr_Index; //index of next char to be put into the buffer char RX_Rd_Index; //index of next char to be fetched from the buffer char RX_Counter; //a total count of characters in the buffer bit RX_Buffer_Overflow; // This flag is set on USART Receiver // buffer overflow // USART Transmit buffer #define TX_BUFFER_SIZE 24 char TX_Buffer [TX_BUFFER_SIZE+1]; // character array (buffer) char TX_Rd_Index; //index of next char to be put into the buffer char TX_Wr_Index; //index of next char to be fetched from the buffer char TX_Counter; //a total count of characters in the buffer bit fprimedit; // this flag is used to start the transmit //taken from page 176 // interrupts, when the buffer is no longer empty // USART Receiver interrupt service routine interrupt [USART_RXC] void usart_rx_isr(void) char c; c = UDR; Rx_Buffer[RX_Wr_Index] = c; /* put received char in buffer */ if(++rx_wr_index > RX_BUFFER_SIZE) /* wrap the pointer */ RX_Wr_Index = 0; if(++rx_counter > RX_BUFFER_SIZE) /* keep a character count */ /* overflow check.. */ RX_Counter = RX_BUFFER_SIZE; /* if too many chars came */ RX_Buffer_Overflow = 1; /* in before they could be used */ /* that could cause an error!! */ // Get a character from the USART Receiver buffer char getchar(void) char c; while(rx_counter == 0) /* wait for a character... */ ; c = Rx_Buffer[RX_Rd_Index]; /* get one from the buffer..*/ if(++rx_rd_index > RX_BUFFER_SIZE) /* wrap the pointer */ RX_Rd_Index = 0; if(rx_counter)

17 Page 17 RX_Counter--; /* keep a count (buffer size) */ return c; // USART Transmitter interrupt service routine interrupt [USART_TXC] void usart_tx_isr(void) if(tx_counter!= 0) if(fprimedit == 1) // only send a char if one in buffer fprimedit = 0; // transmission, then don t send the //test and wrap the pointer if(++tx_rd_index > TX_BUFFER_SIZE) TX_Rd_Index = 0; TX_Counter--; // keep track of the counter if(tx_counter!= 0) UDR = TX_Buffer[TX_Rd_Index]; // otherwise, send char out port // test and wrap the pointer if(++tx_rd_index > TX_BUFFER_SIZE) TX_Rd_Index = 0; TX_Counter--; //keep track of the counter UCSRA = 0x40; // clear TX interrupt flag // Write a character to the USART Transmitter buffer void putchar(char c) char stuffit = 0; while(tx_counter > (TX_BUFFER_SIZE-1)) ; //WAIT!! Buffer is getting full!! if(tx_counter == 0) // if buffer empty, setup for interrupt stuffit = 1; TX_Buffer[TX_Wr_Index++]=c; // jam the char in the buffer.. if(tx_wr_index > TX_BUFFER_SIZE) // wrap the pointer TX_Wr_Index = 0; // keep track of buffered chars TX_Counter++; if(stuffit == 1) // do we have to "Prime the pump"? fprimedit = 1; UDR = c; // this char starts the TX interrupts.. //timer interrupt

18 Page 18 /* interrupt [TIM0_OVF] void timer0_ovf_isr(void) TCNT0=0; if(interruptcount++ == 500) putchar('p'); */ // Standard Input/Output functions #define _ALTERNATE_GETCHAR_ #define _ALTERNATE_PUTCHAR_ // now, we include the library and it will understand our // replacements #include <stdio.h> void main() unsigned char sw; char receive; char state[3]= '0','0','0'; // Input/Output Ports initialization // Port A initialization // Function: Bit7=In Bit6=In Bit5=In Bit4=In Bit3=In Bit2=In Bit1=In Bit0=In DDRA=(0<<DDA7) (0<<DDA6) (0<<DDA5) (0<<DDA4) (0<<DDA3) (0<<DDA2) (0<<DDA1) (0<<DDA0); // State: Bit7=T Bit6=T Bit5=T Bit4=T Bit3=T Bit2=T Bit1=T Bit0=T PORTA=(0<<PORTA7) (0<<PORTA6) (0<<PORTA5) (0<<PORTA4) (0<<PORTA3) (0<<PORTA2) (0<<PORTA1) (0<<PORTA0); // Port C initialization // Function: Bit7=Out Bit6=Out Bit5=Out Bit4=Out Bit3=Out Bit2=Out Bit1=Out Bit0=Out DDRC=(1<<DDC7) (1<<DDC6) (1<<DDC5) (1<<DDC4) (1<<DDC3) (1<<DDC2) (1<<DDC1) (1<<DDC0); // State: Bit7=1 Bit6=1 Bit5=1 Bit4=1 Bit3=1 Bit2=1 Bit1=1 Bit0=1 PORTC=(1<<PORTC7) (1<<PORTC6) (1<<PORTC5) (1<<PORTC4) (1<<PORTC3) (1<<PORTC2) (1<<PORTC1) (1<<PORTC0); // Port D initialization // Function: Bit7=Out Bit6=Out Bit5=Out Bit4=Out Bit3=Out Bit2=Out Bit1=Out Bit0=In DDRD=(1<<DDD7) (1<<DDD6) (1<<DDD5) (1<<DDD4) (1<<DDD3) (1<<DDD2) (1<<DDD1) (0<<DDD0); // State: Bit7=0 Bit6=0 Bit5=0 Bit4=0 Bit3=0 Bit2=0 Bit1=1 Bit0=1 PORTD=(0<<PORTD7) (0<<PORTD6) (0<<PORTD5) (0<<PORTD4) (0<<PORTD3) (0<<PORTD2) (1<<PORTD1) (1<<PORTD0); UBRRH=0; UBRRL=0x17;//baud rate 9600 //UBRRL=0x01; //baud rate // Initialize the USART control register: // RX & TX enabled,

19 Page 19 // RX & TX interrupts enabled, // 8 data bits UCSRB=0xD8; // Initialize the frame format, 8 data bits, // 1 stop bit, asynchronous operation and // no parity UCSRC=0x86; // Global interrupt enable #asm("sei") while(1) delay_ms(100); putchar(state[0]); putchar(state[1]); putchar(state[2]); if(rx_counter) // are there any received characters?? receive = getchar(); // get the character switch (receive) case '0': state[0] = '1'; //lock state[2] = '0'; //disable alarm if sounding PORTC = ~0x3; PORTC = ~0x5; PORTC = ~0x9; PORTC = ~0x11; PORTC = ~0x21; PORTC = ~0x41; PORTC = ~0x81; break; case '1': state[0] = '0'; //unlock PORTC = ~0x6; PORTC = ~0xA; PORTC = ~0x12; PORTC = ~0x22; PORTC = ~0x42; PORTC = ~0x82;

20 Page 20 PORTC = ~0x3; break; case '2': state[1] = '1'; PORTC = ~0xC; PORTC = ~0x14; PORTC = ~0x24; PORTC = ~0x44; PORTC = ~0x84; PORTC = ~0x5; PORTC = ~0x6; break; case '3': state[1] = '0'; PORTC = ~0x18; PORTC = ~0x28; PORTC = ~0x48; PORTC = ~0x88; PORTC = ~0x9; PORTC = ~0xA; PORTC = ~0xC; break; //start //turn off sw = ~PINA; switch(sw) case 0x01: state[0] = '1'; state[2] = '0'; PORTC = ~0x3; PORTC = ~0x5; PORTC = ~0x9; //lock //disable alarm if sounding

21 Page 21 PORTC = ~0x11; PORTC = ~0x21; PORTC = ~0x41; PORTC = ~0x81; break; case 0x02: state[0] = '0'; PORTC = ~0x6; PORTC = ~0xA; PORTC = ~0x12; PORTC = ~0x22; PORTC = ~0x42; PORTC = ~0x82; PORTC = ~0x3; break; case 0x4: state[1] = '1'; PORTC = ~0xC; PORTC = ~0x14; PORTC = ~0x24; PORTC = ~0x44; PORTC = ~0x84; PORTC = ~0x5; PORTC = ~0x6; break; case 0x8: state[1] = '0'; PORTC = ~0x18; PORTC = ~0x28; PORTC = ~0x48; //unlock //start //turn off

22 Page 22 PORTC = ~0x88; PORTC = ~0x9; PORTC = ~0xA; PORTC = ~0xC; break; case 0x10: state[2] = '1'; PORTC = ~0x30; PORTC = ~0x50; PORTC = ~0x90; PORTC = ~0x11; PORTC = ~0x12; PORTC = ~0x14; PORTC = ~0x18; break; //alarm default: PORTC = ~0x00;

Lampiran. Universitas Sumatera Utara

Lampiran. Universitas Sumatera Utara Lampiran LISTING PROGRAM #include #include // Declare your global variables here char buff[16]; unsigned int frekuensi,x; unsigned int detak; // External Interrupt 0 service routine

More information

LAMPIRAN - A. Instruksi Mikrokontroler

LAMPIRAN - A. Instruksi Mikrokontroler LAMPIRAN - A Instruksi Mikrokontroler /***************************************************** This program was produced by the CodeWizardAVR V1.25.3 Professional Automatic Program Generator Copyright 1998-2007

More information

LAMPIRAN A FOTO Radio Control Helikopter dan Pengendalinya

LAMPIRAN A FOTO Radio Control Helikopter dan Pengendalinya LAMPIRAN A FOTO Radio Control Helikopter dan Pengendalinya Tampak Atas A-1 Tampak Depan A-2 Tampak Samping A-3 Tampak Belakang A-4 Pengendali A-5 LAMPIRAN B PROGRAM PADA MICROSOFT VISUAL BASIC 6 DAN PENGONTROL

More information

Lampiran 1 Tabel data normalisasi lemari tabung LPG dari alat Konsentrasi Gas LPG Konsentrasi Gas

Lampiran 1 Tabel data normalisasi lemari tabung LPG dari alat Konsentrasi Gas LPG Konsentrasi Gas 52 Lampiran 1 Tabel data normalisasi lemari tabung LPG dari alat Konsentrasi Gas LPG Konsentrasi Gas Waktu (s) Data 1 (ppm) Data 2 (ppm) Data 3 (ppm) LPG Rata-rata (ppm) 10 2640,02 2725,35 2773,96 2713,11

More information

LAMPIRAN A PROGRAM UTAMA ROBOT NOMOR 2

LAMPIRAN A PROGRAM UTAMA ROBOT NOMOR 2 LAMPIRAN A PROGRAM UTAMA ROBOT NOMOR 2 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: [Bioloid Premium]-Robot 2 v 2 22: 23: 24: 25: A-1 26: 27: 28: 29: 30: 31: 32: 33: 34: 35:

More information

Getting Started With the Micro64

Getting Started With the Micro64 1.0 Software Installation Getting Started With the Micro64 1.1 Installing the CodeVisionAVR C Compiler 1. Open the CodeVisionAVR Demo folder on the CD. 5. Click the Next button and the following window

More information

LAMPIRAN. 1. Program Alat

LAMPIRAN. 1. Program Alat LAMPIRAN 1. Program Alat This program was produced by the CodeWizardAVR V2.03.4 Standard Automatic Program Generator Copyright 1998-2008 Pavel Haiduc, HP InfoTech s.r.l. http://www.hpinfotech.com Project

More information

AN703. Micro64/128. Accessing the 36k of SRAM 12/3/04

AN703. Micro64/128. Accessing the 36k of SRAM 12/3/04 AN703 Micro64/128 Accessing the 36k of SRAM 12/3/04 Introduction: Micro64/128 has a total of 36k of SRAM. 4 k of SRAM is built into the processor an additional 32k of SRAM is available inside the Micro64/128

More information

LAMPIRAN A /*******************************************************

LAMPIRAN A /******************************************************* 42 Program pada mikrokontroler LAMPIRAN A /******************************************************* This program was created by the CodeWizardAVR V3.12 Advanced Project : gelombang Version : Revisi 4 Date

More information

How2Use DT-AVR ATMEGA128L BMS. Oleh: IE Team. Picture 1 The layout of DT-AVR ATMEGA128L BMS

How2Use DT-AVR ATMEGA128L BMS. Oleh: IE Team. Picture 1 The layout of DT-AVR ATMEGA128L BMS DT-AVR ATMEGA128L BMS Application Note Oleh: IE Team This Application Note (AN) serves as a tutorial of how to use the DT-AVR ATMEGA128L Bootloader Micro System along with its supplementary software. The

More information

Features 2.4 GHz Carrier Frequency RS232 UART interface with variable baud rate Input supply voltage: 5V to 12V 255 possible Channels frequencies (0 to 255) Programmable Device Address (255 per channel)

More information

Universitas Sumatera Utara

Universitas Sumatera Utara 55 Lampiran 1. Konfigurasi Program Menghitung Data Komputer (Bahasa C) pada Mikro /******************************************************* This program was created by the CodeWizardAVR V2.60 Standard Automatic

More information

// Voltage Reference: AREF pin #define ADC_VREF_TYPE ((0<<REFS1) (0<<REFS0) (0<<ADLAR))

// Voltage Reference: AREF pin #define ADC_VREF_TYPE ((0<<REFS1) (0<<REFS0) (0<<ADLAR)) 44 Lampiran 1 Listing program dari seluruh sistem. /****************************************************** * This program was created by the CodeWizardAVR V3.12 Advanced Automatic Program Generator Copyright

More information

How2Use DT-AVR ATMEGA168 BMS. By: IE Team. Picture 1 The layout of DT-AVR ATMEGA168 BMS

How2Use DT-AVR ATMEGA168 BMS. By: IE Team. Picture 1 The layout of DT-AVR ATMEGA168 BMS DT-AVR ATMEGA168 BMS Application Note By: IE Team This Application Note (AN) serves as a tutorial of how to use the DT-AVR ATMEGA168 Bootloader Micro System along with its supplementary software. The layout

More information

Computer Networks with (Network Programming)

Computer Networks with (Network Programming) Computer Networks with (Network Programming) Introduction to Programming with UDP Lecture #8 Department of Electrical and Electronics Engineering Çukurova University TCP vs UDP Both use port numbers Application-specific

More information

Fall 2017 Project Assignment Speed Trap

Fall 2017 Project Assignment Speed Trap USCViterbi School of Engineering Ming Hsieh Department of Electrical Engineering EE 109L - Introduction to Embedded Systems Fall 2017 Project Assignment Speed Trap 1 Introduction This semester s class

More information

API Guide MSS-8 and MVS-16

API Guide MSS-8 and MVS-16 API Guide and MVS-16 Page 1-8 Channel Matrix Switcher Page 10-16 Channel Matrix Switcher and Multi Viewer MVS-16 API Guide for RS232 RS232 Connection: Port Settings: Bps 9600, Data bits 8, Parity None,

More information

eztcp Configuration Software ezmanager Manual Version 1.9 Sollae Systems Co., Ltd.

eztcp Configuration Software ezmanager Manual Version 1.9 Sollae Systems Co., Ltd. eztcp Configuration Software ezmanager Manual Version 1.9 Sollae Systems Co., Ltd. http://www.eztcp.com Contents 1 Overview... - 4-1.1 Overview... - 4-1.2 Available products... - 4-2 Window Composition...

More information

ECE477: Team 10 Software Design Considerations, Narrative, and Documentation

ECE477: Team 10 Software Design Considerations, Narrative, and Documentation TABLE OF CONTENTS 1 INTRODUCTION...2 1.1 MASTER DEVICE...2 1.2 SLAVE (SITE) DEVICE...2 1.3 CONNECTING BUS...2 2 MASTER DEVICE...3 2.1 SOFTWARE DESIGN CONSIDERATIONS...3 2.1.1 Memory Considerations...3

More information

API Guide MSS-8 and MVS-16

API Guide MSS-8 and MVS-16 API Guide MSS-8 and Page 2-8 Channel Matrix Switcher MSS-8 Page 13-16 Channel Matrix Switcher and Multi Viewer www.ospreyvideo.com 1 RACKMOUNT 8x8 MATRIX SWITCHER MSS-8 API Instructions for RS232 RS232

More information

EE 354 November 13, 2017 ARM UART Notes

EE 354 November 13, 2017 ARM UART Notes EE 354 November 13, 2017 ARM UART Notes For serial communications you should be familiar with the following terms: UART/USART Baud rate Synchronous/Asynchronous communication Half-Duplex/Full-Duplex The

More information

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you

More information

Rhino Board. Powering FEZ Rhino

Rhino Board. Powering FEZ Rhino Rhino Board FEZ Rhino is a small sophisticated OEM board, running Microsoft.NET Micro Framework based on the USBizi144 Chipset. This means you can write code with greater efficiency using the C# programming

More information

EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing

EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing Objectives Explain serial communication protocol Describe data transfer rate and bps rate Describe the main registers used by serial communication

More information

How to use RFpro in Packet Mode

How to use RFpro in Packet Mode How to use RFpro in Packet Mode Jumper Setting Priority Jumper J1 à Configuration Mode Jumper à Higher Priority Jumper J2 à Packet Mode Jumper à Lower Priority When both the jumpers are connected, by default,

More information

ECE 476 LABORATORY 3 SECURITY SYSTEM WEDNESDAY, MARCH 7, 2007

ECE 476 LABORATORY 3 SECURITY SYSTEM WEDNESDAY, MARCH 7, 2007 ECE 476 LABORATORY 3 SECURITY SYSTEM WEDNESDAY, MARCH 7, 2007 ADRIAN WONG BHAVIN ROKAD AW259 BKR24 INTRODUCTION AND PROBLEM FORMULATION The purpose of this lab is to create a security system using a keypad,

More information

Embedded Systems and Software. Serial Communication

Embedded Systems and Software. Serial Communication Embedded Systems and Software Serial Communication Slide 1 Using RESET Pin on AVRs Normally RESET, but can be configured via fuse setting to be general-purpose I/O Slide 2 Disabling RESET Pin on AVRs Normally

More information

UART: Universal Asynchronous Receiver & Transmitter

UART: Universal Asynchronous Receiver & Transmitter ECE3411 Fall 2015 Lecture 2a. UART: Universal Asynchronous Receiver & Transmitter Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: {vandijk,

More information

Overview RFSv4.3 is a RF module providing easy and flexible wireless data transmission between devices. It is based on AVR Atmega8 with serial output which can be interfaced directly to PC. Features 2.4

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Serial Communication Serial Communication, Slide 1 Lab 5 Administrative Students should start working on this LCD issues Caution on using Reset Line on AVR Project Posted

More information

ezconfig User s Manual

ezconfig User s Manual eztcp Configuration Program ezconfig User s Manual Version 1.2 2009-09-23 Sollae Systems Co., Ltd. http://www.sollae.co.kr Contents Contents... - 1-1 Overview... - 4-1.1 Overview... - 4-1.2 Related Products...

More information

Real Time Operating Systems Application Board Details

Real Time Operating Systems Application Board Details Real Time Operating Systems Application Board Details Hardware Interface All labs involve writing a C program to generate an interface between a PC and an external Multi-Applications board. A 40-way ribbon

More information

COMP2121: Microprocessors and Interfacing

COMP2121: Microprocessors and Interfacing COMP2121: Microprocessors and Interfacing Lecture 25: Serial Input/Output (II) Overview USART (Universal Synchronous and Asynchronous serial Receiver and Transmitter) in AVR http://www.cse.unsw.edu.au/~cs2121

More information

RIOTOUS User Manual. Realtime Internet Of Things Of Unusual Size. Version 0.2. MitchElectronics RIOTOUS Framework V0.1 1 / 16

RIOTOUS User Manual. Realtime Internet Of Things Of Unusual Size. Version 0.2. MitchElectronics RIOTOUS Framework V0.1 1 / 16 RIOTOUS User Manual Realtime Internet Of Things Of Unusual Size Version 0.2 MitchElectronics RIOTOUS Framework V0.1 1 / 16 Table of Contents Introduction to RIOTOUS...4 Device Requirements (Client)...5

More information

EE 308: Microcontrollers

EE 308: Microcontrollers EE 308: Microcontrollers Interrupts Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA March 1, 2018 Aly El-Osery (NMT) EE 308: Microcontrollers

More information

Xbee module configuration from a µcontroller

Xbee module configuration from a µcontroller APPLICATION NOTE AN_P12AB04_1 Xbee module configuration from a µcontroller Soulier Baptiste Polytech Clermont Ferrand 2012-2013 The purpose of this application note is to explain how to configure the main

More information

Serial Communications

Serial Communications 1 Serial Interfaces 2 Embedded systems often use a serial interface to communicate with other devices. Serial Communications Serial implies that it sends or receives one bit at a time. Serial Interfaces

More information

Ether I/O 24 DIP R Datasheet

Ether I/O 24 DIP R Datasheet ETHER I/O 24 DIP R Digital I/O Module The ETHER I/O 24 DIP R shown in Diagram 1 is the Dual In-Line Package equivalent of our existing Ether I/O 24 R. The Ether I/O 24 is an integrated, micro-controller

More information

12.1. Unit 12. Exceptions & Interrupts

12.1. Unit 12. Exceptions & Interrupts 12.1 Unit 12 Exceptions & Interrupts 12.2 Disclaimer 1 This is just an introduction to the topic of interrupts. You are not meant to master these right now but just start to use them We will cover more

More information

[TUT] Newbie's Guide to AVR Interrupts

[TUT] Newbie's Guide to AVR Interrupts This tutorial is about interrupt driven USART receive and transmit routines written in AVR assembly. The hardware is: Arduino Mega2560 Adafruit Ultimate GPS IBM PC Atmel JTAGICE3 Software: Atmel AS6.1

More information

Spring 2017 Project Assignment Alarm Clock with Indoor/Outdoor Thermometer

Spring 2017 Project Assignment Alarm Clock with Indoor/Outdoor Thermometer USCViterbi School of Engineering Ming Hsieh Department of Electrical Engineering EE 109L - Introduction to Embedded Systems Spring 2017 Project Assignment Alarm Clock with Indoor/Outdoor Thermometer 1

More information

Introduction to Arduino. Wilson Wingston Sharon

Introduction to Arduino. Wilson Wingston Sharon Introduction to Arduino Wilson Wingston Sharon cto@workshopindia.com Physical computing Developing solutions that implement a software to interact with elements in the physical universe. 1. Sensors convert

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara LAMPIRAN Program Untuk Mengetes Huruf R Pada Matriks 8x8 /******************************************************* This program was created by the CodeWizardAVR V3.09 Standard Automatic Program Generator

More information

L A M P I R A N UNIVERSITAS KRISTEN MARANTHA

L A M P I R A N UNIVERSITAS KRISTEN MARANTHA L A M P I R A N LAMPIRAN B LISTING PROGRAM MIKROKONTROLER //Simplest universal VGA(20x20)/PAL(38x20) terminal //For sync used Timer0 Timer1 //To avoid flickering while receive UART data,recommend

More information

STUDENT NAME(s):. STUDENT NUMBER(s): B00.

STUDENT NAME(s):. STUDENT NUMBER(s): B00. ECED3204 Lab #5 STUDENT NAME(s):. STUDENT NUMBER(s): B00. Pre Lab Information It is recommended that you read this entire lab ahead of time. Doing so will save you considerable time during the lab, as

More information

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 10: Applications for Programming PIC18 in C Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering Programming the PIC18 to transfer

More information

4. Application Programming

4. Application Programming 4. Application Programming 4.1 Writing an Application The C programming language, not C++, is utilized to develop the applications that are uploaded to the microcontroller used in this project. However,

More information

ECE 354 Introduction to Lab 1. February 5 th, 2003

ECE 354 Introduction to Lab 1. February 5 th, 2003 ECE 354 Introduction to Lab 1 February 5 th, 2003 Lab 0 Most groups completed Lab 0 IDE Simulator Questions? ICD Questions? What s the difference? ECE 354 - Spring 2003 2 Addition to Honesty Policy It

More information

Introduction to the MC9S12 Hardware Subsystems

Introduction to the MC9S12 Hardware Subsystems Setting and clearing bits in C Using pointers in C o Program to count the number of negative numbers in an area of memory Introduction to the MC9S12 Hardware Subsystems o The MC9S12 timer subsystem Operators

More information

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features of this USART interface, which is widely used for serial

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

LAMPIRAN A. I. Gambar alat percobaan I.1. Power supply. 1. Rangkaian sekunder 2. Dioda. 3. Heatsink 4. Power supply (keseluruhan)

LAMPIRAN A. I. Gambar alat percobaan I.1. Power supply. 1. Rangkaian sekunder 2. Dioda. 3. Heatsink 4. Power supply (keseluruhan) 100 I. Gambar alat percobaan I.1. Power supply LAMPIRAN A 1. Rangkaian sekunder 2. Dioda 3. Heatsink 4. Power supply (keseluruhan) 101 I.2 Gambar bagian bagian alat pemanas induksi 1. Kumparan Solenoide

More information

Interfacing a Hyper Terminal to the Flight 86 Kit

Interfacing a Hyper Terminal to the Flight 86 Kit Experiment 6 Interfacing a Hyper Terminal to the Flight 86 Kit Objective The aim of this lab experiment is to interface a Hyper Terminal to 8086 processor by programming the 8251 USART. Equipment Flight

More information

EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming. The StringBuilder Class. StringBuilder Classes. StringBuilder with Append

EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming. The StringBuilder Class. StringBuilder Classes. StringBuilder with Append EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming Turgay IBRIKCI, PhD EEE448 Computer Networks Spring 2011 EEE448 Computer Networks Spring 2011 The StringBuilder Class The StringBuilder

More information

ECE 650 Systems Programming & Engineering. Spring 2018

ECE 650 Systems Programming & Engineering. Spring 2018 ECE 650 Systems Programming & Engineering Spring 2018 Networking Transport Layer Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) TCP/IP Model 2 Transport Layer Problem solved:

More information

Wireless Data Acquisition System (WiDAS)

Wireless Data Acquisition System (WiDAS) Wireless Data Acquisition System (WiDAS) Project Proposal By: Justin Peters Advisor: Mr. Steven Gutschlag December 1, 2009 Introduction Modern racing has become an extremely competitive sport. The theoretical

More information

ECE251: Thursday November 8

ECE251: Thursday November 8 ECE251: Thursday November 8 Universal Asynchronous Receiver & Transmitter Text Chapter 22, Sections 22.1.1-22.1.4-read carefully TM4C Data Sheet Section 14-no need to read this A key topic but not a lab

More information

Wireless M-Bus Host Controller Interface DLL

Wireless M-Bus Host Controller Interface DLL Wireless M-Bus Host Controller Interface DLL Document ID: 4100/6404/0051 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY General Information Document Information File name WMBus_HCIDLL_Spec.docx

More information

Unit 19 - Serial Communications 19.1

Unit 19 - Serial Communications 19.1 Unit 19 - Serial Communications 19.1 19.2 Serial Interfaces Embedded systems often use a serial interface to communicate with other devices. Serial implies that it sends or receives one bit at a time.

More information

Networks and distributed computing

Networks and distributed computing Networks and distributed computing Hardware reality lots of different manufacturers of NICs network card has a fixed MAC address, e.g. 00:01:03:1C:8A:2E send packet to MAC address (max size 1500 bytes)

More information

Universal Asynchronous Receiver / Transmitter (UART)

Universal Asynchronous Receiver / Transmitter (UART) Universal Asynchronous Receiver / Transmitter (UART) MSP432 UART 2 tj MSP432 UART ARM (AMBA Compliant) Asynchronous operation 7/8 bit transmission Master/Slave LSB/MSB first Separate RX/TX registers 4

More information

Interrupts & Interrupt Service Routines (ISRs)

Interrupts & Interrupt Service Routines (ISRs) ECE3411 Fall 2015 Lecture 2c. Interrupts & Interrupt Service Routines (ISRs) Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: vandijk,

More information

Section 3 Board Experiments

Section 3 Board Experiments Section 3 Board Experiments Section Overview These experiments are intended to show some of the application possibilities of the Mechatronics board. The application examples are broken into groups based

More information

Application Note, V1.0, Jul AP XC16x. Interfacing the XC16x Microcontroller to a Serial SPI EEPROM. Microcontrollers

Application Note, V1.0, Jul AP XC16x. Interfacing the XC16x Microcontroller to a Serial SPI EEPROM. Microcontrollers Application Note, V1.0, Jul. 2006 AP16095 XC16x Interfacing the XC16x Microcontroller to a Serial SPI EEPROM Microcontrollers Edition 2006-07-10 Published by Infineon Technologies AG 81726 München, Germany

More information

WiMOD LR Base Plus Host Controller Interface

WiMOD LR Base Plus Host Controller Interface WiMOD LR Base Plus Host Controller Interface Specification Version 1.2 Document ID: 4000/40140/0125 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY Introduction Document Information

More information

CMUCAM V1.12 interface Specific for RS232 By: Alexis Mesa

CMUCAM V1.12 interface Specific for RS232 By: Alexis Mesa CMUCAM V1.12 interface Specific for RS232 By: Alexis Mesa Relevant Documentation: Before tackling the CMUCAM, you must become familiarized with the following documents: XMEGA Manual: http://www.atmel.com/dyn/resources/prod_documents/doc8077.pdf

More information

RS232.C An Interrupt driven Asyncronous Serial Port

RS232.C An Interrupt driven Asyncronous Serial Port /***************************************************************************/ /* RS232.C An Interrupt driven Asyncronous Serial Port */ /* Date : 06/03/2002 */ /* Purpose : Asyncronous Transmitter & Receiver

More information

AVR Helper Library 1.3. Dean Ferreyra

AVR Helper Library 1.3. Dean Ferreyra AVR Helper Library 1.3 Dean Ferreyra dean@octw.com http://www.bourbonstreetsoftware.com/ November 11, 2008 Contents 1 Introduction 2 2 Build and Installation 3 2.1 Build..................................

More information

WEATHER STATION WITH SERIAL COMMUNICATION

WEATHER STATION WITH SERIAL COMMUNICATION WEATHER STATION WITH SERIAL COMMUNICATION Written by: Wenbo Ye, Xiao Qu, Carl-Wilhelm Igelström FACULTY OF ENGINEERING, LTH Digital and Analogue Projects EITF11 Contents Introduction... 2 Requirements...

More information

Serial Communication

Serial Communication Serial Communication What is serial communication? Basic Serial port operation. Classification of serial communication. (UART,SPI,I2C) Serial port module in PIC16F887 IR Remote Controller Prepared By-

More information

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of this interface, which is widely used for serial communications.

More information

ECE 435 Network Engineering Lecture 9

ECE 435 Network Engineering Lecture 9 ECE 435 Network Engineering Lecture 9 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 2 October 2018 Announcements HW#4 was posted, due Thursday 1 HW#3 Review md5sum/encryption,

More information

CS 43: Computer Networks The Link Layer. Kevin Webb Swarthmore College November 28, 2017

CS 43: Computer Networks The Link Layer. Kevin Webb Swarthmore College November 28, 2017 CS 43: Computer Networks The Link Layer Kevin Webb Swarthmore College November 28, 2017 TCP/IP Protocol Stack host host HTTP Application Layer HTTP TCP Transport Layer TCP router router IP IP Network Layer

More information

CSCE374 Robotics Fall 2013 Notes on the irobot Create

CSCE374 Robotics Fall 2013 Notes on the irobot Create CSCE374 Robotics Fall 2013 Notes on the irobot Create This document contains some details on how to use irobot Create robots. 1 Important Documents These notes are intended to help you get started, but

More information

WiFi 16 Relay Board TCP ModBus Controlled - User Manual 21 Aug WiFi 16 Relay Board TCP ModBus Controlled

WiFi 16 Relay Board TCP ModBus Controlled - User Manual 21 Aug WiFi 16 Relay Board TCP ModBus Controlled WiFi 16 Relay Board TCP ModBus Controlled User Manual Date: -1- Content 1. Specification... 4 2. Applications examples... 5 2.1. Control electrical devices wirelessly... 5 2.2. Control electrical devices

More information

Final Design Report. Project Title: Automatic Storm Shutters. Team Name: Make It Rain

Final Design Report. Project Title: Automatic Storm Shutters. Team Name: Make It Rain EEL 4924 Electrical Engineering Design (Senior Design) Final Design Report 4 August 2009 Project Title: Automatic Storm Shutters Team Name: Make It Rain Team Members: Name: Kyle Weber Name: Zachary Wernlund

More information

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system Available online at www.sciencedirect.com Procedia Engineering 16 (2011 ) 673 678 International Workshop on Automobile, Power and Energy Engineering The IIC interface based on ATmega8 realizes the applications

More information

LAMPIRAN. Program Keseluruhan Sistem Pengontrolan Level Air

LAMPIRAN. Program Keseluruhan Sistem Pengontrolan Level Air LAMPIRAN Program Keseluruhan Sistem Pengontrolan Level Air /***************************************************** This program was produced by the CodeWizardAVR V2.03.4 Standard Automatic Program Generator

More information

LAMPIRAN A. Foto Alat

LAMPIRAN A. Foto Alat LAMPIRAN A Foto Alat A-1 A-2 Rangkaian Skematik PCB Sistem Monitoring Infus A-3 LAMPIRAN B Program pada Mikrokontroller AVR Atmega16...B-1 Program pada Borlan Delhpi 7.0...B-9 PROGRAM UTAMA /*****************************************************

More information

Operating Systems 2010/2011

Operating Systems 2010/2011 Operating Systems 2010/2011 Input/Output Systems part 1 (ch13) Shudong Chen 1 Objectives Discuss the principles of I/O hardware and its complexity Explore the structure of an operating system s I/O subsystem

More information

Communication Protocol Manual JOFRA CTC, ITC, MTC, ETC and Compact Copyright 2008 AMETEK Denmark A/S

Communication Protocol Manual JOFRA CTC, ITC, MTC, ETC and Compact Copyright 2008 AMETEK Denmark A/S Communication Protocol Manual JOFRA CTC, ITC, MTC, ETC and Compact Copyright 2008 AMETEK Denmark A/S Contents 1 Introduction...5 2 Protocol...5 2.1 Variables...5 2.2 Telegram structure...6 2.3 Packing

More information

Communication adapter RS232 over the Wi-Fi ELO E231. User manual

Communication adapter RS232 over the Wi-Fi ELO E231. User manual Communication adapter RS232 over the Wi-Fi ELO E231 User manual Table Of Content: 1.0 Introduction...3 1.1 Application...3 2.0 How does it works?...4 3.0 Installation...4 3.1 Wi-Fi connection...4 3.2 RS-232

More information

19.1. Unit 19. Serial Communications

19.1. Unit 19. Serial Communications 9. Unit 9 Serial Communications 9.2 Serial Interfaces Embedded systems often use a serial interface to communicate with other devices. Serial implies that it sends or receives one bit at a time. µc Device

More information

WiMOD LR Base Host Controller Interface

WiMOD LR Base Host Controller Interface WiMOD LR Base Host Controller Interface Specification Version 1.7 Document ID: 4100/40140/0062 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY Introduction Document Information File

More information

Using the KD30 Debugger

Using the KD30 Debugger ELEC3730 Embedded Systems Tutorial 3 Using the KD30 Debugger 1 Introduction Overview The KD30 debugger is a powerful software tool that can greatly reduce the time it takes to develop complex programs

More information

Communication adapter RS485/422 over the Ethernet ELO E222. User manual

Communication adapter RS485/422 over the Ethernet ELO E222. User manual Communication adapter RS485/422 over the Ethernet ELO E222 User manual Table Of Content: 1.0 Introduction... 3 1.1 Application... 3 2.0 How does it works?... 4 3.0 Installation... 4 3.1 Ethernet connection...

More information

LAMPIRAN A. Listing Program. Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6

LAMPIRAN A. Listing Program. Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6 A Listing Program Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6 LISTING PROGRAM BORLAND DELPHI 7.0 Inisialisasi ==========================================================

More information

An 8051 Based Web Server

An 8051 Based Web Server An 8051 Based Web Server Project by Mason Kidd Submitted to Dr. Donald Schertz EE 452 Senior Laboratory II May 14 th, 2002 Table of Contents Page 1. Abstract 1 2. Functional Description 2 3. Block Diagram

More information

ETHER IO24 TCP DIP. Ether IO24 TCP DIP Datasheet. Module Features. Part Number: PRO EIO24 TCP DIP 2013 Elexol Pty Ltd Revision 1.5

ETHER IO24 TCP DIP. Ether IO24 TCP DIP Datasheet. Module Features. Part Number: PRO EIO24 TCP DIP 2013 Elexol Pty Ltd Revision 1.5 1 ETHER IO24 TCP DIP The Ether IO24 TCP DIP (Originally named the Ether IO24 PIC R DIP) is an integrated, micro controller based network interface board with 24 digital user I/O lines. The module s firmware

More information

class Class1 { /// <summary> /// The main entry point for the application. /// </summary>

class Class1 { /// <summary> /// The main entry point for the application. /// </summary> Project 06 - UDP Client/Server Applications In this laboratory project you will build a number of Client/Server applications using C# and the.net framework. The first will be a simple console application

More information

Ayrstone AyrMesh Router SP Setup

Ayrstone AyrMesh Router SP Setup Ayrstone AyrMesh Router SP Setup This guide should help you set up AyrMesh Router SP. The setup is relatively simple but should you need more detailed directions, such as slide shows, video, or troubleshooting

More information

Activating AspxCodeGen 4.0

Activating AspxCodeGen 4.0 Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form

More information

5.1. Unit 5. State Machines

5.1. Unit 5. State Machines 5.1 Unit 5 State Machines 5.2 What is state? You see a DPS officer approaching you. Are you happy? It's late at night and your car broke down. It's late at night and you've been partying a little too hard.

More information

Interrupt Controlled UART

Interrupt Controlled UART AVR306 Design Note: Using the AVR UART in C Features Setup and Use the AVR UART Code Examples for Polled and Interrupt Controlled UART Compact Code C-Code Included for AT90S8515 Description This application

More information

ADC: Analog to Digital Conversion

ADC: Analog to Digital Conversion ECE3411 Fall 2015 Lecture 5b. ADC: Analog to Digital Conversion Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: {vandijk, syed.haider}@engr.uconn.edu

More information

User Manual. Microdigital IP-cameras with built-in Ivideon software. Cloud Video Surveillance

User Manual. Microdigital IP-cameras with built-in Ivideon software. Cloud Video Surveillance User Manual Microdigital IP-cameras with built-in Ivideon software Cloud Video Surveillance Table of Contents Ivideon: basic concepts 3 What is Ivideon? 3 What is an IP camera with built-in Ivideon software?

More information

INTERRUPTS in microprocessor systems

INTERRUPTS in microprocessor systems INTERRUPTS in microprocessor systems Microcontroller Power Supply clock fx (Central Proccesor Unit) CPU Reset Hardware Interrupts system IRQ Internal address bus Internal data bus Internal control bus

More information

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1 M68HC08 Microcontroller The MC68HC908GP32 Babak Kia Adjunct Professor Boston University College of Engineering Email: bkia -at- bu.edu ENG SC757 - Advanced Microprocessor Design General Description The

More information

Robosoft Systems in association with JNCE presents. Swarm Robotics

Robosoft Systems in association with JNCE presents. Swarm Robotics Robosoft Systems in association with JNCE presents Swarm Robotics What is a Robot Wall-E Asimo ABB Superior Moti ABB FlexPicker What is Swarm Robotics RoboCup ~ 07 Lets Prepare for the Robotics Age The

More information

SquareWear Programming Reference 1.0 Oct 10, 2012

SquareWear Programming Reference 1.0 Oct 10, 2012 Content: 1. Overview 2. Basic Data Types 3. Pin Functions 4. main() and initsquarewear() 5. Digital Input/Output 6. Analog Input/PWM Output 7. Timing, Delay, Reset, and Sleep 8. USB Serial Functions 9.

More information