In such a theoretical test system testing for the Doppler effect, we have to account for various types of redshifts, majorly 2 of them:
The Doppler effect (to account for the redshift taken by the radial orbital motion of the Earth around the Sun i.e Revolution)
Gravitational redshift - When the signal nears the Sun and gradually begins its way out of the gravitational well or the hill sphere even though it has not escaped, the light begans losing energy and with the equation $ E=h\nu $ where h is the planks constant and $\nu$ is the frequency we can observe that the frequency will also decrease with the energy
There are other redshifts as well like cosmological redshift but their effect are almost nil, additionally the close encounter to the sun during it's perihelion can potentially gravitationally lens it slightly, leading to the Shaipro Delay, this can cause additional delay in the reception of the signal, this may lead to redshift as well but due to it's distance being away, it is less influential to the redshift .
Now considering the gravitational redshift we can use the formula $z=GM/Rc^2$ where G is the gravitational constant, M is the mass (assume 1 solar mass), R is the radius and c is the speed of light (299,792,458 m/s), we can assume the radius to be 5-10 solar radii away from the center and get the gravitational redshift, to get the observed frequency by the receiver at mars we need to apply the following formula - $fGrav=f×(1+z)$
So in order to find out the redshifted frequency we need to solve the Doppler effect after the gravitational redshift, so we need to use the formula $f'=fGrav * (c±vMars/c±vEarth)$ where there are 2 different relative velocities between the source and the receiver, if you want the simpler approach you can rather combine it into a single relative velocity by either adding the relative velocities if it is getting closer (blueshift) or you may substract if they are moving away from each other. The resulting frequency is the result of the redshift by the Doppler effect. If we were calculating without redshift instead of $fGrav$ we would use $fEarth$. In this case, we have used gravitational redshift as well so the final result is $f'$. But It is also essential to incorporate the movement of the satellite as well so you can add or minus the velocity on to the vMars if it is getting closer or away to get more accurate measurements regarding this 3 body system.
Bonus Result and Code:
P.S I tried making a python program to calculate the supposed gravitational redshift, here is the code:
g = 6.674*10**-11
m = 1.9891 * 10**30
c = 299792458
r = 3.478*10**9
z = g * m / (r * c**2)
f = 2.4 #GHz
fgrav = f * (1+z)
print(fgrav)
This yields 2.400001019255533 GHz which is the value for gravitational redshift, you can modify the values according to your needs
Also to get the overall redshift including the doppler effect by adding $f1 =fgrav∗(c±vMars/c±vEarth)$ in the code if you know the velocity of mars and earth respectively by probably using the skyfield.almanac module, and knowing whether they are approaching or moving away
Also it is important to note that the dust grains maybe coming from the dust storms on mars may redshift the signal but it is rather hard to predict
Thank you, Hope it helps you!
However, I am not sure on what/ how to proceed, and am also unsure whether Mars would have an impact at all, considering its thin atmosphere.
– Astroquest123 Dec 25 '23 at 16:36