KMK Electronic Notebook: Difference between revisions

From Monnier Group Research Wiki
Jump to navigationJump to search
No edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 39: Line 39:
telnetlib.py : a resource (possibly to use as a template for C)<br>
telnetlib.py : a resource (possibly to use as a template for C)<br>
http://www.koders.com/python/fid811ECD13FF344C935A679825C9AD2D03AACD6D0F.aspx<br>
http://www.koders.com/python/fid811ECD13FF344C935A679825C9AD2D03AACD6D0F.aspx<br>
==2010Oct28==
Resources (I'll put the best ones outside this folder eventually)
*http://www.sciencedirect.com/science/book/9780123745408
**fromUMich Library
*http://developer.apple.com/library/ios/#referencelibrary/GettingStarted/GS_Networking_iPhone/
**Basic overview of iPhone networking + good links
*http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
*http://homepages.ius.edu/rwisman/C490/html/TCP.htm
**long, but good, detailed explanations, socket basics<br><br>
Now have a simple client/server program that can exchange data between computers. The motor does not respond to the program yet, just to the telnet application. The program is in ~/Desktop/iOS/kevin/socketTesting/<br>
<br>
http://cvsweb.netbsd.org/bsdweb.cgi/src/include/arpa/telnet.h?rev=1.11&content-type=text/x-cvsweb-markup
*found this a few minutes ago, and now I'm frustrated / confused as to why I haven't seen it before!
==2010Nov02==
*Seems like the python code merely sends the command with a newline. However, this doesn't seem to work with the C code.
*TO DO tomorrow/Thursday: implement a recv() in clientBackup.c so I can tell what the picomotor controller is sending back (if anything)
==2010Nov04==
*I can now send commands over the network via C! the client is located at /Users/monnierlab/Desktop/iOS Development/kevin/socketTesting/clientBackup.c
*after using CHL, use REL <driver>=<value> then GO a1
*Going to start moving the more useful stuff closer to the front of the wiki. I might also post clientBackup.c just in case. Also: I need to figure out whether I can ssh/vnc into this machine
==2010Nov11==
*iPad can now contact monnierpico1!
*Trying to find the specification for the JOG command. It's a button on the hand terminal AND it's a command over telnet, but I can't find any documentation
==2010Nov23==
*Creating an interface with interchangeable views requires less Interface Builder and more Xcode. Found a good guide:
**http://chris-software.com/index.php/2009/04/29/creating-a-view-programmatically/
==2010Nov24==
*After updating iPad, getting an error saying that it isn't provisioned
**Fixing by installing new xcode
==2010Dec2/3==
*Have programmatic buttons working! Starting to think about class/object features
**Need a little more specification as to what needs to be available in each object.
==December 20, 2011==
*Have a working multiview application, working on enabling networking within in
**Conversion from UITextField -> NSString-> normal C string is being troublesome. Problem either with string encoding (ASCII vs UTF8) or NSString itself
***NSLog doesn't seem to recognize the NSString pulled from UITextField
**Currently in ViewSwitcher.proj
*Centralized C/BSD socket things in ~/Desktop/iOs Development/kevin/socketLibraries in Practical.c and Practical.h
*'''''PROVISIONING PROFILE''''' not immediately necessary, but could be very annoying soon if it doesn't get renewed <-- NEVERMIND
==February 8, 2011==
*Working on OO structure for motors in 1, 2, and 3 dimensions. These will be put into a TableView format, which is how it might look at the end
*Programming reminders for myself:
**Build a way for new motors to find the next free a1/a2/a3... identifier
**Build opening of socket into loading of view? Or build into initialization of view?
**Implement enteredStepSize method
***Currently constant opening/closing of sockets -- SLOW

Latest revision as of 21:49, 8 February 2011

Electronic Notebook[edit]

2010Oct06[edit]

Set up wiki pages. Met Xiao. Saw iPad.

2010Oct12[edit]

Customized mac mini dock
Tried compiling "Hello, world" application: NEED PASSWORD from user in group "Developer Tools"

2010Oct14[edit]

Looking over TELNET protocol specifications. Confused.
Investigating use of PuTTY or other TELNET client code. Equally confusing
NOTE: The PuTTY license gives total freedom to take, copy, and sell their code. Good news!

In Lab:[edit]

Assembled ethernet controller (8752) and intelligent driver (8753) on mount
Working on finding a C/Objective-C telnet library
-Looking into libcurl (http://curl.haxx.se/libcurl/)

2010Oct19[edit]

The new book is much better for Objective-C. Finally getting a decent grasp on what everything is here
Lots of reading ahead on the plane back to MI, then looking to write some code for practice. May also put gobjc on my laptop for experimenting w/o nearby Mac.

2010Oct21[edit]

Working with networking code. It's all very confusing.
WireShark installed to allow me to see whether I'm sending network traffic.
WireShark can't capture because I can't run it as superuser.
Currently attempting to use Objective-C's built in streams for network communication.
Working with hand terminal:
-IP Address (dynamic): 141.211.198.201
-Hostname: monnierpico1.astro.lsa.umich.edu
Working with telnet:
-use chl <driver>=<motor> where driver is a1 through a31 and motor is 0,1, or 2 before trying to move motor

2010Oct26[edit]

telnetlib.py : a resource (possibly to use as a template for C)
http://www.koders.com/python/fid811ECD13FF344C935A679825C9AD2D03AACD6D0F.aspx

2010Oct28[edit]

Resources (I'll put the best ones outside this folder eventually)

Now have a simple client/server program that can exchange data between computers. The motor does not respond to the program yet, just to the telnet application. The program is in ~/Desktop/iOS/kevin/socketTesting/

http://cvsweb.netbsd.org/bsdweb.cgi/src/include/arpa/telnet.h?rev=1.11&content-type=text/x-cvsweb-markup

  • found this a few minutes ago, and now I'm frustrated / confused as to why I haven't seen it before!

2010Nov02[edit]

  • Seems like the python code merely sends the command with a newline. However, this doesn't seem to work with the C code.
  • TO DO tomorrow/Thursday: implement a recv() in clientBackup.c so I can tell what the picomotor controller is sending back (if anything)

2010Nov04[edit]

  • I can now send commands over the network via C! the client is located at /Users/monnierlab/Desktop/iOS Development/kevin/socketTesting/clientBackup.c
  • after using CHL, use REL <driver>=<value> then GO a1
  • Going to start moving the more useful stuff closer to the front of the wiki. I might also post clientBackup.c just in case. Also: I need to figure out whether I can ssh/vnc into this machine

2010Nov11[edit]

  • iPad can now contact monnierpico1!
  • Trying to find the specification for the JOG command. It's a button on the hand terminal AND it's a command over telnet, but I can't find any documentation

2010Nov23[edit]

2010Nov24[edit]

  • After updating iPad, getting an error saying that it isn't provisioned
    • Fixing by installing new xcode

2010Dec2/3[edit]

  • Have programmatic buttons working! Starting to think about class/object features
    • Need a little more specification as to what needs to be available in each object.

December 20, 2011[edit]

  • Have a working multiview application, working on enabling networking within in
    • Conversion from UITextField -> NSString-> normal C string is being troublesome. Problem either with string encoding (ASCII vs UTF8) or NSString itself
      • NSLog doesn't seem to recognize the NSString pulled from UITextField
    • Currently in ViewSwitcher.proj
  • Centralized C/BSD socket things in ~/Desktop/iOs Development/kevin/socketLibraries in Practical.c and Practical.h
  • PROVISIONING PROFILE not immediately necessary, but could be very annoying soon if it doesn't get renewed <-- NEVERMIND

February 8, 2011[edit]

  • Working on OO structure for motors in 1, 2, and 3 dimensions. These will be put into a TableView format, which is how it might look at the end
  • Programming reminders for myself:
    • Build a way for new motors to find the next free a1/a2/a3... identifier
    • Build opening of socket into loading of view? Or build into initialization of view?
    • Implement enteredStepSize method
      • Currently constant opening/closing of sockets -- SLOW