View Full Version : Linking PHP with satellite

02-21-2008, 12:38 AM
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

02-21-2008, 12:49 AM
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?

02-21-2008, 01:03 AM
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

02-21-2008, 01:21 AM
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.

02-21-2008, 09:01 AM
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).

02-21-2008, 04:24 PM
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.

02-21-2008, 11:48 PM
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

02-22-2008, 12:44 AM
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! :eek:

Oh well, there goes another $15 billion ;)

02-22-2008, 01:24 AM
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

. . . . . . . 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 . . . .:)

02-22-2008, 02:38 AM
hahaha I wish I could help on this one! Did you get anywhere on your own mate? :D

02-22-2008, 03:30 AM
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

02-23-2008, 03:39 PM
Keep us posted will you? Sounds like a very interesting idea! I would try to help if I can..