Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    Linking PHP with satellite

    hi friends ,


    I am working a some defence project ..(... sounds interesting? ..)


    I have to link the satellite parameters with the php language.
    I should be able to control the temperature , modulation , compression algorithm , latitide etc.


    Do anyone have any idea or even close to it

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    it depends entirely on what the satellite will listen to - do you have an API?. Will your code be running on the hardware, or will you be connecting remotely? Will this be over HTTP, or something else? Does the satellite have an IP address? Does it understand XML, or some other kind of command-language? You've given next to no information, how can you expect anyone to help?
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

  • #3
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Initially i have the satellite simulation harware and yes it has an ip address
    I don;t have an api and i am connecting it remotely through http


    Initially they were using unix socket prograaming to send some commands and test the system
    , but they want to test the system remotely via web interface . As a member of the group i told them i will try if something can be done with php

    i have no idea how to do that , but i want to give a try

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    I don't think this would be a good implementation of PHP. You would have to serve the page from the satellite, and submit a form to it to change anything. The UNIX socket programming(I'm guessing C?) they're using now is probably the best way.

  • #5
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    there's no reason you couldn't sit a web front-end on top of it though, and then call some underlying code to do the interaction, either with PHP or something else.

    PHP can write and read to sockets quite easily as well (fsockopen() and then fread() and fwrite(), just as you do with files).
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

  • #6
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Right, it's possible. But it's by no means probable. PHP depends on other things(webserver, etc.), while the compiled C code would be much more stable, and less likely to encounter any outside errors.

  • #7
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    i know C code is much more stable , but we want a good web front end.
    I have to first show them samples how thimgs work and the

    problems or advantages or disadvantages are will be seen later on.

    we are not any way moving from C to php but , just want to add extra features of web

    I think every problem can be solved by some means . Things which may cause errors can be taken care of

  • #8
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Not to mention reliable...

    I can just see it now.

    Sitting at the web site click "Change Z -500m / s"

    Satalite starts decending

    Click button "stop descent"

    error 404

    Satallite burns up on re-entry!

    Oh well, there goes another $15 billion

  • #9
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Sitting at the web site click "Change Z -500m / s"

    Satalite starts decending

    Click button "stop descent"

    error 404

    Satallite burns up on re-entry!

    Oh well, there goes another $15 billion

    Any thing is first tested several times and only then it is made live.
    I think i have a test in my mind ehich i will definitely try


    Code:
    . . . . . . .  findTarget.php . . .. 
    
    finding target . .. . .. ..
    
    Target found . . .. 
    
    Missile Loaded . . . .. . . 
    
    Ready for Attack  . . . . . .. .
    
    Are you sure you want to attack the location  Winona, MN - The land of 10,000 lakes
    
    he he guess what i will be pressing . . . .

  • #10
    Regular Coder
    Join Date
    Feb 2008
    Location
    Australia baby!
    Posts
    143
    Thanks
    6
    Thanked 3 Times in 3 Posts
    hahaha I wish I could help on this one! Did you get anywhere on your own mate?
    outseeker - http://outer.reaches.dyndns.org/index.php
    I hope this helped someone. Due to this forums lame rep system penalising me for nothing, and admins inability to do anything about it, I'm sorry to say I will no longer be online here. Pride is important. Good Luck All.

  • #11
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Currently i am reading the hardware manual of the satellite system. i will see how harware interacts with software then i will see how thing goes

  • #12
    Regular Coder
    Join Date
    Feb 2008
    Location
    Australia baby!
    Posts
    143
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Keep us posted will you? Sounds like a very interesting idea! I would try to help if I can..
    outseeker - http://outer.reaches.dyndns.org/index.php
    I hope this helped someone. Due to this forums lame rep system penalising me for nothing, and admins inability to do anything about it, I'm sorry to say I will no longer be online here. Pride is important. Good Luck All.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •