o0O0o.o0O0o 02-20-2008, 11:38 PM 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
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?
o0O0o.o0O0o 02-21-2008, 12: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
Inigoesdr 02-21-2008, 12: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.
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).
Inigoesdr 02-21-2008, 03: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.
o0O0o.o0O0o 02-21-2008, 10: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
bcarl314 02-21-2008, 11:44 PM 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 ;)
o0O0o.o0O0o 02-22-2008, 12: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 . . . .:)
outseeker 02-22-2008, 01:38 AM hahaha I wish I could help on this one! Did you get anywhere on your own mate? :D
o0O0o.o0O0o 02-22-2008, 02: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
outseeker 02-23-2008, 02:39 PM Keep us posted will you? Sounds like a very interesting idea! I would try to help if I can..
|