Stephen Wood
2003-12-14 01:19:32 UTC
Under linux, my Sanyo phone uses the ACM driver, so I talk to it with
the device /dev/input/ttyACM0. When I update (overwrite really) the
phonebook, thet last thing that happens is that the phone is told to
reboot. When the phone reboots, linux, assigns the phone to
/dev/input/ttyACM1. I think this is because BitPim may still have the
device open at the time that the phone comes on again, so linux assigns
it the next free device name.
If I put "save.close()" as the last line of my savephone method, then
the phone gets assign ttyACM0 when it reboots. (Or maybe I was lucky).
Is it OK to do this close at this point?
Steve
the device /dev/input/ttyACM0. When I update (overwrite really) the
phonebook, thet last thing that happens is that the phone is told to
reboot. When the phone reboots, linux, assigns the phone to
/dev/input/ttyACM1. I think this is because BitPim may still have the
device open at the time that the phone comes on again, so linux assigns
it the next free device name.
If I put "save.close()" as the last line of my savephone method, then
the phone gets assign ttyACM0 when it reboots. (Or maybe I was lucky).
Is it OK to do this close at this point?
Steve