Week #9 – SD Card

I started on the SD Card portion of the project. The objective of this is to read and write to and from the card, and finally to download data from the network and store in SD Card. I started my research on SD Cards. From this study I found that there are three protocols for communicating with SD Cards. The most popular of which is the SD mode and the SPI mode. There are also two types of SD Cards Read more…

Week #8 – SSL Client

This week I worked on the Generic HTTP Client with SSL. Initially I tried to run the original program provided by the MICROCHIP TCPIP stack. I enabled the STACK_USE_SSL_CLIENT in TCPIP ETH97.h found in TCPIP Config.h . Then I added the RSA.c and ARCFOUR.c files which were necessary in order to to run the SSL algorithm. RSA is the library for an algorithm for public key decryption. I compiled the file and built it, however I kept getting the error Read more…

WEEK #7 – Git Commit

I made my first commit in git this week, by creating a repository and adding all the necessary files to the project. First I had to go through the git flow chart which was a very helpful graphical aid in understanding the branches associated with github. I first added the unchanged initial files of TCPIP stack provided by MICROCHIP. I then removed the unnecessary include and library files and committed them to a release branch. I also learned the ways Read more…

WEEK #6 – Telnet Server

Happy Chinese New Year to everyone. The week started off with a telnet server module. The initial application was provided by microchip, and I tried to run the program. In order to run this application the user has to uncomment STACK_USE_TELNET_SERVER and define AN0String in the main application. Going through the application code further showed that the TCP socket for Telnet was not defined yet, however the socket is already available in TCPIP ETH97.h. After uncommenting the TCP_PURPOSE_TELNET, TCP_ETH_RAM, the Read more…

Week 5 – TCP/IP Layer

I continued where I left off from last week; setting up the physical layer for Ethernet connection. After taking a good look at the documentation available, I realized that there were a minimum of 3 commands required to get the line up and running. These commands were, including TCPIP.h header file, initializing the stack by calling “StackInit”, and looping the “StackTask” and “StackApplications” commands. After programming the code the port LED’s lit up indicating the successful connection from the PIC Read more…

Week 4 – Ethernet Layer

This week I started work on the network connections from the chip, mainly the ETHERNET communication from MCU to network. I was fairly new to the subject but not completely as I have completed my Data Communication module already, hence was familiar to the OSI model and other network conventions. However I soon came to realize that I was actually at the tip of the iceberg and just had the general knowledge of network connectivity. I set out to research Read more…

Week 3 – SPI Comms

This week I worked on SPI (Series Peripheral Interface) communication from the PIC18F97J60 to 25LC256 series EEPROM which comes with the PICDEM.NET2 development board. It was a completely new area for me and I was reading up a lot about the basics of SPI communication supported by the PIC. I was able to find numerous examples available from the microchip website giving instructions on the aspects of coding for SPI communication. The biggest help for me in understanding and coding Read more…

NFS4 Client Address

Fixed a major problem with the computers at the office today. We currently have our users authentication handled by LDAP and their home directories stored in an NFS server. This is a pretty typical tried and tested scenario in many places. Things were working fine for a while but for the past week or so, we started to experience mysterious problems. If only one person was logged in, everything was fine. But the moment another person logged into another machine, Read more…

http://www.sxc.hu/photo/206155

Week 2 – UART Comms

The second week of internship was not very productive. I still faced difficulties with the UART communication. In order to understand the flow of data better I tried to write the UART code in assembly language. I came to realize that there was more to coding than just writing lines. Understanding what happens is essential. Hopefully I’ll be able to solve the UART challenge and move on to SPI next week.

Weekly Log #1 – Intro

It was the first week of internship and I reported in for work on Monday 7th Jan. The first item on the agenda was an introduction to the work place, the expectations and the responsibilities of the job. Furthermore the work timings and other details were given out. My responsibilities had three parts to be completed in three months. Each of which are discussed below: SD-card: reading and writing to and from an SD card. Ethernet: transmitting and receiving from Read more…