An electronic device for assisting autonomous driving of a vehicle, the electronic device comprising: a communicator; a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: obtain object data of an object located in a driving environment of the vehicle; based on determining that the object incapable of communicating with the vehicle, obtain an object situation of the object, the object situation being determined based on the object data; determine whether the object situation is a dangerous situation; based on whether or not the object situation is a dangerous situation, determine a message type for notifying at least one of the object data and the object situation to the vehicle; and transmit a message generated according to the determined message type through the communicator, wherein the processor is further configured to execute the one or more instructions to: receive the object data obtained by an external server from the external server through the communicator, and receive the object situation of the object, the object situation being determined by the external server, from the external server through the communicator. a communicator; a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: obtain object data of an object located in a driving environment of the vehicle; based on determining that the object incapable of communicating with the vehicle, obtain an object situation of the object, the object situation being determined based on the object data; determine whether the object situation is a dangerous situation; based on whether or not the object situation is a dangerous situation, determine a message type for notifying at least one of the object data and the object situation to the vehicle; and transmit a message generated according to the determined message type through the communicator, wherein the processor is further configured to execute the one or more instructions to: receive the object data obtained by an external server from the external server through the communicator, and receive the object situation of the object, the object situation being determined by the external server, from the external server through the communicator. obtain object data of an object located in a driving environment of the vehicle; based on determining that the object incapable of communicating with the vehicle, obtain an object situation of the object, the object situation being determined based on the object data; determine whether the object situation is a dangerous situation; based on whether or not the object situation is a dangerous situation, determine a message type for notifying at least one of the object data and the object situation to the vehicle; and transmit a message generated according to the determined message type through the communicator, wherein the processor is further configured to execute the one or more instructions to: receive the object data obtained by an external server from the external server through the communicator, and receive the object situation of the object, the object situation being determined by the external server, from the external server through the communicator. receive the object data obtained by an external server from the external server through the communicator, and receive the object situation of the object, the object situation being determined by the external server, from the external server through the communicator.