Shop OBEX P1 Docs P2 Docs Learn Events
Spinneret Web Server Geting started help — Parallax Forums

Spinneret Web Server Geting started help

chris joneschris jones Posts: 391
edited 2011-02-17 19:31 in Accessories
Hello

i just got my Spinneret Web Server in the mal today and went to hook it up but i cant seem to get the guy talking to my prop tool the lights for TX and RX are not on.is there anything i need to do to make this work.

Comments

  • chris joneschris jones Posts: 391
    edited 2011-02-04 16:21
    i keep geting the error saying propeller chip not found eror
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 16:27
    How are you powering the Spinneret?

    -Phil
  • Mike GMike G Posts: 2,702
    edited 2011-02-04 16:43
    Are you using the prop plug? Do you have a network cable plugged in to the RJ45 port?
  • chris joneschris jones Posts: 391
    edited 2011-02-04 16:44
    with my propeller demo board
  • Mike GMike G Posts: 2,702
    edited 2011-02-04 16:51
    You're power the Spinneret with your Propeller Demo board? If so, explain your connections or provide a picture.

    Do you have a prop plug? Is the Spinneret connected to your local network?
  • chris joneschris jones Posts: 391
    edited 2011-02-04 16:55
    yes its kind of a strange setup but we are snowed in here in tx so i had to use the parts i had at home :)

    the setup is simple the vss is jumped to a bread boardboard
    the vdd is jumped to a bread board board
    the prop plug and web server is connected to power and ground on the connected breadboard
  • Mike GMike G Posts: 2,702
    edited 2011-02-04 17:04
    I honestly have no idea what you're doing. Why is the prop plug connected to a bread board? Vss and Vdd is connected to what Spinneret Pins/Jumper? This is how I have the Spinneret wired.
    http://www.agaverobotics.com/spinneret/controlpanel.htm

    The prop plug is connected to the prop plug 4 pin connection, J2. I have 5V going into J6, positive on pin 2 and ground on pin 3
  • chris joneschris jones Posts: 391
    edited 2011-02-04 17:07
    wow mine is hooked up in a very dif way. how are you hooking your prop board in ?
  • Mike GMike G Posts: 2,702
    edited 2011-02-04 17:13
    I'm not using a prop board, just a Spinneret, Prop plug, power on J6, and a network cable. Can you see the video stream?

    You can power the Spinneret with 3 to 3.3V. You have to connect J1 - Pin 1 to 3 - 3.3V and pin 2 to ground.

    Saying
    wow mine is hooked up in a very dif way

    Does not help me help you. Explain what you're doing.
  • chris joneschris jones Posts: 391
    edited 2011-02-04 17:14
    working on geting you a picture i just dont have the best camera
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 17:17
    Why have you not plugged the Prop Plug directly into the Spinneret? (Or did I miss something in your explanation?)

    -Phil
  • Mike GMike G Posts: 2,702
    edited 2011-02-04 17:17
    Just write out your connections. ie, I have +3V going from [descriptive blank] to [descriptive blank].
  • chris joneschris jones Posts: 391
    edited 2011-02-04 17:18
    wait a light buld give me 1 sec
  • chris joneschris jones Posts: 391
    edited 2011-02-04 17:21
    WOW i just fed my problem it was not hooked up wrong but i was going about it the hard way its working now i will still upload my picture so you guys can see what a noob i am
  • Mike GMike G Posts: 2,702
    edited 2011-02-04 17:26
    Dude you lost me... It was hooked up correctly but you went about it the hard way? Glad you have it working.
  • chris joneschris jones Posts: 391
    edited 2011-02-04 17:29
    yeah i was hooking up extra wires when i did not need to it worked the same way for power but the pins for RX and TX were hooked up wrong. when i ran the propeller tool it did not see the propeller chip so power was good but communication was bad.

    sorry to post such a stupid question...................................
  • chris joneschris jones Posts: 391
    edited 2011-02-04 20:38
    ok i am using the DHCP object and soem exmaple code located here

    http://forums.parallax.com/showthread.php?127298-HTTP-Demo-(updated-11-22-2010-12-35am)

    is there any reason i can not ping the ip address that i coded into the device
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 20:48
    Try the code listed here:

    It's what I've been working with, and it responds to a ping. Just remember not to include the HTTP port number in the IP address you're pinging.

    -Phil
  • chris joneschris jones Posts: 391
    edited 2011-02-04 21:10
    ok cool i can ping the device but can not see anything in a web browser
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 21:15
    For use with a web browser, you have to include the HTTP port number in the address, e.g. 192.168.0.50:3456

    -Phil
  • chris joneschris jones Posts: 391
    edited 2011-02-04 21:16
    ok i have looked over the documentation is there another manual that i am missing ? i do web development for a liveing and i should have known this.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 21:23
    There's documentation? :) Maybe there is; I haven't seen it (or looked for it). Beau's thread is the only thing I've gone on.
    i do web development for a liveing and i should have known this.
    Not necessarily. Most web servers use port 80, which is what your browser will default to if you don't specify it. But incoming SYNs to port 80 are often blocked by routers, firewalls, or even one's ISP. So, for this kind of work from a home network, another port is almost always used. The choice of 3456 is entirely arbitrary.

    -Phil
  • chris joneschris jones Posts: 391
    edited 2011-02-04 21:25
    where do i set the port or can i use any port ?

    I want to use port 8801 so i go to my web browser and type
    192.***.40.***:8801

    but this returns page can not be displayed do i need to foward this from my router
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 21:28
    In Beau's top-level program:
    CON
        _clkfreq = 80_000_000
        _clkmode = xtal1 + pll16x
        
        socket = 0
    [color=red]    listenPort = 3456'───┬── Your port of choice goes here ; typically between 0 and 65535[/color]
    '                        │      Note: If you use port 80, then you don't need to specify
    {                        ├──┐         the ':xxxx' at the end of the HTTP address, however 
       http://24.253.241.231:xxxx         some IP's block port 80.  In your router you will  
              └────────────┤              need to configure it so that the port is forwarded.
                           │
                           This number can be found at some place like...
                           
       http://whatismyipaddress.com
    
       Note: The Above method gets you on the entire web, if you just want local network access to
             the Spinneret, then you don't need to use port forwarding, and you can use the static
             IP address instead.  You still need to specify the port (':xxxx') if it's something
             other than port 80.
    
       http://192.168.0.50:xxxx
    
       or (if using port 80)... 
     
       http://192.168.0.50        
                              
    }    
    
  • chris joneschris jones Posts: 391
    edited 2011-02-04 21:36
    Thanks, sorry i did not look befor i posted i think i need to fill my coffie cup back up.
  • chris joneschris jones Posts: 391
    edited 2011-02-06 09:45
    Hello

    can anyone tell me what the J6 PIN 1 is for......

    Te datasheet states that its a IOs erial port can this be used for a LCD ?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-06 10:21
    That's a general-purpose I/O pin controlled by P22 on the Prop. The MOSFET is configured as a level translator: 5V I/O on the J1 side; 3.3V, on the Prop side. You can use this pin for an LCD, a sensor, or anything else that uses a single pin for communication. However, since J1 is also where the board gets its power, you will have to use a Y-cablle (splitter) if you connect another device to this port.

    As an alternative, you could also supply 5V power through the daughterboard socket (J1). Parallax carries a daughterboard with a wall-transformer input (PWR-I/O-DB) that can be used to power the Spinneret. It requires connecting three of its configuration header pins together to bring power to the daughterboard socket. It also provides six three-pin servo-style headers, four of which are connected to dedicated Prop Pins (but without the voltage translation).

    -Phil
  • chris joneschris jones Posts: 391
    edited 2011-02-17 15:42
    ok , new question can the web server be put into a sleep mode untill something pings it maybe.i am running into some power issues on battery power.
  • Mike GMike G Posts: 2,702
    edited 2011-02-17 19:31
    I don't recall seeing a wake on LAN feature in the datasheet.
Sign In or Register to comment.