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