MakerSnake / pyRockBlock

pyRockBLOCK provides super-simple commands enabling you to send and receive messages with just a few lines of code; without having to worry about the nitty-gritty of messing around with Serial Ports, AT commands, signal strength, calculating checksums, retry strategies or making the perfect coffee (only joking, it doesn’t do the latte, err doesn’t do the latter!).
32 stars 23 forks source link

rockBLock.py line 315 #1

Open rhyshorner opened 5 years ago

rhyshorner commented 5 years ago

line 315 in rockBlock.py needs to have parenthesis around the string print function to be used in python3

currently is; print "sendMessageWithBytes bytes should be <= 340 bytes"

should be; print ("sendMessageWithBytes bytes should be <= 340 bytes")

line 536 should also have parenthesis print("NO SIGNAL") line 567 should also have parenthsis print("No message content.. strange!")

also on line 373, rockblock.py, I had to add some bytes function to get it working on python3 from: self.s.write(command + "\r") to: self.s.write(bytes(b'command') + bytes(b'\r'))

Thutos commented 5 years ago

@rhyshorner - thank you for the corrections... i can run but am failing to get an OK response in my initial commands "ATE1" even "AT+SBDMTA=0"

Did you manage to get your code working? @MakerSnake, a little help please

ahmedjazeera11 commented 2 years ago

@rhyshorner, I am using this code to send data of temperature sensor through rockblock 9602. I installed your library. when I try to run the code. it doesn’t do anything. could you point to me what I suppose to change. by the way I am using USB to TTL Serial Adapter. thanks