Python Serial Write over Virtual Here

Hi I am a bit of a beginner to raspberry pi and linux
I have a raspberry pi(P1) acting a virtual here server with an arduino connected to it. It is wifi networked to another raspberry pi(P2) in Ad hoc mode. I am trying to run the GUI for my machine on P2 and have it serial write some data to the arduino via the vifi and virtual here. The problem is I cant figure out what the address should be in the serial write setup to replace the '/dev/ttyACM0' that was the address for the arduino before I introduced virtual here.

ser=serial.Serial('/dev/ttyACM0',9600)

Any ideas would be greatly appreciated.

#2

Hi, virtualhere doesnt create the serial interface, virtualhere presents the usb device as if it was connected directly, and then linux will bind the driver to the device just like it normally does.

Therefore, you need to make sure you have a serial driver on the pi then you could probably just use dmesg and see what path it is at, or ls -alrt /dev perhaps to see the latest device added