Search the Community
Showing results for tags 'rs232'.
Hi everybody! I'm working with a RS232 bricklet, connected to a weighing machine. I have to send a code to connect (S02) and ask for a measure (MSV?) to this device, but i don't receive responde with the value of the weight. ipcon = IPConnection() # Create IP connection rs232 = BrickletRS232(UID, ipcon) # Create device object ipcon.connect(HOST, PORT) # Connect to brickd rs232.write(*string_to_char_list('S02')) rs232.write(*string_to_char_list('MSV?')) time.sleep(1) buffer=rs232.read() The value of buffer is always the same and the length of the message is 0, so i understand is not a valid response. I have tried adding the characters \ r \ n to the end of the string and the result is the same. However from Brickviewer if I enter both codes in the input field (first S02, Intro and then MSV? and Intro again) I get a valid response with the correct measure. What could be the problem? Thank you very much and excuse my english
Hallo zusammen, wir versuchen eine Datenübertragung zwischen einem Windows PC und einem Fluke Kalibrator herzustellen. Dafür haben wir den Tinkerforge Masterbrick (mit WIFI Extention 2.0) als Access Point verbunden. Den Kalibrator haben wir per RS232 V2 Bricklet mit dem Tinkerforge verbunden. Die Verbindung können wir auch aufbauen, jedoch ist uns nicht klar, wie wir Rückmeldungen in Matlab erhalten. Mit dem Brick Viewer können wir Befehle an den Kalibrator senden (wie z.B. die Identität oder Sprache abfragen). Jedoch ist uns auch hier nicht klar, wie man Daten austauscht und speichert. Vielleicht hat einer von euch eine Idee, wie wir Daten empfangen und speichern können. Vielen Dank schonmal! Viele Grüße, Claymars connectTinkerforge.m
Hello all! I'm working on a project that requires data to be sent and received over optic fiber cables, specifically TOSLink cables. I have chosen the following transmitter and receiver from Sys-Concept: http://www.sys-concept.com/toslink_receiver_files/Toslink-TX-Data-16Mbps-Sys.Concept.pdf http://www.sys-concept.com/toslink_receiver_files/Toslink-RX-Data-16Mbps-Sys.Concept.pdf I have been able to connect two RS232 bricklets (V2) to a master brick, connect a receiver to the TTL interface on one RS232 bricklet and a transmitter (with a 150 nF bypass capacitor) to the other TTL interface, and send messages without a problem. Now, I am hoping to connect both a receiver and a transmitter to a single TTL interface on an RS232 bricklet. I connected a single transmitter to the other RS232 bricklet and sent a message to the receiver/transmitter combo just fine. However, when I connected a single receiver to the other RS232 bricklet and sent a message from the receiver/transmitter combo, the transmitter appears to just send a stream of never-ending gibberish over the TOSLink cable. In short, the circuit I have built involves connecting the 3.3V pin to both Vcc pins on the receiver and transmitter, the ground pin to both GND pins on the receiver and transmitter, and the RX1/TX pins to their respective Vin pins on the receiver/transmitter (see attached photos). I put a 150nF bypass capacitor between the Vcc and GND pins on the transmitter.This entire circuit is soldered on a perfboard. I was thinking I might need a bypass capacitor for the receiver, but the receiver didn't need one when a single receiver was attached to the TTL interface. Any suggestions, advice, or insight on what might be happening would be great! I pretty new to electronics like this, and I wasn't quite sure where I could get help because there isn't too much information online, so I thought I would try here. I am happy to provide any more information that is needed. Thank you! Sincerely, Ryan