problem about serial-Collection of common programming errors
MikeyB
windows-server serial
How do I enable a serial console on Windows (2008 and/or 2012) such that I can log into it like the Good Old Days of Real Servers and issue provisioning commands, ideally via PowerShell?$ cu -l /dev/ttyS0 Connected.Welcome to ad1.adlab.brazzers.comMicrosoft Windows [Version 6.1.7601] Copyright (C) 2009 Microsoft Corporation. All rights reserved.Login: Administrator Password: PS C:\Users\Administrator> New-NetIPAddress -InterfaceAlias eth0 -IPv4Address 192.168.101.11 -PrefixLength 24 -DefaultG
Hennes
bios windows-server-2003 serial cmd.exe
I am trying to find the serial number of a windows server 2003 R2.I used a lot of tools but i couldn’t find the serial number.Note that i want the serial number and not the product key.I also used the following command on cmd:wmic bios get serialnumberbut the result is serial number and then empty lines, which is unexpected from my experience. How can i find the serial number? What is wrong?
kfuglsang
arduino serial rf
I have a very simple setup with an Arduino Uno R3 connected to my Windows 7 x64 with Arduino 1.0.1.I have a RF receiver connected to the Arduino on the DI10 port using the SoftwareSerial library. I am using a AM-RRQ3-433 module. See rfsolutions.co.uk/acatalog/AM_Super-heterodyne_Receiver.htmlWhen I receive a byte from the RF receiver, I am simply writing it to the Serial (so that I can see it on my PC in the serial monitor). Doing so seems to conflict between SoftwareSerial and Serial, since the
Marve
postgresql primary-key serial
I run a small site and use PostgreSQL 8.2.17 (only version available at my host) to store data. In the last few months there were 3 crashes of the database system on my server and every time it happened 31 ID’s from a serial field (primary key) in one of the tables were missing. There are now 93 ID’s missing.Table:CREATE TABLE “REGISTRY” (“ID” serial NOT NULL,”strUID” character varying(11),”strXml” text,”intStatus” integer,”strUIDOrg” character varying(11), )It is very important for me that all
Tim
linux serial asterisk
I’m working on a patch for chan_dongle for Huawei e177 modems which has one way audio problem.For debugging purpose I decided to write an external test case to read and write audio from and to the modem but I was unable the receive the audio stream in any of the serial files after the modem was mounted. I use minicom to issue the commands, I pick up an incoming call using the relevant AT command but no bytes stream arrives to any file. The only output I receive is from the AT command in /dev/tty
Vlad Lazarenko
c++ sql postgresql key serial
What is the correct syntax to create a integer primary key auto incremental field in postgresql using C++?I started with db->ExecuteSQL(“CREATE TABLE mytable (\”mytableid\” INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,this compiles but the process crashes and no field is created.db->ExecuteSQL(“CREATE TABLE mytable (\”mytableid\” serial PRIMARY KEY NOT NULL,This works and does create the field correctly.Do I need the NOT NULL or is this not necessary with serial? Is this the best syntax and
aliz
linux terminal screen serial embedded
I have built a custom embedded system using debian 6.0.using /etc/inittab i have made several (8) processes running on different /dev/ttyX terminals, which i can switch between using Alt+FX key combination. the thing is using this setup i need to attach a keyboard/monitor to device and reboot it, to be able to operate on it, which is so undesirable. i know linux supports terminals through serial port and i have a couple of them on the device, but i need to have all these processes output in a si
Tiago Queiroz
arduino serial
I have a PanStamp (arduino compatible) and everything was working fine until I change the amount of data I’m sending through serial.send_altitude is called every second using timer interruption (TimerOne library).This is the original function that sends data (and does not hang):void send_altitude() { cli();float_byte altitude; byte buffer[6];// Do one trash read to avoid fluctuations analogRead(ALT_SENSOR); delay(5); altitude.asFloat = getAltitude(ALT_SENSOR);buffer[0] = 0x05; /* Size */ buffer[
Marcel
arduino serial linux monitor eclipse
I like to program my Arduino using Eclipse. However, I still need the Arduino IDE to use the Serial port monitor.This is very inconvenient and breaks my work flowI tried to use RXTX but this would cause Eclipse to crash. I also tried to use a workaround using a SSH-Server but I didn’t succeed.Has anyone managed to monitor an Arduinos output from within Eclipse on a Linux x64 machine (I use Debian Testing), who could give some detailed instructions?Thank you in advance!!!
Tyilo
arduino serial
When executing the following code on my Arduino Micro, only the first line is printed:void crash(void) {abort(); }void setup(void) {Serial.begin(9600);while(!Serial.available()) {Serial.println(“Please input something to begin”);delay(500);}Serial.println(“First”); // Gets printeddelay(500); // Make sure Arduino is done writing to the serial connectionSerial.println(“Second”); // Doesn’t get printedcrash(); // Makes the Arduino device crash }void loop(void) {}I would like to something like this
user899119
java javascript serial
I have lost hours and hours trying to fix this, but without success, so maybe someone can help me :)I am using http://www.walking-productions.com/jsserial/new/JSSerial.html for reading data from serial RF-ID reader to automatically fill my text field. I managed to make everything work OK if I make a button and call openport(); and startTimer();.However if I call openport(); from onload or in any part of my html without a user interaction, I got Uncaught Error: Error calling method on NPObject in
Sean
matlab gui timer serial joystick
I am trying to create a gui in matlab that periodically checks the status of my joystick input. The idea is to take this input and control a servo with it. So far I can get everything to work separately but never together. Right now, the micro controller is just set up to look at the serial line for and adjust the servo (between 0 and 180) based on this. This works just fine. Here is what I have so far,function Fooh.fig = figure(‘position’, [1100 30 210 60]); h.serial = serial(‘COM3’); fopen(h.s
reve_etrange
serial db9
What does opening the standard PC serial port do, in electrical terms (i.e. what voltages on which pins)?For example, the ancient VB6 program which controls an apparatus I am tasked with maintaining toggles .PortOpen to control some TTL. The connection only used 2 pins (bad solders fell apart), so which pins do I solder to?The only labels / documentation refer to pins 7 and 9, saying 0V and 5V parenthetically, but does .PortOpen really just put 5V between RI and RTS?.As a post script, this isn’
Toby Jaffey
serial uart
I think it is possible due to how I can run vi straight from my serial port looking via TeraTerm. There, I can edit some text, go to the next line, then come back and edit the first line! How do they do this?What character over UART could I send through to go “up a line”?EDIT: Apparently line feed works. “\f” to clear the screen. However, this only works for Hyperterminal on my machine and not Teraterm. Anyone know why?
blalor
microcontroller serial ttl
I’ve been trying to find a good description of the TTL serial “standard” without much luck. I understand that serial transmit (TX) and receive (RX) lines idle high (at VCC) and that they drop to ground when a bit is transmitted. As such, they’re inverted from the norm, where a “1” is high and “0” is low. What I don’t understand is who’s responsible for holding the line high and how a zero is transmitted. Does the sender drive the line to high and low? Or does the receiver hold the line high
etuardu
arduino serial
I’m trying to send ASCII characters from Arduino UNO to a computer serial port. I’m using a cable with a male COM connector, attached to the computer’s serial port, and three wires (TX, RX and Ground) on the Arduino side. I used pins 12, 13 and Gnd as shown in the picture:And I am running this piece of code to send a string every second on the serial port:#include <SoftwareSerial.h>SoftwareSerial mySerial(13, 12); // RX, TXvoid setup() {mySerial.begin(9600); }void loop() {mySerial.printl
Rockyboy_ruby
node.js serial
Using coffeescript to code One solution | see this postI have two loops. I want to take each value from array ‘a’ and then loop through all the values of ‘b’ process them and move to next value in array ‘a’output expected:1 a b c 2 a b c 3 a b cError I see: [ 1, 2, 3 ][ ‘a’, ‘b’, ‘c’ ]123TypeError: Cannot read property ‘length’ of undefinedat Object.forEachSeries(~/src/node_modules/async/lib/async.js:103:17)Async = require(‘async’)@a = [1,2,3]@b = [‘a’,’b’,’c’]console.dir @aconsole.dir @bAsync.f
Andrew Marshall
c pointers serial
I am working with doing some serial communications in C in Linux. I am doing this using file descriptors. For some reason after char* s = “Hello world”, I can write s to the serial port using the write method, no problem. I am using a serial monitor program to check the other end. However, I cannot send any other sort of data. I get a “Bad Address” error from the write function.However, I noticed that if I did something very strange: int* x = “5”; That I could then send this x. My question is, w
Ken
usb drivers crash modem serial
i’m working on an sms related program using a ftdichip modem in gentoo-2.6.30 with ftdi_sio driver v1.4.3. But i’m running into a weird situation now: when OS starts up, my program will try to open /dev/ttyUSB0 infinitely without sleep until it succeeds(due to not considered properly when coding), and then i plugin my USB serial modem, a bug message will show up immediately with dmesg, and if i unplug modem, the system will have no response. the BUG message is :[ 43.769794] BUG: unable to hand
NoBugs
ubuntu usb serial rxtx xbee
I’m connecting a device with librxtx-java to Ubuntu. The code previously worked in 10.04, but in 12.04 it can’t discover the usb-serial connected to the computer.java.util.Enumeration<CommPortIdentifier> portEnum = CommPortIdentifier.getPortIdentifiers();while ( portEnum.hasMoreElements() ) {CommPortIdentifier portIdentifier = portEnum.nextElement();System.out.println(portIdentifier.getName() + ” – ” + getPortTypeName(portIdentifier.getPortType()) );}This section of the code never goes
Kevin
java serial comm
I have a problem with comm ports in JAVA. I’m using Java version, 1.5 because that version still have access to windows COMM ports (serials).The problem is that the command throws the exception:javax.comm.PortInUseException: Port currently owned by Unknown Windows ApplicationThe thing is that the application opens the comm port for the first time, then I close the comm when the user exits some window. But the user may return to that window, and therefore I try to open again the same port:I close
Spechal
postgresql search integer serial
I have an integer column and I need to search for rows in which the said column starts with 19In MySQL I would use SELECT … WHERE id LIKE ‘19%’ERROR: operator does not exist: integer ~~ unknown LINE 1: select * from “table” where “id” like ‘19%’
Web site is in building