The network goes on disconnecting in raspberry pi. Is it because of power issue? I gave 5volt power from 12 volt battery, and I have connected wifi dongle and camera in USB ports..
If it's your wifi dongle which is dropping the connection, some wifi adapters have a power saving feature that makes them shut down and the OS doesn't bring them up again (by default). Search for "iwconfig wlan0 power off" and you might find some things to try.